Skip to content

HWLOC3D Development

Hrutvi Barad edited this page Feb 3, 2024 · 11 revisions

Introduction

HWLOC3D is a Java application for creating beautiful 2D/3D pictures for the hardware locality and memory hierarchy of a computer system. It is developed to visualize the XML-based output from hwloc utility. The XML examples can be found from hwloc xml database. The DTD file for specifying the XML is hwloc2.dtd. It is now being developed using JOGL and JZY3D

Setup

  1. Eclipse Development Environment with M2E Support: Follow the step-by-step guide onStarting JZY3D-JOGL Development in Eclipse.

  2. Clone the Repository: Clone this repository using the command:

git clone https://github.com/passlab/peviewer.git
  1. Open Project in Eclipse: Open the peviewer/experiment/hwloc3d folder in Eclipse as a Maven project.

  2. Navigate to File -> Import -> Maven -> Existing Maven Projects. Import Maven Project Import Maven Project

After successfully importing the project, proceed with the following steps:

  • Build and execute the SurfaceDemoAWT example. This will serve as the starting point for development.
  • Feel free to rename or create a new file from there as needed.

Run the SurfaceDemoAWT: To run the SurfaceDemoAWT.java file:

  1. Right-click on SurfaceDemoAWT.java.
  2. Select Run As -> Maven Clean.
  3. Right-click again on SurfaceDemoAWT.java.
  4. Select Run As -> Java Application. Expected Output

Parsing XML files from Java

When it comes to parsing XML files from Java, consider two options:

  1. Standard Java SDK for XML Parsing: Utilize the standard Java SDK for XML Parsing, as detailed in the Java SDK for XML Parsing Documentation.

  2. Using a library that already supports: Explore libraries that support the binding of xml Schema or DTD with Java objects. Two notable options are:

Clone this wiki locally