GPU comutations #164
Replies: 17 comments 2 replies
-
You have to activate the CMake option "USE_GPU_NEIGHBORHOODSEARCH". |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
Did you install Cuda? |
Beta Was this translation helpful? Give feedback.
-
Yes, Cuda toolkit 10.1 |
Beta Was this translation helpful? Give feedback.
-
Do you see a message "Use cuNSearch for neighborhood search" when you execute CMake? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
That is not possible since cuNSearch is used which does not implement any CPU computation. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
I am now running the code |
Beta Was this translation helpful? Give feedback.
-
So it is using the GPU and if I need faster runs should I try with better devices? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Thank you so much |
Beta Was this translation helpful? Give feedback.
-
The correct option to pass to cmake is |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
You need a cuda installation. |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions