Running from the Command Line

To run EDEM GPU from the command line, the simulator engine has to be specified with the flag ā€œ-Eā€ followed by the corresponding engine number.

  • 0 runs the CPU engine
  • 1 runs the GPU OpenCL engine
  • 2 runs the GPU CUDA engine

In addition, you can set the Device Index for the GPU.  

Setting the device index bypasses the EDEM GPU Device Test, this is designed for use on hardware where the EDEM GUI is not available (such as running on a cluster). If more than 1 GPU card is available, the required card can be specified. The name of each card is provided in the command line.

Device Index GPU Device name
0 Nvidia Quadro GP100
1 Nvidia GeForce GTX 1080


To run using the Nvidia Quadro GP100 card: 

edem.exe -c -i c:\processing\mysim.dem -E 2 -D 0

To run using the Nvidia GeForce GTX 1080card, the -D 1 flag would be required.

The flags from the CPU version of EDEM are still be valid in order to set number of CPU processors used in the factory domains (-p), real time to simulate (-r), data save interval (-w) and Time Step used (-t).

For example, to run on the command line with the GPU engine using only one card you must enter the following command:

edem.exe -console -i simulation_deck.dem -E 2 -D 0 -p 4 -r 2 -w 0.1 -t 1e-6

(c) 2023 Altair Engineering Inc. All Rights Reserved.

Intellectual Property Rights Notice | Technical Support