You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I installed the splishsplash on a machine with Quadro p5000 GPU. But when I am running te code it seems that GPU is not active.
What should I do to perform the calculations with GPU.
Regards
I have activated the option "USE_GPU_NEIGHBORHOODSEARCH". But when I run the program still cannot run by GPU. Is there any adjustment in Visual Studio? or windows?
Yes. I use cmake and I see this message. But when I try to run the C++ program using Visual studio only it uses the CPU .
If your CPU does not support AVX, turn off the USE_AVX flag.
Using Win32 for window creation
Use cuNSearch for neighborhood search
The CUDA compiler identification is NVIDIA 11.4.120
Detecting CUDA compiler ABI info
Detecting CUDA compiler ABI info - done
Check for working CUDA compiler: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.4/bin/nvcc.exe - skipped
Detecting CUDA compile features
Detecting CUDA compile features - done
Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.4 (found suitable version "11.4", minimum required is "9.0")
Configuring done
Generating done
Note that most of the work is done in the pressure solver which is not implemented on the GPU. There is one pull request with a Cuda implementation. However, in our tests this was slower than avx.
The most time consuming part is typically the pressure solver. The fastest one is DFSPH with AVX support. As far as I can see you are also using an implicit viscosity solver. This means that another linear system has to be solved which is also time consuming.
More CPU cores will help to make the simulation faster.
I have the same problem with you. The usage of GPU is really low, so I dont know whether the GPU is used. And I dont feel the simulation become faster.
Activity
janbender commentedon Sep 23, 2021
You have to activate the CMake option "USE_GPU_NEIGHBORHOODSEARCH".
hosseinrezaa commentedon Sep 23, 2021
I have activated the option "USE_GPU_NEIGHBORHOODSEARCH". But when I run the program still cannot run by GPU. Is there any adjustment in Visual Studio? or windows?
janbender commentedon Sep 24, 2021
Did you install Cuda?
hosseinrezaa commentedon Sep 24, 2021
Yes, Cuda toolkit 10.1
janbender commentedon Sep 28, 2021
Do you see a message "Use cuNSearch for neighborhood search" when you execute CMake?
hosseinrezaa commentedon Sep 28, 2021
Yes. I use cmake and I see this message. But when I try to run the C++ program using Visual studio only it uses the CPU .
If your CPU does not support AVX, turn off the USE_AVX flag.
Using Win32 for window creation
Use cuNSearch for neighborhood search
The CUDA compiler identification is NVIDIA 11.4.120
Detecting CUDA compiler ABI info
Detecting CUDA compiler ABI info - done
Check for working CUDA compiler: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.4/bin/nvcc.exe - skipped
Detecting CUDA compile features
Detecting CUDA compile features - done
Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.4 (found suitable version "11.4", minimum required is "9.0")
Configuring done
Generating done
janbender commentedon Sep 28, 2021
That is not possible since cuNSearch is used which does not implement any CPU computation.
janbender commentedon Sep 28, 2021
Note that most of the work is done in the pressure solver which is not implemented on the GPU. There is one pull request with a Cuda implementation. However, in our tests this was slower than avx.
hosseinrezaa commentedon Sep 28, 2021
I am now running the code
hosseinrezaa commentedon Sep 28, 2021
So it is using the GPU and if I need faster runs should I try with better devices?
janbender commentedon Sep 28, 2021
The most time consuming part is typically the pressure solver. The fastest one is DFSPH with AVX support. As far as I can see you are also using an implicit viscosity solver. This means that another linear system has to be solved which is also time consuming.
More CPU cores will help to make the simulation faster.
hosseinrezaa commentedon Sep 28, 2021
Thank you so much
nobane commentedon Jan 8, 2022
The correct option to pass to cmake is
-DUSE_GPU_NEIGHBORHOOD_SEARCH=On.chunleili commentedon Mar 29, 2022
I have the same problem with you. The usage of GPU is really low, so I dont know whether the GPU is used. And I dont feel the simulation become faster.