-
Notifications
You must be signed in to change notification settings - Fork 541
NVCC does not support Apple Clang version 8.x #1384
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
Comments
This issue does not affect CUDA >= 8.0 |
First of all, CUDA 8.0 isn't widely available yet as it hasn't been officially released. Second, even CUDA 8 doesn't work with the current version of the Apple LLVM (version 8.0.0). It produces the following error message: |
^Running into the same error message, @samedling |
Thanks for your feedback. Unfortunately, this is an issue for CUDA to handle rather than ArrayFire. We are just a consumer on this front. That's why we have marked it as a known issue. CUDA 8 has been release as of today. However, as far as I can see, there is no download available for OSX. |
CUDA 8 for OSX has been released and supports clang version 7.3. Editing this issue to reflect that. |
Downloaded CLT from https://developer.apple.com/download/more/.
|
@henrythung it looks like you may need to install XCode if you haven't already done so. Sources: |
I have CUDA 8.0.46, OS X 10.12 and Xcode 8.1 but still have the same issue. |
To switch Xcode CLT back to 8.1 run this: |
@Sitin the issue description says you need to downgrade to 7.3 for CUDA to work. |
Great news - CUDA 8.0.55 now supports Xcode 8! Those of you who downgraded to CLT 7.3 need to upgrade to CLT 8.x, otherwise building the CUDA backend will fail due to a missing |
I now get
Through
I have Xcode and CLT both installed and am not sure what to do? |
@joseph-zhong, it looks like you're using Xcode 8.3, which CUDA (v8.0.61) does not yet support. :( Downgrading to CLT 8.2 should work. For reference:
|
Thanks a lot, @mlloreda
I did your method step by step and it worked ! |
work for both Mac Pro and MacBook Pro until 10.12 as long as using switch above and not the latest clang version (7.x and 8.2 both ok)80100 can work with some nvcc programsI used "80100" and nvcc work for some of my other programs. ... but not sample`
` install CLT 8.2 it is sort of ok with message about "command line tools instance"I google and see this discussion and thanks the hint to switch to CLT 8.2. It is sort of ok with warning message about "command line tools instance" Need to use "sudo make" to compile sample code: `
` |
Hi have the same problem, have tried @mlloreda solution. |
@Isachenko have |
@mlloreda no, both this variables are empty, if I understand you right. |
I still get the same error when following the downgrading steps (in the last step installing Torch ./install.sh): ` CMake Error at THC_generated_THCReduceApplyUtils.cu.o.cmake:207 (message): make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCReduceApplyUtils.cu.o] Error 1 make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCSleep.cu.o] Error 1 Error: Build error: Failed building. |
@NataliaDiaz What is the version of CUDA you have ? |
nvcc -V on OS X Sierra |
@NataliaDiaz what does |
@Isachenko next step would be to check your symlinks. Make sure that you are pointing to |
@NataliaDiaz you need v8.0.61, please check the nvidia website and download the right version. |
My clang version is Apple LLVM version 8.0.0 (clang-800.0.42.1) |
@NataliaDiaz you have two options:
|
@mlloreda I logged into the the Apple Developer page but your direct link to XCT 8.2 redirects me to https://developer.apple.com/unauthorized/. Instead people should visit https://developer.apple.com/download/more/ and search the list there for XCT 8.2. |
@guillochon interesting - the link still works for me after logging in but thanks for the heads up! |
I has same issue as @guillochon
Le mar. 2 mai 2017 à 00:20, Miguel Lloreda <notifications@github.com> a
écrit :
… @guillochon <https://github.com/guillochon> interesting - the link still
works for me after logging in but thanks for the heads up!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1384 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACNIhyupHM2Uq36-SSpiYrJn0ORfDDIkks5r1lq1gaJpZM4IHrC1>
.
|
To anyone stuck on this. Even though you might change the xcode version with xcode-select, and your clang version might say it's an older version, for some reason the compiler that ends up being used is still the latest version of XCode. Renaming the latest version of xcode.app to xcode_<new_version>.app after installing the older version to xcode_<old_version>.app fixed this for me. Other things to try: |
I'm stuck. Both Xcode and CUDA are at their latest release versions. Xcode 8.3.3
CUDA Driver version: 8.0.83
|
Uninstalled Xcode 8.3.3, installed Xcode 8.2 into
|
I made it with "NVIDIA CUDA Installation Guide for Mac OS X My operation is MacOS 10.12.5
|
After downgrading XCode to 8.2, I found that I had to clear out the |
@derwentx thanks a lot! Your tip to rename the newer version helped me to solve this issue here. |
@mlloreda It works well for me!Thanks a lot! |
Note that the CUDA 9.1 driver supports macOS 10.13. This means that existing CUDA applications can be run on Mac systems with CUDA 9.1 installed, however new CUDA applications cannot be compiled with CUDA 9.1 on macOS 10.13. Read more at: http://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html#ixzz53drQrgjs |
Error message:
nvcc fatal : The version ('80000') of the host compiler ('Apple clang') is not supported
Steps to fix:
sudo xcode-select --switch /Library/Developer/CommandLineTools
clang --version
Source: http://stackoverflow.com/a/36590330/701646
Edit: Update to 7.3 and fail at 8.0
The text was updated successfully, but these errors were encountered: