-
Notifications
You must be signed in to change notification settings - Fork 2.5k
install apex error #720
Comments
Same issue here, seems like anaconda installed |
I think I partially solve it. When you install apex, do this: |
D:\VS2015\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Anaconda3\envs\test\lib\site-packages\torch\lib "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\lib/x64" /LIBPATH:C:\Anaconda3\envs\test\libs /LIBPATH:C:\Anaconda3\envs\test\PCbuild\amd64 /LIBPATH:D:\VS2015\VC\LIB\amd64 /LIBPATH:D:\VS2015\VC\ATLMFC\LIB\amd64 "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64" cudart.lib c10.lib caffe2.lib torch.lib torch_python.lib caffe2_gpu.lib _C.lib /EXPORT:PyInit_amp_C build\temp.win-amd64-3.7\Release\csrc/amp_C_frontend.obj build\temp.win-amd64-3.7\Release\csrc/multi_tensor_scale_kernel.obj build\temp.win-amd64-3.7\Release\csrc/multi_tensor_axpby_kernel.obj build\temp.win-amd64-3.7\Release\csrc/multi_tensor_l2norm_kernel.obj /OUT:build\lib.win-amd64-3.7\amp_C.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\csrc\amp_C.cp37-win_amd64.lib |
Great, it solves my question |
I found the same problems, I use vs2017,cuda 10. cudnn7.4.1 python3.6 pytorch1.0.1 |
Do you not lose CUDA support with this installation procedure? |
Hi, I remember everything works fine with CUDA support. |
pytorch1.1.0 |
When you install apex, do this:
python setup.py install or python setup.py install --cpp_ext instead of python setup.py install --cuda_ext --cpp_ext
…------------------ 原始邮件 ------------------
发件人: "brantl"<[email protected]>;
发送时间: 2019年10月18日(星期五) 中午1:36
收件人: "facebookresearch/maskrcnn-benchmark"<[email protected]>;
抄送: "。"<[email protected]>;"Comment"<[email protected]>;
主题: Re: [facebookresearch/maskrcnn-benchmark] install apex error (#720)
D:\ VS2015 \ VC \ BIN \ x86_amd64 \ link.exe / nologo / INCREMENTAL:NO / LTCG / DLL / MANIFEST:EMBED,ID = 2 / MANIFESTUAC:NO / LIBPATH:C:\ Anaconda3 \ envs \ test \ lib \ site-packages \ torch \ lib“ / LIBPATH:C:\ Program Files \ NVIDIA GPU Computing Toolkit \ CUDA \ v10.1 \ lib / x64” / LIBPATH:C:\ Anaconda3 \ envs \ test \ libs / LIBPATH:C: \ Anaconda3 \ envs \ test \ PCbuild \ amd64 / LIBPATH:D:\ VS2015 \ VC \ LIB \ amd64 / LIBPATH:D:\ VS2015 \ VC \ ATLMFC \ LIB \ amd64“ / LIBPATH:C:\ Program Files(x86) \ Windows Kits \ 10 \ lib \ 10.0.17763.0 \ ucrt \ x64“” / LIBPATH:C:\ Program Files(x86)\ Windows Kits \ NETFXSDK \ 4.6.1 \ lib \ um \ x64“” / LIBPATH:C: \ Program Files(x86)\ Windows Kits \ 10 \ lib \ 10.0.17763.0 \ um \ x64“ cudart.lib c10.lib caffe2.lib torch.lib torch_python.lib caffe2_gpu.lib _C.lib / EXPORT:PyInit_amp_C build \ temp .win-amd64-3.7 \ Release \ csrc / amp_C_frontend.obj build \ temp.win-amd64-3。7 \ Release \ csrc / multi_tensor_scale_kernel.obj build \ temp.win-amd64-3.7 \ Release \ csrc / multi_tensor_axpby_kernel.obj build \ temp.win-amd64-3.7 \ Release \ csrc / multi_tensor_l2norm_kernel.obj / OUT:build \ lib。 win-amd64-3.7 \ amp_C.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\csrc\amp_C.cp37-win_amd64.lib
amp_C_frontend.obj:警告LNK4197:多次指定导入“ PyInit_amp_C”;使用第一个规范
正在创建库build \ temp.win-amd64-3.7 \ Release \ csrc \ amp_C.cp37-win_amd64.lib和对象build \ temp。 win-amd64-3.7 \ Release \ csrc \ amp_C.cp37-win_amd64.exp
multi_tensor_scale_kernel.obj:错误LNK2001:无法解析的外部符号“ __declspec(dllimport)public:struct CUstream_st * _cdecl c10 :: cuda :: CUDAStream :: stream (void)const“( imp?stream @ CUDAStream @ cuda @ c10 @ c10 @@ QEBAPEAUCUstream_st @ @xz)
multi_tensor_axpby_kernel.obj:错误LNK2001:无法解析的外部符号” __declspec(dllimport)public:struct CUstream_st * _cdecl c10 :: cuda :: CUDAStream :: stream(void)const“( imp?stream @ CUDAStream @ cuda @ c10 @@ QEBAPEAUCUstream_st @ @xz)
multi_tensor_l2norm_kernel.obj:错误LNK2001:无法解析的外部符号“ __declspec(dllimport)public:struct CUstream_st * _cdecl c10 :: cuda :: CUDAStream :: stream(void)const”( imp?stream @ CUDAStream @ cuda @ c10 @ @ QEBAPEAUCUstream_st @ @xz)
multi_tensor_scale_kernel.obj:错误LNK2001:无法解析的外部符号“ __declspec(dllimport)class c10 :: cuda :: CUDAStream _cdecl c10 :: cuda :: getCurrentCUDAStream(short)”( imp?getCurrentCUDAStream @ cuda @ c10 @ @ya?AVCUDAStream @ 12 @ F @ Z)
multi_tensor_axpby_kernel.obj:错误LNK2001:无法解析的外部符号“ __declspec(dllimport)类c10 :: cuda :: CUDAStream _cdecl c10 :: cuda :: getCurrentCUDAStream(short) ”( imp?getCurrentCUDAStream @ cuda @ c10 @ @ya?AVCUDAStream @ 12 @ F @ Z)
multi_tensor_l2norm_kernel.obj:错误LNK2001:无法解析的外部符号“ __declspec(dllimport)类c10 :: cuda :: CUDAStream _cdecl c10 :: cuda :: getCurrentCUDAStream(short)”( imp?getCurrentCUDAStream @ cuda @ c10 @ @ya吗? AVCUDAStream @ 12 @ F @ Z)
build \ lib.win-amd64-3.7 \ amp_C.cp37-win_amd64.pyd:致命错误LNK1120:2个无法解析的外部命令
错误:命令'D:\ VS2015 \ VC \ BIN \ x86_amd64 \ link.exe'失败,退出状态为1120
我发现了同样的问题,我使用vs2017,cuda 10.cudnn7.4.1 python3.6 pytorch1.0.1
D:\VS2015\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Anaconda3\envs\test\lib\site-packages\torch\lib "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\lib/x64" /LIBPATH:C:\Anaconda3\envs\test\libs /LIBPATH:C:\Anaconda3\envs\test\PCbuild\amd64 /LIBPATH:D:\VS2015\VC\LIB\amd64 /LIBPATH:D:\VS2015\VC\ATLMFC\LIB\amd64 "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64" cudart.lib c10.lib caffe2.lib torch.lib torch_python.lib caffe2_gpu.lib _C.lib /EXPORT:PyInit_amp_C build\temp.win-amd64-3.7\Release\csrc/amp_C_frontend.obj build\temp.win-amd64-3.7\Release\csrc/multi_tensor_scale_kernel.obj build\temp.win-amd64-3.7\Release\csrc/multi_tensor_axpby_kernel.obj build\temp.win-amd64-3.7\Release\csrc/multi_tensor_l2norm_kernel.obj /OUT:build\lib.win-amd64-3.7\amp_C.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\csrc\amp_C.cp37-win_amd64.lib
amp_C_frontend.obj : warning LNK4197: 多次指定导出“PyInit_amp_C”;使用第一个规范
正在创建库 build\temp.win-amd64-3.7\Release\csrc\amp_C.cp37-win_amd64.lib 和对象 build\temp.win-amd64-3.7\Release\csrc\amp_C.cp37-win_amd64.exp
multi_tensor_scale_kernel.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: struct CUstream_st * __cdecl c10::cuda::CUDAStream::stream(void)const " (_imp?stream@CUDAStream@cuda@c10@@QEBAPEAUCUstream_st@@xz)
multi_tensor_axpby_kernel.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: struct CUstream_st * __cdecl c10::cuda::CUDAStream::stream(void)const " (_imp?stream@CUDAStream@cuda@c10@@QEBAPEAUCUstream_st@@xz)
multi_tensor_l2norm_kernel.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: struct CUstream_st * __cdecl c10::cuda::CUDAStream::stream(void)const " (_imp?stream@CUDAStream@cuda@c10@@QEBAPEAUCUstream_st@@xz)
multi_tensor_scale_kernel.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) class c10::cuda::CUDAStream __cdecl c10::cuda::getCurrentCUDAStream(short)" (_imp?getCurrentCUDAStream@cuda@c10@@ya?AVCUDAStream@12@F@Z)
multi_tensor_axpby_kernel.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) class c10::cuda::CUDAStream __cdecl c10::cuda::getCurrentCUDAStream(short)" (_imp?getCurrentCUDAStream@cuda@c10@@ya?AVCUDAStream@12@F@Z)
multi_tensor_l2norm_kernel.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) class c10::cuda::CUDAStream __cdecl c10::cuda::getCurrentCUDAStream(short)" (_imp?getCurrentCUDAStream@cuda@c10@@ya?AVCUDAStream@12@F@Z)
build\lib.win-amd64-3.7\amp_C.cp37-win_amd64.pyd : fatal error LNK1120: 2 个无法解析的外部命令
error: command 'D:\VS2015\VC\BIN\x86_amd64\link.exe' failed with exit status 1120
I found the same problems, I use vs2017,cuda 10. cudnn7.4.1 python3.6 pytorch1.0.1
pytorch1.1.0
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I had exactly same problem but finally after hours of exploration I found the solution Run my shell sciript to install CUDA 10.0 without any issues. It also purges all other versions and ensures clean installation. Step 2:
|
@shanggdlk |
This solved it for me! I'm not even using this mask-rcnn repo... google just brought me here.
This lengthy pip install command failed. However, simply using |
When I install apex, and type in python setup.py install --cuda_ext --cpp_ext. There is an error as follows:
File "setup.py", line 60, in
raise RuntimeError("--cuda_ext was requested, but nvcc was not found.
I indeed follow the install instruction and install the cudatoolkit in my environment, as shown below:
Name Version Build Channel
backcall 0.1.0 py37_0
blas 1.0 mkl
ca-certificates 2019.1.23 0
certifi 2019.3.9 py37_0
cffi 1.12.3 py37h2e261b9_0
cudatoolkit 10.0.130 0
Can you point out how to fix that? Thanks.
The text was updated successfully, but these errors were encountered: