Number of CPU Cores
Dear All,
As far as I know, DSPH automatically uses the available number of cores of GPU or CPU. My question is how can I allocate a fixed number? For example, I want to run a simulation on 32 CPU cores. How can I do that?
Thanks.
As far as I know, DSPH automatically uses the available number of cores of GPU or CPU. My question is how can I allocate a fixed number? For example, I want to run a simulation on 32 CPU cores. How can I do that?
Thanks.
Comments
Regards.
Thanks for your comment. So, I got the command "-ompthreads:" for parallel CPU execution from the help file. Can you please check if the following code is the right way to apply the command?
%dualsphysics% %dirout%/%name% %dirout% -svres -cpu -ompthreads:<32>
if not "%ERRORLEVEL%" == "0" goto fail
Thanks.
%dualsphysics% %dirout%/%name% %dirout% -svres -cpu -ompthreads:32
if not "%ERRORLEVEL%" == "0" goto fail
I think this command is only if u have just one physical processor (I guess you are using an Intel Xeon or something similar), if perhaps you are using a cluster you have to make some arrangements in your operational system but I don't know how to do that.
Regards.
I think DSPH is based on OpenMP and does not support MPI.