mentian / object-posenet

MIT License
60 stars 11 forks source link

How to compile the gpu of knn #5

Open KAOeric opened 3 years ago

KAOeric commented 3 years ago

When i Compile the gpu version of knn, it get some error. error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\nvcc.exe' failed with exit status 2

mentian commented 3 years ago

The released knn is only tested with CUDA-9.0 so far. I will try to test with CUDA 10.0 later.

KAOeric commented 3 years ago

OK~ @mentian thanks!

KAOeric commented 3 years ago

@mentian 正在建立程式庫 build\temp.win-amd64-3.7\Release\PythonLib\object-posenet-master\lib\knn\src\knn_pytorch.cp37-win_amd64.lib 和物件 build\temp.win-amd64-3.7\Release\PythonLib\object-posenet-master\lib\knn\src\knn_pytorch.cp37-win_amd64.exp vision.obj : error LNK2001: 無法解析的外部符號 "public: long * __cdecl at::Tensor::data(void)const " (??$data@J@Tensor@at@@QEBAPEAJXZ) build\lib.win-amd64-3.7\knn_pytorch.cp37-win_amd64.pyd : fatal error LNK1120: 1 個無法解析的外部符號 error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit status 1120 Now I have got this error and i can't solve this problem, if you know please teach me.