Issue compiling DualSPHysics v5.4 for CPU — GPU-related files being compiled #337
Unanswered
Pbarbosa92
asked this question in
DUALSPHYSICS_V5.4
Replies: 1 comment
-
|
CMake has been updated to fix the CPU issue in the latest commits on GitHub and also in the full package (v5.4.2) on the website: https://dual.sphysics.org/downloads/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
I'm trying to compile DualSPHysics v5.4 for CPU only using a Docker image. I’m using
cmakewith the following commands:Initially, I encountered an error stating that
cuda_runtime_api.hcould not be found. This was unexpected, since I'm building the CPU version and assumed CUDA-related headers wouldn’t be needed.To work around that, I switched to a CUDA-enabled base image:
This allowed the build to find the CUDA headers, but then I ran into a new set of compilation errors, seemingly from GPU-related files being compiled even though I'm targeting CPU:
This suggests that
make DualSPHysics5.4CPU_linux64is incorrectly trying to compile GPU-related files (e.g.,JSphGpuSingle_VRes.cpp) which shouldn't be included for a CPU-only build.Questions:
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions