GPUSPH / gpusph

The world's first CUDA implementation of Weakly-Compressible Smoothed Particle Hydrodynamics
160 stars 67 forks source link

I have too many errors about the cuh file , when i "make test" this source code. #76

Closed hhan23 closed 1 year ago

hhan23 commented 1 year ago

I have installed the chrono and used 12.0 CUDA with gtx1660ti, before i make test the code. The error message is as follows. image image image image image image Hope you can help me solve this problem! I'm looking forward to your reply .

Oblomov commented 1 year ago

Hello,

could you please specify which branch you're using and provide the output of make show?

hhan23 commented 1 year ago

hello! I just download the latest GPUSPH source code and following the gpusph-install.pdf. to run make test to build the project. I don't know which branch of the source I used.

Oblomov commented 1 year ago

The documentation on the website is a bit old. Can you please try the spheric2022 branch?

git clone git@github.com:GPUSPH/gpusph -b spheric2022
hhan23 commented 1 year ago

Thank you! I have tried the 2022spheric branch. when i make the code , program tell me should download thrust . But i don't know which version of thrust i should download or where to define THRUST_IGNORE_CUB_VERSION_CHECK.

image

Oblomov commented 1 year ago

Hello,

your CUDA installation should have come with Thrust installed. If it's not finding it, there might be some other issue with your setup. If your distribution has thrust packaged (e.g. in Debian it's libthrust-dev) you should install that. Otherwise, try

./scripts/get-thrust

from the GPUSPH working directory.

You may also want to install ascidoctor, run make docs and look at the new installation guide that is under docs/installation-guide.html

hhan23 commented 1 year ago

Thank you!

I have complied successfully. Could you please give me some suggestions to learn to build my own problems?

Oblomov commented 1 year ago

You can look at how other problems are set up by looking at the defaults shipped in src/problems. There is also a new user guide in docs/ that you can build with AsciiDoctor, as mentioned above, that should generate a docs/user-guide.html. For further discussions on this topic, I would recommend using our Discourse group.