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
fix CMake find package output #28
fix CMake find package output #28
Conversation
3d5fad0
to
70eaebe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't fix the error. Output now:
~/github/xmr-stak/build$ rm -rf *
~/github/xmr-stak/build$ cmake ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /usr (found suitable version "7.5", minimum required is "7.5")
-- Looking for CL_VERSION_2_0
-- Looking for CL_VERSION_2_0 - found
-- Found OpenCL: /usr/lib/x86_64-linux-gnu/libOpenCL.so (found version "2.0")
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.2g")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/fireice/github/xmr-stak/build
~/github/xmr-stak/build$ make
[ 3%] Building NVCC (Device) object CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/xmrstak_cuda_backend_generated_cuda_core.cu.o
nvcc fatal : Unsupported gpu architecture 'compute_60'
CMake Error at xmrstak_cuda_backend_generated_cuda_core.cu.o.cmake:207 (message):
Error generating
/home/fireice/github/xmr-stak/build/CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/./xmrstak_cuda_backend_generated_cuda_core.cu.o
CMakeFiles/xmrstak_cuda_backend.dir/build.make:70: recipe for target 'CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/xmrstak_cuda_backend_generated_cuda_core.cu.o' failed
make[2]: *** [CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/xmrstak_cuda_backend_generated_cuda_core.cu.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/xmrstak_cuda_backend.dir/all' failed
make[1]: *** [CMakeFiles/xmrstak_cuda_backend.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Thx for checking, I checked the version with less and removed pascal for
cuda 8. This is absolut bull shit ^^
|
fix fireice-uk#3 - remove QUIET from find package for OpenCL and CUDA - remove pascal architecture from default CUDA_ARCH for CUDA < 8.0
70eaebe
to
e52d04f
Compare
Fxed my bug and tested it with CUDA 7.5 and CUDA 8. |
Tested with cuda 9 on windows, before this, I always need compile with option: -DCUDA_ARCH=50;61 The CMake detect correctly cuda 9 and remove sm20
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The compile still fails, but we are making progress. I googled for a fix and adding add_definitions(-D_MWAITXINTRIN_H_INCLUDED)
seems to fix the problem.
/usr/lib/gcc/x86_64-linux-gnu/5/include/mwaitxintrin.h(36): error: identifier "__builtin_ia32_monitorx" is undefined
/usr/lib/gcc/x86_64-linux-gnu/5/include/mwaitxintrin.h(42): error: identifier "__builtin_ia32_mwaitx" is undefined
2 errors detected in the compilation of "/tmp/tmpxft_00007a1d_00000000-22_cuda_extra.compute_20.cpp1.ii".
CMake Error at xmrstak_cuda_backend_generated_cuda_extra.cu.o.cmake:266 (message):
Error generating file
/home/fireice/github/xmr-stak/build/CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/./xmrstak_cuda_backend_generated_cuda_extra.cu.o
Can you make sure if that flag needs to be targeted at GCC or not.
Do you used cuda 7.5 for compiling? I have never seen this error before.
Am 11.10.2017 5:27 Nachm. schrieb "fireice-uk" <notifications@github.com>:
… ***@***.**** requested changes on this pull request.
The compile still fails, but we are making progress. I googled for a fix
and adding add_definitions(-D_MWAITXINTRIN_H_INCLUDED) seems to fix the
problem.
/usr/lib/gcc/x86_64-linux-gnu/5/include/mwaitxintrin.h(36): error: identifier "__builtin_ia32_monitorx" is undefined
/usr/lib/gcc/x86_64-linux-gnu/5/include/mwaitxintrin.h(42): error: identifier "__builtin_ia32_mwaitx" is undefined
2 errors detected in the compilation of "/tmp/tmpxft_00007a1d_00000000-22_cuda_extra.compute_20.cpp1.ii".
CMake Error at xmrstak_cuda_backend_generated_cuda_extra.cu.o.cmake:266 (message):
Error generating file
/home/fireice/github/xmr-stak/build/CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/./xmrstak_cuda_backend_generated_cuda_extra.cu.o
Can you make sure if that flag needs to be targeted at GCC or not.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#28 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYsxttUmU5HEzwHsgP9NwVJTYBFsjdwmks5srN5pgaJpZM4PxzrA>
.
|
@fireice-uk could you please merge this PR, the issue you described is independent from the CMake changes within this PR. |
@fireice-uk I opened an issue #34 for the cuda 7.5 bug and fixed it in #35 |
fix #3
remove QUIET from find package for OpenCL and CUDA
remove pascal architecture from default CUDA_ARCH for CUDA < 8.0
remove sm_20 for CUDA >= 9.0
rebase against fix travis OSX build #29