Does xcode 8.3 support cuda 8 now?

545 views
Skip to first unread message

Tianwei Shen

unread,
Apr 3, 2017, 12:17:54 PM4/3/17
to Caffe Users
I tried to build the code on my macbook pro. But I got the following errors:

[ 10%] Built target proto

[ 10%] Building NVCC (Device) object src/third_party/caffe3d/src/caffe/CMakeFiles/cuda_compile_1.dir/util/cuda_compile_1_generated_math_functions.cu.o

nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).

nvcc fatal   : The version ('80100') of the host compiler ('Apple clang') is not supported

CMake Error at cuda_compile_1_generated_math_functions.cu.o.Release.cmake:218 (message):

  Error generating

  /Users/STW/Documents/Projects/libvot/build/src/third_party/caffe3d/src/caffe/CMakeFiles/cuda_compile_1.dir/util/./cuda_compile_1_generated_math_functions.cu.o



make[2]: *** [src/third_party/caffe3d/src/caffe/CMakeFiles/cuda_compile_1.dir/util/cuda_compile_1_generated_math_functions.cu.o] Error 1

make[1]: *** [src/third_party/caffe3d/src/caffe/CMakeFiles/caffe.dir/all] Error 2

make: *** [all] Error 2


I searched the web and found this: https://github.com/arrayfire/arrayfire/issues/1384

But it seems to me that xcode 8.3 is supposed to support cuda 8 (8.0.61 on my machine). So it should happen. My laptop configuration is the following:
OS: MacOS Sierra 10.12.4

nvcc --version: 

nvcc: NVIDIA (R) Cuda compiler driver

Copyright (c) 2005-2016 NVIDIA Corporation

Built on Tue_Jan_10_13:22:46_CST_2017

Cuda compilation tools, release 8.0, V8.0.61


gcc -v:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1

Apple LLVM version 8.1.0 (clang-802.0.38)

Target: x86_64-apple-darwin16.5.0

Thread model: posix

InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin


xcode version: Version 8.3 (8E162). The toolchain version is not the same as 8.3, as is verified on wikipedia: https://www.wikiwand.com/en/Xcode. Toolchain version is indeed 8.1.0 (clang-802.0.38). So all my software should be the latest.
Reply all
Reply to author
Forward
0 new messages