I get this warning in Batch model EDEM: "WARNING : Deprecated Solver : The OpenCL solver has been deprecated in EDEM 2022.2 and will be removed"
Hi,
I am using GPU for a batch mode processing of the EDEM simulation on HPC with Linux system. When I am using the GUI, I can see that both CUDA and OpenCL are in the options for GPU, and I can select CUDA. First, I am using EDEM 2022.3, so is it using CUDA? if it is still using OpenCL, does it affect the speed of simulations using GPU? if so, is there any syntax I can use to ask EDEM to use CUDA. I am using this syntax
edem -c -i EDEM_project.dem -r 25 -E 1 --rewind
Thank you,
Mahdi.
Best Answer
-
Mahdi_22303 said:
And when I use this syntax
edem -c -i EDEM_project.dem -r 25 -E 2 --rewind
I get this error message
ERROR : Multi-Sphere GPU CUDA Solver : No GPU device is set.
You can perform GPU device testing in Options -> Simulator Engine -> Start testHow can I avoid this testing stage without needing to open the EDEM in GUI mode?
Thank you,
Mahdi.
Hi Mahdi,
You can add in -D flag for device.edem -c -i EDEM_project.dem -r 25 -E 2 -D 0 --rewind
This will run on CUDA using 1 GPU and the first GPU device in the list. If you have 4 GPU's they would be device 0, 1, 2 or 3 and you could specify -D 1 or -D 3 etc. if you just wanted to run 1.
If you want to run on 2 GPU's you can use:
edem -c -i EDEM_project.dem -r 25 -E 2 -D 0+1 --rewind
Or -D 1+2, -D 0+3 etc. And for 4 GPU's it would be -D 0+1+2+3
RegardsStephen
1
Answers
-
Hi Mahdi,
You can change flag -E 1 to -E 2. Engine 1 is the OpenCL solver and Engine 2 is the CUDA solver.How to use EDEM Batch Commands
Regards
Stephen
0 -
Stephen Cole_21117 said:
Hi Mahdi,
You can change flag -E 1 to -E 2. Engine 1 is the OpenCL solver and Engine 2 is the CUDA solver.How to use EDEM Batch Commands
Regards
Stephen
Hi Stephen,
Thank you for your reply. I thought " E 2" in the batch command means using 2 GPUs. If 2 refers to CUDA, then how can we specify number of GPUs to be used. I am requesting in the bash file the number of GPUS using
#SBATCH --gpus=a100:2 # Request 2 full a100 GPUs for job
so, then when I am using this command:
edem -c -i EDEM_project.dem -r 25 -E 2 --rewind
does this mean that EDEM will use both of GPUs?
Thank you.
0 -
And when I use this syntax
edem -c -i EDEM_project.dem -r 25 -E 2 --rewind
I get this error message
ERROR : Multi-Sphere GPU CUDA Solver : No GPU device is set.
You can perform GPU device testing in Options -> Simulator Engine -> Start testHow can I avoid this testing stage without needing to open the EDEM in GUI mode?
Thank you,
Mahdi.
0 -
Mahdi_22303 said:
And when I use this syntax
edem -c -i EDEM_project.dem -r 25 -E 2 --rewind
I get this error message
ERROR : Multi-Sphere GPU CUDA Solver : No GPU device is set.
You can perform GPU device testing in Options -> Simulator Engine -> Start testHow can I avoid this testing stage without needing to open the EDEM in GUI mode?
Thank you,
Mahdi.
Hi Mahdi,
You can add in -D flag for device.edem -c -i EDEM_project.dem -r 25 -E 2 -D 0 --rewind
This will run on CUDA using 1 GPU and the first GPU device in the list. If you have 4 GPU's they would be device 0, 1, 2 or 3 and you could specify -D 1 or -D 3 etc. if you just wanted to run 1.
If you want to run on 2 GPU's you can use:
edem -c -i EDEM_project.dem -r 25 -E 2 -D 0+1 --rewind
Or -D 1+2, -D 0+3 etc. And for 4 GPU's it would be -D 0+1+2+3
RegardsStephen
1 -
Stephen Cole_21117 said:
Hi Mahdi,
You can add in -D flag for device.edem -c -i EDEM_project.dem -r 25 -E 2 -D 0 --rewind
This will run on CUDA using 1 GPU and the first GPU device in the list. If you have 4 GPU's they would be device 0, 1, 2 or 3 and you could specify -D 1 or -D 3 etc. if you just wanted to run 1.
If you want to run on 2 GPU's you can use:
edem -c -i EDEM_project.dem -r 25 -E 2 -D 0+1 --rewind
Or -D 1+2, -D 0+3 etc. And for 4 GPU's it would be -D 0+1+2+3
RegardsStephen
Thank you so much Stephen, it worked.
0