Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

c:\incubator-mxnet\src\operator\tensor\../../common/cuda/rtc/vectorization-inl.h(448): error C2398: FREOM “1”: TO “const int” “unsigned int”requires a narrowing conversion [C:\incubator-mxnet\build\mxnet_75.vcxproj] #19496

Closed
HotFrom opened this issue Nov 9, 2020 · 2 comments

Comments

@HotFrom
Copy link

HotFrom commented Nov 9, 2020

 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\CUD
       A 10.0.targets(712,9): error MSB3721: 命令“"C:\cuda\bin\nvcc.exe" -gencode=arch=compute_75,code=\"sm_75,compute_75
       \" -gencode=arch=compute_75,code=\"compute_75,compute_75\" --use-local-env -ccbin "C:\Program Files (x86)\Micros
       oft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64" -x cu  -I"C:\incubator-mxnet\include
       " -I"C:\incubator-mxnet\src" -I"C:\incubator-mxnet\3rdparty\tvm\nnvm\include" -I"C:\incubator-mxnet\3rdparty\tvm
       \include" -I"C:\incubator-mxnet\3rdparty\dmlc-core\include" -I"C:\incubator-mxnet\3rdparty\dlpack\include" -I"C:
       \incubator-mxnet\3rdparty\nvidia_cub" -I"C:\incubator-mxnet\3rdparty\mshadow" -I"C:\incubator-mxnet\build\3rdpar
       ty\dmlc-core\include" -IC:\tools\OpenBLAS\include -IC:\cuda\include -IC:\cuda\include     --keep-dir x64\Release
        -maxrregcount=0  --machine 64 --compile -cudart static --fatbin-options --compress-all -std=c++14 -Xcompiler="/
       EHsc -Ob2 -Gy /bigobj"    -D_WINDOWS -DNDEBUG -DDMLC_MODERN_THREAD_LOCAL=0 -DDMLC_LOG_STACK_TRACE_SIZE=0 -DDMLC_
       USE_CXX11 -DDMLC_STRICT_CXX11 -DDMLC_USE_CXX14 -DMSHADOW_IN_CXX11 -DWIN32_LEAN_AND_MEAN -D_SCL_SECURE_NO_WARNING
       S -D_CRT_SECURE_NO_WARNINGS -DMXNET_EXPORTS -DNNVM_EXPORTS -DNOMINMAX -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0
       -DMXNET_USE_BLAS_OPEN=1 -DMXNET_USE_LIBJPEG_TURBO=0 -DMXNET_USE_OPENCV=0 -DMXNET_USE_OPENMP=1 -DMXNET_USE_LAPACK
       =1 -DUSE_CUDNN -DMXNET_USE_CUDA=1 -DMXNET_USE_SIGNAL_HANDLER=1 -DMSHADOW_USE_CUDA=1 -DMSHADOW_FORCE_STREAM -DMSH
       ADOW_USE_SSE=0 -DMSHADOW_USE_CUDNN -DMSHADOW_USE_F16C=0 -DMSHADOW_INT64_TENSOR_SIZE=0 -D__USE_XOPEN2K8 -DDMLC_CO
       RE_USE_CMAKE -DDMLC_USE_CXX11=1 -D"CMAKE_INTDIR=\"Release\"" -Dmxnet_75_EXPORTS -DWIN32 -D_WINDOWS -DNDEBUG -DDM
       LC_MODERN_THREAD_LOCAL=0 -DDMLC_LOG_STACK_TRACE_SIZE=0 -DDMLC_USE_CXX11 -DDMLC_STRICT_CXX11 -DDMLC_USE_CXX14 -DM
       SHADOW_IN_CXX11 -DWIN32_LEAN_AND_MEAN -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -DMXNET_EXPORTS -DNNVM
       _EXPORTS -DNOMINMAX -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMXNET_USE_BLAS_OPEN=1 -DMXNET_USE_LIBJPEG_TURBO=
       0 -DMXNET_USE_OPENCV=0 -DMXNET_USE_OPENMP=1 -DMXNET_USE_LAPACK=1 -DUSE_CUDNN -DMXNET_USE_CUDA=1 -DMXNET_USE_SIGN
       AL_HANDLER=1 -DMSHADOW_USE_CUDA=1 -DMSHADOW_FORCE_STREAM -DMSHADOW_USE_SSE=0 -DMSHADOW_USE_CUDNN -DMSHADOW_USE_F
       16C=0 -DMSHADOW_INT64_TENSOR_SIZE=0 -D__USE_XOPEN2K8 -DDMLC_CORE_USE_CMAKE -DDMLC_USE_CXX11=1 -D"CMAKE_INTDIR=\"
       Release\"" -Dmxnet_75_EXPORTS -D_WINDLL -D_MBCS -Xcompiler "/EHsc /W3 /nologo /O2 /Fdmxnet_75.dir\Release\vc141.
       pdb /FS /Zi  /MD /GR" -o mxnet_75.dir\Release\/src/operator/tensor/elemwise_sum.cu.obj "C:\incubator-mxnet\src\o
       perator\tensor\elemwise_sum.cu"”已退出,返回代码为 2。 [C:\incubator-mxnet\build\mxnet_75.vcxproj]
@github-actions
Copy link

github-actions bot commented Nov 9, 2020

Welcome to Apache MXNet (incubating)! We are on a mission to democratize AI, and we are glad that you are contributing to it by opening this issue.
Please make sure to include all the relevant context, and one of the @apache/mxnet-committers will be here shortly.
If you are interested in contributing to our project, let us know! Also, be sure to check out our guide on contributing to MXNet and our development guides wiki.

@ptrendx
Copy link
Member

ptrendx commented Nov 17, 2020

I believe this should be fixed by #19500.

@szha szha closed this as completed Nov 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants