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)