Getting Started with OpenCL Version - openpixi/openpixi_pic GitHub Wiki

This manual is intended for users who want to build and run the OpenCL version of OpenPixi project.Overview:

How do I run the OpenCL version?

Before running this version you have to make sure you have installed the OpenCL SDK for your device:

The building process is exactly the same as in the original version. To run the OpenCL version select MainBatch as the main class and pass as argument the settings.xml file. To select the OpenCL version add to the file the simulationType tag with the value "Parallel".

mvn exec:java -Dexec.mainClass="org.openpixi.pixi.ui.MainBatch" -Dexec.args="pixi.xml"

How do I profile the OpenCL version?

In order to profile the OpenCL version you have to get the timestamp before and after every execution of a kernel. The consumed time for a kernel, in one iteration, will be the difference between these timestamps. For all iterations the total consumed time for a kernel will be the sum of these values. You can find an example of profiling in the ParallelSimulationCL class. In order to run this profiling routine, in the XML settings file select "Boris Profile" as particle solver.