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.

To debug CUDA:
  1. Add printf() functions as desired throughout your API to output values of interest.
  2. Locate the EDEM.exe directory at “<EDEM install directory>\<version number>\EDEM\bin\”.
  3. Run the following command:
    C:\Program Files\Altair\<version number>\EDEM\bin\edem.exe --no-free
  4. Load your API model into EDEM and run the simulation.
    The results of the output should be displayed in the command window.