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

Cannot pass CUDA clang version check #76

Open
galaxy001 opened this issue Jul 24, 2015 · 1 comment
Open

Cannot pass CUDA clang version check #76

galaxy001 opened this issue Jul 24, 2015 · 1 comment

Comments

@galaxy001
Copy link

/usr/local/cuda/bin/nvcc -ccbin /usr/local/bin/clang-omp test.cu
nvcc fatal   : The version ('30500') of the host compiler ('clang') is not supported
$ /usr/local/bin/clang-omp --version
clang version 3.5.0
Target: x86_64-apple-darwin14.4.0
Thread model: posix

$ gcc --version
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix
@sfantao
Copy link

sfantao commented Jul 24, 2015

Hi galaxy001,

CUDA is being used to write the GPU runtime library, and it is known that
the CUDA libraries are not prepared to have clang as the host compiler.
There is a pull request by hanjo being reviewed to avoid that, and just
fail producing that library. We are just evaluating the impact of that
change in some other platforms. In the meantime you can try nvcc to use gcc
(if you have it) for the host compiler.

Thanks for reporting the issue!
Samuel

From: galaxy001 notifications@github.com
To: clang-omp/clang clang@noreply.github.com
Date: 07/24/2015 04:56 AM
Subject: [clang] Cannot pass CUDA clang version check (#76)

/usr/local/cuda/bin/nvcc -ccbin /usr/local/bin/clang-omp test.cu
nvcc fatal : The version ('30500') of the host compiler ('clang') is not
supported

$ /usr/local/bin/clang-omp --version
clang version 3.5.0
Target: x86_64-apple-darwin14.4.0
Thread model: posix

$ gcc --version
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix


Reply to this email directly or view it on GitHub.

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

2 participants