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"

Mahdi_22303
Mahdi_22303 Altair Community Member
edited September 2023 in Community Q&A

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.

Tagged:

Welcome!

It looks like you're new here. Sign in or register to get started.

Best Answer

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited September 2023 Answer ✓

    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 test

     

    How 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


    Regards

    Stephen

     

     

Answers

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited September 2023

    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

     

  • Mahdi_22303
    Mahdi_22303 Altair Community Member
    edited September 2023

    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.

  • Mahdi_22303
    Mahdi_22303 Altair Community Member
    edited September 2023

    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 test

     

    How can I avoid this testing stage without needing to open the EDEM in GUI mode?

    Thank you,

    Mahdi.

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited September 2023 Answer ✓

    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 test

     

    How 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


    Regards

    Stephen

     

     

  • Mahdi_22303
    Mahdi_22303 Altair Community Member
    edited September 2023

    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


    Regards

    Stephen

     

     

    Thank you so much Stephen, it worked. 

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.