Debug GPU CUDA
EDEM displays the errors in a dialog box when your simulation is started. An additional method for debugging which allows you to obtain real-time information from the simulation is to run an attached simulation through the command line.
-
Add
printf()
functions as desired throughout your API to output values of interest. -
Locate the
EDEM.exe
directory at“<EDEM install directory>\<version number>\EDEM\bin\”
. -
Run the following command:
C:\Program Files\Altair\<version number>\EDEM\bin\edem.exe --no-free
-
Load your API model into EDEM and run the
simulation.
The results of the output should be displayed in the command window.