GPU comutations #164
Replies: 17 comments 2 replies
|
You have to activate the CMake option "USE_GPU_NEIGHBORHOODSEARCH". |
|
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? |
|
Did you install Cuda? |
|
Yes, Cuda toolkit 10.1 |
|
Do you see a message "Use cuNSearch for neighborhood search" when you execute CMake? |
|
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. |
|
That is not possible since cuNSearch is used which does not implement any CPU computation. |
|
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. |
|
So it is using the GPU and if I need faster runs should I try with better devices? |
|
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. |
|
Thank you so much |
|
The correct option to pass to cmake is |
|
As I already mentioned, currently only the neighborhood search is implemented on GPU. From exchanging an optimized neighborhood search on CPU with the GPU version you cannot expect a incredible speedup of the overall simulation since the neighborhood search is not the most time-consuming part of the simulation. Moreover, in small simulations (I see 57k particles in the screenshot) using the GPU does not bring a big speed up. Hope that in future we will also find the time to reimplement the pressure solver on the GPU. |
|
Hello, I encountered no errors during the cmake process, and I could see the message 'Use cuNSearch for neighborhood search', but I received an error during the make process. Apart from the option -DUSE_GPU_NEIGHBORHOOD_SEARCH=On, do I need to modify anything else? |
|
You need a cuda installation. |


Uh oh!
There was an error while loading. Please reload this page.
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
All reactions