{"action":"created","issue":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/3363","repository_url":"https://api.github.com/repos/dmlc/mxnet","labels_url":"https://api.github.com/repos/dmlc/mxnet/issues/3363/labels{/name}","comments_url":"https://api.github.com/repos/dmlc/mxnet/issues/3363/comments","events_url":"https://api.github.com/repos/dmlc/mxnet/issues/3363/events","html_url":"https://github.com/dmlc/mxnet/issues/3363","id":179011537,"number":3363,"title":"[Install Failure in Macbook Pro] nvcc fatal : redefinition of argument 'std'","user":{"login":"ScartleRoy","id":6149558,"avatar_url":"https://avatars.githubusercontent.com/u/6149558?v=3","gravatar_id":"","url":"https://api.github.com/users/ScartleRoy","html_url":"https://github.com/ScartleRoy","followers_url":"https://api.github.com/users/ScartleRoy/followers","following_url":"https://api.github.com/users/ScartleRoy/following{/other_user}","gists_url":"https://api.github.com/users/ScartleRoy/gists{/gist_id}","starred_url":"https://api.github.com/users/ScartleRoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScartleRoy/subscriptions","organizations_url":"https://api.github.com/users/ScartleRoy/orgs","repos_url":"https://api.github.com/users/ScartleRoy/repos","events_url":"https://api.github.com/users/ScartleRoy/events{/privacy}","received_events_url":"https://api.github.com/users/ScartleRoy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-24T05:15:46Z","updated_at":"2016-09-24T05:56:23Z","closed_at":null,"body":"\r\nHi,\r\n\r\nI was trying to install MXNet in my Macbook Pro (OS X 10.11.6, GT 750M) with GPU support, but the same error occurs in several trials:\r\n\r\n```\r\n >build/src/ndarray/ndarray_function_gpu.d\r\nnvcc fatal   : redefinition of argument 'std'\r\nmake: *** [build/src/ndarray/ndarray_function_gpu.o] Error 1\r\n```\r\n\r\nMy osx.mk file is:\r\n\r\n```\r\n#---------------------\r\n# choice of compiler\r\n#--------------------\r\n\r\nexport CC = clang-omp\r\nexport CXX = clang-omp++\r\nexport NVCC = nvcc\r\n\r\n# whether compile with debug\r\nDEBUG = 0\r\n\r\n# the additional link flags you want to add\r\n# ADD_LDFLAGS = -L/usr/local/opt/openblas/lib -L/usr/local/cuda/lib -L/usr/local/lib\r\n\r\n# the additional compile flags you want to add\r\n# ADD_CFLAGS = -I/usr/local/opt/openblas/include -I/usr/local/include\r\n\r\n#---------------------------------------------\r\n# matrix computation libraries for CPU/GPU\r\n#---------------------------------------------\r\n\r\n# whether use CUDA during compile\r\nUSE_CUDA = 1\r\n\r\n# add the path to CUDA library to link and compile flag\r\n# if you have already add them to environment variable, leave it as NONE\r\n# USE_CUDA_PATH = /usr/local/cuda\r\nUSE_CUDA_PATH = /Developer/NVIDIA/CUDA-7.5\r\n\r\n# whether use CUDNN R3 library\r\nUSE_CUDNN = 1\r\n\r\n# whether use cuda runtime compiling for writing kernels in native language (i.e. Python)\r\nUSE_NVRTC = 1\r\n\r\n# whether use opencv during compilation\r\n# you can disable it, however, you will not able to use\r\n# imbin iterator\r\nUSE_OPENCV = 1\r\n\r\n# use openmp for parallelization\r\nUSE_OPENMP = 0\r\n\r\n# choose the version of blas you want to use\r\n# can be: mkl, blas, atlas, openblas\r\nUSE_BLAS = apple\r\n```\r\n\r\nI guess there might be something wrong within CMakeList.txt, but I'm not familiar with it so I don't know the exact reason. Could you please take a look into this?\r\n\r\nBTW, this problem occurs no matter how I set ```USE_CUDA```, ```USE_CUDNN``` and ```USE_NVRTC```."},"comment":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/comments/249347473","html_url":"https://github.com/dmlc/mxnet/issues/3363#issuecomment-249347473","issue_url":"https://api.github.com/repos/dmlc/mxnet/issues/3363","id":249347473,"user":{"login":"ScartleRoy","id":6149558,"avatar_url":"https://avatars.githubusercontent.com/u/6149558?v=3","gravatar_id":"","url":"https://api.github.com/users/ScartleRoy","html_url":"https://github.com/ScartleRoy","followers_url":"https://api.github.com/users/ScartleRoy/followers","following_url":"https://api.github.com/users/ScartleRoy/following{/other_user}","gists_url":"https://api.github.com/users/ScartleRoy/gists{/gist_id}","starred_url":"https://api.github.com/users/ScartleRoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScartleRoy/subscriptions","organizations_url":"https://api.github.com/users/ScartleRoy/orgs","repos_url":"https://api.github.com/users/ScartleRoy/repos","events_url":"https://api.github.com/users/ScartleRoy/events{/privacy}","received_events_url":"https://api.github.com/users/ScartleRoy/received_events","type":"User","site_admin":false},"created_at":"2016-09-24T05:56:23Z","updated_at":"2016-09-24T05:56:23Z","body":"Oh one thing to correct: I fixed ```USE_CUDA = 1``` for installing a GPU-enabled version. If I set it to 0 (and ```USE_CUDNN = 0, USE_NVRTC = 0```), it came up with:\r\n```\r\nld: symbol(s) not found for architecture x86_64\r\nclang-3.5: error: linker command failed with exit code 1 (use -v to see invocation)\r\n```\r\nwhich I have seen in other issues. Spent hours on it and still haven't successfully installed..."}}
{"actor":{"display_login":"ScartleRoy"}}