Open BhavinPrajapti opened 1 year ago
C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.7/include\thrust/system/cuda/config.h(79): fatal error C1189: #error: The version of CUB in your include path is not compatible with this release of Thrust. CUB is now included in the CUDA Toolkit, so you no longer need to use your own checkout of CUB. Define THRUST_IGNORE_CUB_VERSION_CHECK to ignore this. error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc.exe' failed with exit code 2
For corecrt.h: I think you need to install more microsoft things: can you try installing windows SDKs etc in the visual studio installer?
For the second, please make sure you don't have the CUB_HOME variable set.
thanks for the reply. first error is solved by windows SDKs. Earlier I defined CUDA_HOME variable in enviroment variable and assigned path of CUB.1.17.2. And I also replace CUDA CUB folder with CUB.1.17.2 folder in program files. Now, I removed CUB_HOME variable from environment. But still facing same error.
error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc.exe' failed with exit code 2
Don't replace the CUDA CUB folder. With the new CUDA, there's no reason to think about CUB when installing pytorch3d, everything just works. Maybe easiest for you to remove CUDA and reinstall it?
okay I will reinstall it. here I mentioned all steps please check and tell if anything is missing from myside.
can you check and confirm these above steps are okay or should I change something inbetween.
I /think/ that should work.
in setup.py in line 77. I also find this nvcc_args.append("-std=c++14"). should I need to remove "-std=c++1" from this line too?
I think it would be a good idea, but I am not sure.
as per your reply I reinstall cuda11.7 with all steps I followed which I listed above. my compiler does not stop command prompt look like below:
"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc" -c "D:\Project WS\C\pytorch3d-0.7.2\pytorch3d\csrc\gather_scatter\gather_scatter.cu" -o "build\temp.win-amd64-cpython-310\Release\Project WS\C\pytorch3d-0.7.2\pytorch3d\csrc\gather_scatter\gather_scatter.obj" "-ID:\Project WS\C\pytorch3d-0.7.2\pytorch3d\csrc" "-ID:\Project WS\C\anaconda3\envs\6Denv\include" "-ID:\Project WS\C\anaconda3\envs\6Denv\lib\site-packages\torch\include" "-ID:\Project WS\C\anaconda3\envs\6Denv\lib\site-packages\torch\include\torch\csrc\api\include" "-ID:\Project WS\C\anaconda3\envs\6Denv\lib\site-packages\torch\include\TH" "-ID:\Project WS\C\anaconda3\envs\6Denv\lib\site-packages\torch\include\THC" "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" "-ID:\Project WS\C\anaconda3\envs\6Denv\include" "-ID:\Project WS\C\anaconda3\envs\6Denv\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -DCUDA_HAS_FP16=1 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 --use-local-env
gather_scatter.cu
D:/Project WS/C/anaconda3/envs/6Denv/lib/site-packages/torch/include\c10/macros/Macros.h(138): warning C4067: unexpected tokens following preprocessor directive - expected a newline
D:/Project WS/C/anaconda3/envs/6Denv/lib/site-packages/torch/include\c10/util/irange.h(54): warning #186-D: pointless comparison of unsigned integer with zero
detected during:
instantiation of "nv_bool c10::detail::integer_iterator<I, one_sided,
D:/Project WS/C/anaconda3/envs/6Denv/lib/site-packages/torch/include\c10/util/irange.h(54): warning #186-D: pointless comparison of unsigned integer with zero
detected during:
instantiation of "__nv_bool c10::detail::integer_iterator<I, one_sided,
D:/Project WS/C/anaconda3/envs/6Denv/lib/site-packages/torch/include\c10/macros/Macros.h(138): warning C4067: unexpected tokens following preprocessor directive - expected a newline
D:/Project WS/C/anaconda3/envs/6Denv/lib/site-packages/torch/include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t
I am installing pytorch3d on cuda 11.7 pytorch 2.0
having below error: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.36.32532/include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc.exe' failed with exit code 2