{"action":"created","issue":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/4041","repository_url":"https://api.github.com/repos/dmlc/mxnet","labels_url":"https://api.github.com/repos/dmlc/mxnet/issues/4041/labels{/name}","comments_url":"https://api.github.com/repos/dmlc/mxnet/issues/4041/comments","events_url":"https://api.github.com/repos/dmlc/mxnet/issues/4041/events","html_url":"https://github.com/dmlc/mxnet/issues/4041","id":192718670,"number":4041,"title":"Build error with CUDA build","user":{"login":"sanjeevm0","id":8659713,"avatar_url":"https://avatars.githubusercontent.com/u/8659713?v=3","gravatar_id":"","url":"https://api.github.com/users/sanjeevm0","html_url":"https://github.com/sanjeevm0","followers_url":"https://api.github.com/users/sanjeevm0/followers","following_url":"https://api.github.com/users/sanjeevm0/following{/other_user}","gists_url":"https://api.github.com/users/sanjeevm0/gists{/gist_id}","starred_url":"https://api.github.com/users/sanjeevm0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanjeevm0/subscriptions","organizations_url":"https://api.github.com/users/sanjeevm0/orgs","repos_url":"https://api.github.com/users/sanjeevm0/repos","events_url":"https://api.github.com/users/sanjeevm0/events{/privacy}","received_events_url":"https://api.github.com/users/sanjeevm0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-01T00:10:33Z","updated_at":"2016-12-03T13:43:51Z","closed_at":null,"body":"I am seeing following error when trying to build with CUDA support.  Same error shows up when trying to build CUDA docker container.\r\n\r\ng++ -std=c++11 -DMSHADOW_FORCE_STREAM -Wall -O3 -I/root/mxnet/mshadow/ -I/root/mxnet/dmlc-core/include -fPIC -Iinclude -funroll-loops -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 -DMSDHADOW_USE_PASCAL=0 -DMXNET_USE_OPENCV=1 `pkg-config --cflags opencv` -fopenmp -DMSHADOW_USE_CUDNN=1  -DMXNET_USE_NVRTC=0 -MM -MT build/src/resource.o src/resource.cc >build/src/resource.d\r\ng++ -std=c++11 -c -DMSHADOW_FORCE_STREAM -Wall -O3 -I/root/mxnet/mshadow/ -I/root/mxnet/dmlc-core/include -fPIC -Iinclude -funroll-loops -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 -DMSDHADOW_USE_PASCAL=0 -DMXNET_USE_OPENCV=1 `pkg-config --cflags opencv` -fopenmp -DMSHADOW_USE_CUDNN=1  -DMXNET_USE_NVRTC=0 -c src/resource.cc -o build/src/resource.o\r\nIn file included from /root/mxnet/mshadow/mshadow/tensor.h:16:0,\r\n                 from include/mxnet/base.h:13,\r\n                 from src/resource.cc:9:\r\n/root/mxnet/mshadow/mshadow/./base.h:242:13: error: conflicting declaration 'typedef int cudnnTensorFormat_t'\r\n typedef int cudnnTensorFormat_t;\r\n             ^\r\nIn file included from /root/mxnet/mshadow/mshadow/./base.h:152:0,\r\n                 from /root/mxnet/mshadow/mshadow/tensor.h:16,\r\n                 from include/mxnet/base.h:13,\r\n                 from src/resource.cc:9:\r\n/usr/include/cudnn.h:146:3: error: 'cudnnTensorFormat_t' has a previous declaration as 'typedef enum cudnnTensorFormat_t cudnnTensorFormat_t'\r\n } cudnnTensorFormat_t;\r\n   ^\r\nIn file included from /root/mxnet/mshadow/mshadow/tensor.h:16:0,\r\n                 from include/mxnet/base.h:13,\r\n                 from src/resource.cc:9:\r\n/root/mxnet/mshadow/mshadow/./base.h:325:50: error: invalid conversion from 'int' to 'cudnnTensorFormat_t' [-fpermissive]\r\n   static const cudnnTensorFormat_t kCudnnFlag = -1;\r\n                                                  ^\r\n/root/mxnet/mshadow/mshadow/./base.h:335:50: error: invalid conversion from 'int' to 'cudnnTensorFormat_t' [-fpermissive]\r\n   static const cudnnTensorFormat_t kCudnnFlag = -1;\r\n                                                  ^\r\n/root/mxnet/mshadow/mshadow/./base.h:347:50: error: invalid conversion from 'int' to 'cudnnTensorFormat_t' [-fpermissive]\r\n   static const cudnnTensorFormat_t kCudnnFlag = -1;\r\n                                                  ^\r\n/root/mxnet/mshadow/mshadow/./base.h:357:50: error: invalid conversion from 'int' to 'cudnnTensorFormat_t' [-fpermissive]\r\n   static const cudnnTensorFormat_t kCudnnFlag = -1;\r\n                                                  ^\r\nmake: *** [build/src/resource.o] Error 1\r\n"},"comment":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/comments/264640059","html_url":"https://github.com/dmlc/mxnet/issues/4041#issuecomment-264640059","issue_url":"https://api.github.com/repos/dmlc/mxnet/issues/4041","id":264640059,"user":{"login":"SpecialM2580","id":11871968,"avatar_url":"https://avatars.githubusercontent.com/u/11871968?v=3","gravatar_id":"","url":"https://api.github.com/users/SpecialM2580","html_url":"https://github.com/SpecialM2580","followers_url":"https://api.github.com/users/SpecialM2580/followers","following_url":"https://api.github.com/users/SpecialM2580/following{/other_user}","gists_url":"https://api.github.com/users/SpecialM2580/gists{/gist_id}","starred_url":"https://api.github.com/users/SpecialM2580/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpecialM2580/subscriptions","organizations_url":"https://api.github.com/users/SpecialM2580/orgs","repos_url":"https://api.github.com/users/SpecialM2580/repos","events_url":"https://api.github.com/users/SpecialM2580/events{/privacy}","received_events_url":"https://api.github.com/users/SpecialM2580/received_events","type":"User","site_admin":false},"created_at":"2016-12-03T13:43:51Z","updated_at":"2016-12-03T13:43:51Z","body":"I encountered the problem too...Have you solved it @sanjeevm0 ?"}}
{"actor":{"display_login":"SpecialM2580"}}