I uninstalled all my cuda drivers, tool and samples as per these instructions:
I then downloaded and installed cuda_9.1.128_mac.dmg
After the very long installation I rebooted.
Followed these instructions.
kextstat | grep -i cuda
150 0 0xffffff7f80f14000 0x2000 0x2000 com.nvidia.CUDA (1.1.0) 4329B052-6C8A-3900-8E83-744487AEDEF1 <4 1>
nvcc wasn’t in my path so I had to locate it… but it ran.
nvcc: NVIDIA ® Cuda compiler driver
Copyright © 2005-2017 NVIDIA Corporation
Built on Tue_Dec_19_21:36:29_CST_2017
Cuda compilation tools, release 9.1, V9.1.128
I proceeded to make a few examples as per the instructions… No problem except I had to sudo to make.
The instructions say that you should be able to build all CUDA samples by simply typing make in the samples root directory.
this did not work for me.
MicMac:samples brianobrien$ pwd
MyMac:samples me$ make
clang++ -rpath /Developer/NVIDIA/CUDA-9.1/lib -L/Developer/NVIDIA/CUDA-9.1/lib -framework CUDA -o simpleTemplates_nvrtc simpleTemplates.o -lnvrtc
ld: framework not found CUDA
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [simpleTemplates_nvrtc] Error 1
make: *** [0_Simple/simpleTemplates_nvrtc/Makefile.ph_build] Error 2
I verified the installation.
I verified as per the instructions.
MyMac:release me$ ./deviceQuery
CUDA Device Query (Runtime API) version (CUDART static linking)
cudaGetDeviceCount returned 35
-> CUDA driver version is insufficient for CUDA runtime version
Result = FAIL