cnn_head_detection icon indicating copy to clipboard operation
cnn_head_detection copied to clipboard

some error in compile_mex

Open mtastal opened this issue 6 years ago • 0 comments

compile_mex('/Developer/NVIDIA/CUDA-9.1')

root =

'/Users/macos/Desktop/CNNN/utils/cropRectanglesMex'

Hi

while trying to run compile_mex, I've been omit some semicolon to show the output just before the error get this error

compileCmd =

'"/Developer/NVIDIA/CUDA-9.1/bin/nvcc" -c cropRectanglesMex.cu -DNDEBUG -DENABLE_GPU -I"/Applications/MATLAB_R2017b.app/extern/include" -I"/Applications/MATLAB_R2017b.app/toolbox/distcomp/gpu/extern/include" -I"/Developer/NVIDIA/CUDA-9.1/include" -I"/Developer/NVIDIA/CUDA-9.1/samples/7_CUDALibraries/common/UtilNPP" -I"/Developer/NVIDIA/CUDA-9.1/samples/common/inc" -Xcompiler -fPIC -o "/Users/macos/Desktop/CNNN/utils/cropRectanglesMex/cropRectanglesMex.o"'

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

ans =

 1

Building with 'Xcode with Clang'. Error using mex clang: error: no such file or directory: '/Users/macos/Desktop/CNNN/utils/cropRectanglesMex/cropRectanglesMex.o'

Error in build_cropRectanglesMex (line 38) mex(mopts{:}) ;

Error in compile_mex (line 9) build_cropRectanglesMex( cudaRoot );

mtastal avatar Apr 02 '18 09:04 mtastal