Run GPU from the Command Line

To run EDEM GPU from the command line, specify the simulator engine with the flag “-E” followed by the corresponding engine number.

To run GPU Command line:
  1. Specify the flag by using the following options:
    • 0 runs the CPU engine
    • 2 runs the GPU CUDA engine
    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
  2. To run the GPU using the Nvidia Quadro GP100 card, execute the following command:
    edem.exe -c -i c:\processing\mysim.dem -E 2 -D 0
  3. To run using the Nvidia GeForce GTX 1080card, use the -D 1 flag.
    The flags from the CPU version of EDEM need to 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).
  4. To run on the command line with the GPU engine using only a single 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