deepnet
deepnet copied to clipboard
identifier "uint" is undefined
on Mac 10.9.2 identifier "uint" is undefined error can be fixed by changing uint to int in cudamat_conv_kernels.cuh
me:~/dev/ai/deepnet/cudamat$ make
nvcc -O3
-v
-gencode=arch=compute_10,code=sm_10
-gencode=arch=compute_20,code=sm_20
-gencode=arch=compute_30,code=sm_30
--compiler-options '-fPIC' -o libcudamat_conv.so
--shared cudamat_conv.cu cudamat_conv_kernels.cu -lcublas -L/usr/local/cuda/lib
nvcc warning : The 'compute_10' and 'sm_10' architectures are deprecated, and may be removed in a future release.
$ SPACE=
$ CUDART=cudart
$ HERE=/usr/local/cuda/bin
$ THERE=/usr/local/cuda/bin
$ TARGET_SIZE=
$ TARGET_DIR=
$ TARGET_SIZE=64
$ TOP=/usr/local/cuda/bin/..
$ NVVMIR_LIBRARY_DIR=/usr/local/cuda/bin/../nvvm/libdevice
$ PATH=/usr/local/cuda/bin/../open64/bin:/usr/local/cuda/bin/../nvvm/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/Users/me/.rvm/gems/ruby-1.9.3-p484/bin:/Users/me/.rvm/gems/ruby-1.9.3-p484@global/bin:/Users/me/.rvm/rubies/ruby-1.9.3-p484/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/MacGPG2/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/Users/me/dev/bin/:/Users/me/dev/script:/Users/me/dev/script/shell/:/Users/me/dev/script/c/:/Users/me/dev/script/ruby/:/Users/me/dev/script/python/:/Users/me/dev/script/macscript/:/Users/me/dev/resources/scala-2.10.0/bin/:/Users/me/dev/resources/android-ndk-r9c:/Users/me/dev/resources/android-sdk-mac_x86/tools/:/Users/me/dev/resources/android-sdk-mac_x86/platform-tools:/Users/me/dev/resources/ec2-api-tools/bin/:/Applications/Qt5.1/5.1.1/clang_64/bin/:/usr/local/octave/3.8.0/bin/:/usr/local/Cellar/elasticsearch/0.19.0/bin/:/Users/me/.ec2/bin:/Users/me/.rvm/bin
$ INCLUDES="-I/usr/local/cuda/bin/../include"
$ LIBRARIES= "-L/usr/local/cuda/bin/../lib"
$ CUDAFE_FLAGS=
$ OPENCC_FLAGS=
$ PTXAS_FLAGS=
$ clang -stdlib=libstdc++ -D__CUDA_ARCH__=300 -E -x c++ -DCUDA_DOUBLE_MATH_FUNCTIONS -D__CUDACC__ -D__NVCC__ -fPIC -O3 "-I/usr/local/cuda/bin/../include" -include "cuda_runtime.h" -m64 -o "/var/folders/h6/5yk5fw6x58l_s99ypvht_r8w0000gn/T//tmpxft_0000765f_00000000-23_cudamat_conv.compute_30.cpp1.ii" "cudamat_conv.cu"
./cudamat_conv_kernels.cuh(2012): error: identifier "uint" is undefined ./cudamat_conv_kernels.cuh(439): error: identifier "uint" is undefined