Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while installing matmul_cuda #6

Open
RachelHui12 opened this issue Dec 27, 2020 · 2 comments
Open

error while installing matmul_cuda #6

RachelHui12 opened this issue Dec 27, 2020 · 2 comments

Comments

@RachelHui12
Copy link

my system is windows.
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\Aimee\Anaconda3\envs\ignn2\lib\site-packages\torch\lib /LIBPATH:E:\CUDA\DEVELOPMENTS\lib/x64 /LIBPATH:C:\Users\Aimee\Anaconda3\envs\ignn2\libs /LIBPATH:C:\Users\Aimee\Anaconda3\envs\ignn2\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:E:\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" cudart.lib c10.lib c10_cuda.lib caffe2.lib torch.lib torch_python.lib caffe2_gpu.lib _C.lib /EXPORT:PyInit_matmul_cuda build\temp.win-amd64-3.7\Release\matmul.obj build\temp.win-amd64-3.7\Release\matmul1_kernel.obj build\temp.win-amd64-3.7\Release\matmul1_bwd_kernel.obj /OUT:build\lib.win-amd64-3.7\matmul_cuda.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\matmul_cuda.cp37-win_amd64.lib
matmul.obj : warning LNK4197: export 'PyInit_matmul_cuda' specified multiple times; using first specification
Creating library build\temp.win-amd64-3.7\Release\matmul_cuda.cp37-win_amd64.lib and object build\temp.win-amd64-3.7\Release\matmul_cuda.cp37-win_amd64.exp
matmul1_kernel.obj : error LNK2001: unresolved external symbol "public: long * __cdecl at::Tensor::data(void)const " (??$data@J@Tensor@at@@QEBAPEAJXZ)
matmul1_bwd_kernel.obj : error LNK2001: unresolved external symbol "public: long * __cdecl at::Tensor::data(void)const " (??$data@J@Tensor@at@@QEBAPEAJXZ)
build\lib.win-amd64-3.7\matmul_cuda.cp37-win_amd64.pyd : fatal error LNK1120: 1 unresolved externals
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe' failed with exit status 1120

@sczhou
Copy link
Owner

sczhou commented Dec 27, 2020

Hi,
Sorry, we didn't test our code on the Windows system.
Please try to change your compiler from Visual Studio to MinGW GCC. And check out your PyTorch version should be 1.1.0.

@RachelHui12
Copy link
Author

Hi,
Sorry, we didn't test our code on the Windows system.
Please try to change your compiler from Visual Studio to MinGW GCC. And check out your PyTorch version should be 1.1.0.

I've changed my compiler to MinGW GCC, and my pytorch version is also the same as yours, but it still doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants