Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using make #24

Open
TirtaHema opened this issue Nov 28, 2019 · 2 comments
Open

Error when using make #24

TirtaHema opened this issue Nov 28, 2019 · 2 comments

Comments

@TirtaHema
Copy link

I had some problem when installing CCMpred when use make command

[ 30%] Built target conjugrad
[ 35%] Building CUDA object CMakeFiles/ccmpred.dir/src/evaluate_cuda_kernels.cu.o
nvcc fatal : Unknown option 'fopenmp'
CMakeFiles/ccmpred.dir/build.make:326: recipe for target 'CMakeFiles/ccmpred.dir/src/evaluate_cuda_kernels.cu.o' failed
make[2]: *** [CMakeFiles/ccmpred.dir/src/evaluate_cuda_kernels.cu.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/ccmpred.dir/all' failed
make[1]: *** [CMakeFiles/ccmpred.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

@Hugemiler
Copy link

Hello, @TirtaHema ! I had the same issue over here, and that's how I worked around it:

When I first tried to compile, I was using CUDA 10.2, gcc 7.4 and cmake 3.10.2 (the default version on ubuntu's apt repository). The first thing I tried was passing the -DWITH_OMP=OFF flag to cmake to try and see if that would solve my problem. It did not, only went from a nvcc conflict with '-fopenmp' to a conflict with '-pthreads'.

Looking more into ir I found this blog post https://peter.bloomfield.online/workaround-nvcc-pthread-issue/ which suggested changing the cmake version.

I went to https://cmake.org/download/ and downloaded cmake version 3.16, compiled it and was finally able to install CCMpred using this cmake version. So, apparently, the issue is with cmake, not with the CCMpred software.

I hope it helps. =]

@DaMaoShan
Copy link

Hello, @TirtaHema ! I had the same issue over here, and that's how I worked around it:

When I first tried to compile, I was using CUDA 10.2, gcc 7.4 and cmake 3.10.2 (the default version on ubuntu's apt repository). The first thing I tried was passing the -DWITH_OMP=OFF flag to cmake to try and see if that would solve my problem. It did not, only went from a nvcc conflict with '-fopenmp' to a conflict with '-pthreads'.

Looking more into ir I found this blog post https://peter.bloomfield.online/workaround-nvcc-pthread-issue/ which suggested changing the cmake version.

I went to https://cmake.org/download/ and downloaded cmake version 3.16, compiled it and was finally able to install CCMpred using this cmake version. So, apparently, the issue is with cmake, not with the CCMpred software.

I hope it helps. =]

Great! I succeed with your help!!! Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants