You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/01/07 12:59:08 UTC

[GitHub] squirrelim opened a new issue #13785: compile error:token ""__CUDACC_VER__ is no longer supported.

squirrelim opened a new issue #13785: compile error:token ""__CUDACC_VER__ is no longer supported.
URL: https://github.com/apache/incubator-mxnet/issues/13785
 
 
   ### **Description**
   compile error
   what to do:
   `git clone --recursive https://github.com/dmlc/mxnet.git`
   `cd mxnet`
   `git checkout 998378a`
   `git submodule update --init --recursive`
   `make -j $(nproc) USE_OPENCV=1 USE_BLAS=openblas USE_CUDA=1 USE_CUDA_PATH=/usr/local/cuda USE_CUDNN=1`
   
   ### **Error Message**
   cd /root/Deformable-ConvNets/mxnet/dmlc-core; make libdmlc.a USE_SSE=1 config=/root/Deformable-ConvNets/mxnet/config.mk; cd /root/Deformable-ConvNets/mxnet
   make[1]: Entering directory '/root/Deformable-ConvNets/mxnet/dmlc-core'
   make[1]: 'libdmlc.a' is up to date.
   make[1]: Leaving directory '/root/Deformable-ConvNets/mxnet/dmlc-core'
   /usr/local/cuda/bin/nvcc -std=c++11 -Xcompiler -D_FORCE_INLINES -O3 -ccbin g++  -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=[sm_61,compute_61] --fatbin-options -compress-all -Xcompiler "-DMSHADOW_FORCE_STREAM -Wall -Wsign-compare -O3 -DNDEBUG=1 -I/root/Deformable-ConvNets/mxnet/mshadow/ -I/root/Deformable-ConvNets/mxnet/dmlc-core/include -fPIC -I/root/Deformable-ConvNets/mxnet/nnvm/include -I/root/Deformable-ConvNets/mxnet/dlpack/include -Iinclude -funroll-loops -Wno-unused-variable -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedefs -msse3 -I/usr/local/cuda/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMSHADOW_USE_PASCAL=0 -DMXNET_USE_OPENCV=1 -I/usr/local/include/opencv -I/usr/local/include -fopenmp -DMXNET_USE_LAPACK -DMSHADOW_USE_CUDNN=1  -I/root/Deformable-ConvNets/mxnet/cub -DMXNET_USE_NVRTC=0" -M -MT build/src/operator/tensor/indexing_op_gpu.o src/operator/tensor/indexing_op.cu >build/src/operator/tensor/indexing_op_gpu.d
   In file included from /usr/local/cuda/include/common_functions.h:50:0,
                    from /usr/local/cuda/include/cuda_runtime.h:115,
                    from <command-line>:0:
   /usr/local/cuda/include/crt/common_functions.h:64:24: error: token ""__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."" is not valid in preprocessor expressions
    #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                           ^
   /root/Deformable-ConvNets/mxnet/cub/cub/device/dispatch/../../agent/../thread/../thread/../util_arch.cuh:46:6: note: in expansion of macro '__CUDACC_VER__'
    #if (__CUDACC_VER__ >= 80500)
         ^
   Makefile:274: recipe for target 'build/src/operator/tensor/indexing_op_gpu.o' failed
   make: *** [build/src/operator/tensor/indexing_op_gpu.o] Error 1
   make: *** Waiting for unfinished jobs....
   
   ### **Environment:**
   Ubuntu 16.04
   cuda9.0
   cudnn7.05

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services