[SOLVED, kind of] CUDA 8 on Mac: ld: symbol(s) not found for architecture x86_64

Hi,

if I try compiling anything using CUDA 8 on OSX 10.9.5 and get the errors below. Any ideas? Any hope? I am really looking forward to CUDA 8, because my stuff should finally run on my laptop ;-)

Thanks,
qiv

$ cat sandbox/hello.cu 
#include <iostream>

int main(int argc, char const *argv[]) {
    std::cout << "Hello, CUDA 8";
    return 0;
}

$ nvcc -arch=compute_30  -std=c++11 sandbox/hello.cu
Undefined symbols for architecture x86_64:
  "_OSAtomicDecrement32Barrier", referenced from:
      cudart::cuosInterlockedDecrement(unsigned int volatile*) in libcudart_static.a(libcudart_static.a.o)
  "_OSAtomicDecrement64Barrier", referenced from:
      cudart::cuosInterlockedDecrement64(unsigned long long volatile*) in libcudart_static.a(libcudart_static.a.o)
  "_OSAtomicIncrement32Barrier", referenced from:
      cudart::cuosInterlockedIncrement(unsigned int volatile*) in libcudart_static.a(libcudart_static.a.o)
  "_OSAtomicIncrement64Barrier", referenced from:
      cudart::cuosInterlockedIncrement64(unsigned long long volatile*) in libcudart_static.a(libcudart_static.a.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

did you try building any of the CUDA 8 sample projects?

did you follow the instructions in the mac installation guide carefully?

for example it indicates that the supported mac os version is 10.11

it also indicates xcode 7.3 required

Thanks for the hint :D Have not read any installation instructions installers came into fashion. Hence it did not come to my mind that you might be able to install something on a system that would not run on that system …

Cheers,
qiv