Comments (5)
Hi @srxdev0619, I believe I fixed this issue in my fork. You can clone my folk and re-compile it.
https://github.com/yuanluxu/pytorch3d
from pytorch3d.
Yes! The fix works perfectly, thank you so much!
from pytorch3d.
Hi,
I get the following errors while trying to install Pytorch3d
c:/users/shahrukh/anaconda3/lib/site-packages/torch/include\c10/util/BFloat16.h(48): warning: calling a __host__ function from a __host__ __device__ function is not allowed
C:\Users\ShahRukh\Research\pytorch3d\pytorch3d\csrc\rasterize_meshes\geometry_utils.cuh(231): error: identifier "kEpsilon" is undefined in device code
C:/Users/ShahRukh/Research/pytorch3d/pytorch3d/csrc/rasterize_meshes/rasterize_meshes.cu(391): error: identifier "kEpsilon" is undefined in device code
C:/Users/ShahRukh/Research/pytorch3d/pytorch3d/csrc/rasterize_meshes/rasterize_meshes.cu(427): error: identifier "kEpsilon" is undefined in device code
C:/Users/ShahRukh/Research/pytorch3d/pytorch3d/csrc/rasterize_meshes/rasterize_meshes.cu(427): error: calling a __host__ function("pow<float, double, void> ") from a __global__ function("RasterizeMeshesBackwardCudaKernel") is not allowed
C:/Users/ShahRukh/Research/pytorch3d/pytorch3d/csrc/rasterize_meshes/rasterize_meshes.cu(427): error: identifier "pow<float, double, void> " is undefined in device code
C:/Users/ShahRukh/Research/pytorch3d/pytorch3d/csrc/rasterize_meshes/rasterize_meshes.cu(133): error: identifier "kEpsilon" is undefined in device code
C:/Users/ShahRukh/Research/pytorch3d/pytorch3d/csrc/rasterize_meshes/rasterize_meshes.cu(133): error: identifier "kEpsilon" is undefined in device code
C:/Users/ShahRukh/Research/pytorch3d/pytorch3d/csrc/rasterize_meshes/rasterize_meshes.cu(141): error: identifier "kEpsilon" is undefined in device code
8 errors detected in the compilation of "C:/Users/ShahRukh/AppData/Local/Temp/tmpxft_000026f0_00000000-10_rasterize_meshes.cpp1.ii".
rasterize_meshes.cu
error: command 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v10.1\\bin\\nvcc.exe' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\shahrukh\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ShahRukh\\Research\\pytorch3d\\setup.py'"'"'; __file__='"'"'C:\\Users\\ShahRukh\\Research\\pytorch3d\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.
The installation commands I ran were the following, in the order of execution
conda install -c pytorch pytorch torchvision cudatoolkit=10.1
conda install -c conda-forge -c fvcore fvcore
pip install scikit-image matplotlib imageio
git clone https://github.com/facebookresearch/pytorch3d.git
cd pytorch3d
pip install -e .
I'm using Visual Studio 2019 Community. It'd be great if these errors could be fixed. Thank you!
from pytorch3d.
Hi! I followed your instructions, but still failed to compile mmcv-full
.
When I set types as constexpr
in Lib\site-packages\torch\include\torch\csrc\jit\api
, it shows:
[28/34] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\nvcc --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcomp
iler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /EHsc -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcudafe --diag_sup
press=field_without_dll_interface -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -DMMCV_WI
TH_CUDA -IC:\Users\ADMINI~1\AppData\Local\Temp\pip-install-wzd40w8w\mmcv-full\mmcv\ops\csrc -Id:\software\anaconda3\envs\ipercore\lib\site-packages\torch\include -Id:\sof
tware\anaconda3\envs\ipercore\lib\site-packages\torch\include\torch\csrc\api\include -Id:\software\anaconda3\envs\ipercore\lib\site-packages\torch\include\TH -Id:\softwar
e\anaconda3\envs\ipercore\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" -Id:\software\anaconda3\envs\ipercore\i
nclude -Id:\software\anaconda3\envs\ipercore\include "-ID:\Software\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-ID:\Software\Micros
oft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-ID:\Windows Kits\10\include\10.0.190
41.0\ucrt" "-ID:\Windows Kits\10\include\10.0.19041.0\shared" "-ID:\Windows Kits\10\include\10.0.19041.0\um" "-ID:\Windows Kits\10\include\10.0.19041.0\winrt" "-ID:\Windo
ws Kits\10\include\10.0.19041.0\cppwinrt" -c C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-wzd40w8w\mmcv-full\mmcv\ops\csrc\pytorch\psamask_cuda.cu -o C:\Users\ADMINI~
1\AppData\Local\Temp\pip-install-wzd40w8w\mmcv-full\build\temp.win-amd64-3.6\Release\mmcv/ops/csrc/pytorch\psamask_cuda.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_
CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=
compute_75,code=sm_75
FAILED: C:/Users/ADMINI~1/AppData/Local/Temp/pip-install-wzd40w8w/mmcv-full/build/temp.win-amd64-3.6/Release/mmcv/ops/csrc/pytorch/psamask_cuda.obj
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\nvcc --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd
4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /EHsc -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcudafe --diag_suppress=fi
eld_without_dll_interface -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -DMMCV_WITH_CUDA
-IC:\Users\ADMINI~1\AppData\Local\Temp\pip-install-wzd40w8w\mmcv-full\mmcv\ops\csrc -Id:\software\anaconda3\envs\ipercore\lib\site-packages\torch\include -Id:\software\an
aconda3\envs\ipercore\lib\site-packages\torch\include\torch\csrc\api\include -Id:\software\anaconda3\envs\ipercore\lib\site-packages\torch\include\TH -Id:\software\anacon
da3\envs\ipercore\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" -Id:\software\anaconda3\envs\ipercore\include -
Id:\software\anaconda3\envs\ipercore\include "-ID:\Software\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-ID:\Software\Microsoft Visu
al Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-ID:\Windows Kits\10\include\10.0.19041.0\ucr
t" "-ID:\Windows Kits\10\include\10.0.19041.0\shared" "-ID:\Windows Kits\10\include\10.0.19041.0\um" "-ID:\Windows Kits\10\include\10.0.19041.0\winrt" "-ID:\Windows Kits\
10\include\10.0.19041.0\cppwinrt" -c C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-wzd40w8w\mmcv-full\mmcv\ops\csrc\pytorch\psamask_cuda.cu -o C:\Users\ADMINI~1\AppDat
a\Local\Temp\pip-install-wzd40w8w\mmcv-full\build\temp.win-amd64-3.6\Release\mmcv/ops/csrc/pytorch\psamask_cuda.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSI
ONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_
75,code=sm_75
d:/software/anaconda3/envs/ipercore/lib/site-packages/torch/include\c10/util/ThreadLocalDebugInfo.h(12): warning: modifier is ignored on an enum specifier
d:/software/anaconda3/envs/ipercore/lib/site-packages/torch/include\ATen/core/boxing/impl/boxing.h(100): warning: integer conversion resulted in a change of sign
d:/software/anaconda3/envs/ipercore/lib/site-packages/torch/include\ATen/record_function.h(13): warning: modifier is ignored on an enum specifier
d:/software/anaconda3/envs/ipercore/lib/site-packages/torch/include\ATen/core/op_registration/op_whitelist.h(39): warning: integer conversion resulted in a change of si
gn
d:/software/anaconda3/envs/ipercore/lib/site-packages/torch/include\torch/csrc/jit/ir/ir.h(1347): error: member "torch::jit::ProfileOptionalOp::Kind" may not be initial
ized
d:/software/anaconda3/envs/ipercore/lib/site-packages/torch/include\torch/csrc/jit/api/module.h(485): error: member "torch::jit::detail::ModulePolicy::all_slots" may no
t be initialized
d:/software/anaconda3/envs/ipercore/lib/site-packages/torch/include\torch/csrc/jit/api/module.h(498): error: member "torch::jit::detail::ParameterPolicy::all_slots" may
not be initialized
d:/software/anaconda3/envs/ipercore/lib/site-packages/torch/include\torch/csrc/jit/api/module.h(512): error: member "torch::jit::detail::BufferPolicy::all_slots" may no
t be initialized
d:/software/anaconda3/envs/ipercore/lib/site-packages/torch/include\torch/csrc/jit/api/module.h(525): error: member "torch::jit::detail::AttributePolicy::all_slots" may
not be initialized
5 errors detected in the compilation of "C:/Users/ADMINI~1/AppData/Local/Temp/tmpxft_00004eac_00000000-7_psamask_cuda.cpp1.ii".
psamask_cuda.cu
and when I set them as const
, it shows:
[31/34] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\nvcc --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcomp
iler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /EHsc -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcudafe --diag_sup
press=field_without_dll_interface -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -DMMCV_WI
TH_CUDA -IC:\Users\ADMINI~1\AppData\Local\Temp\pip-install-5w_ltf2i\mmcv-full\mmcv\ops\csrc -Id:\software\anaconda3\envs\ipercore\lib\site-packages\torch\include -Id:\sof
tware\anaconda3\envs\ipercore\lib\site-packages\torch\include\torch\csrc\api\include -Id:\software\anaconda3\envs\ipercore\lib\site-packages\torch\include\TH -Id:\softwar
e\anaconda3\envs\ipercore\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" -Id:\software\anaconda3\envs\ipercore\i
nclude -Id:\software\anaconda3\envs\ipercore\include "-ID:\Software\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-ID:\Software\Micros
oft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-ID:\Windows Kits\10\include\10.0.190
41.0\ucrt" "-ID:\Windows Kits\10\include\10.0.19041.0\shared" "-ID:\Windows Kits\10\include\10.0.19041.0\um" "-ID:\Windows Kits\10\include\10.0.19041.0\winrt" "-ID:\Windo
ws Kits\10\include\10.0.19041.0\cppwinrt" -c C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-5w_ltf2i\mmcv-full\mmcv\ops\csrc\pytorch\psamask_cuda.cu -o C:\Users\ADMINI~
1\AppData\Local\Temp\pip-install-5w_ltf2i\mmcv-full\build\temp.win-amd64-3.6\Release\mmcv/ops/csrc/pytorch\psamask_cuda.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_
CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=
compute_75,code=sm_75
FAILED: C:/Users/ADMINI~1/AppData/Local/Temp/pip-install-5w_ltf2i/mmcv-full/build/temp.win-amd64-3.6/Release/mmcv/ops/csrc/pytorch/psamask_cuda.obj
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\nvcc --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd
4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /EHsc -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcudafe --diag_suppress=fi
eld_without_dll_interface -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -DMMCV_WITH_CUDA
-IC:\Users\ADMINI~1\AppData\Local\Temp\pip-install-5w_ltf2i\mmcv-full\mmcv\ops\csrc -Id:\software\anaconda3\envs\ipercore\lib\site-packages\torch\include -Id:\software\an
aconda3\envs\ipercore\lib\site-packages\torch\include\torch\csrc\api\include -Id:\software\anaconda3\envs\ipercore\lib\site-packages\torch\include\TH -Id:\software\anacon
da3\envs\ipercore\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" -Id:\software\anaconda3\envs\ipercore\include -
Id:\software\anaconda3\envs\ipercore\include "-ID:\Software\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-ID:\Software\Microsoft Visu
al Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-ID:\Windows Kits\10\include\10.0.19041.0\ucr
t" "-ID:\Windows Kits\10\include\10.0.19041.0\shared" "-ID:\Windows Kits\10\include\10.0.19041.0\um" "-ID:\Windows Kits\10\include\10.0.19041.0\winrt" "-ID:\Windows Kits\
10\include\10.0.19041.0\cppwinrt" -c C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-5w_ltf2i\mmcv-full\mmcv\ops\csrc\pytorch\psamask_cuda.cu -o C:\Users\ADMINI~1\AppDat
a\Local\Temp\pip-install-5w_ltf2i\mmcv-full\build\temp.win-amd64-3.6\Release\mmcv/ops/csrc/pytorch\psamask_cuda.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSI
ONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_
75,code=sm_75
d:/software/anaconda3/envs/ipercore/lib/site-packages/torch/include\c10/util/ThreadLocalDebugInfo.h(12): warning: modifier is ignored on an enum specifier
d:/software/anaconda3/envs/ipercore/lib/site-packages/torch/include\ATen/core/boxing/impl/boxing.h(100): warning: integer conversion resulted in a change of sign
d:/software/anaconda3/envs/ipercore/lib/site-packages/torch/include\ATen/record_function.h(13): warning: modifier is ignored on an enum specifier
d:/software/anaconda3/envs/ipercore/lib/site-packages/torch/include\ATen/core/op_registration/op_whitelist.h(39): warning: integer conversion resulted in a change of si
gn
d:/software/anaconda3/envs/ipercore/lib/site-packages/torch/include\torch/csrc/jit/ir/ir.h(1347): error: member "torch::jit::ProfileOptionalOp::Kind" may not be initial
ized
So, I think that we may replace constexpr *
in torch/include\torch/csrc/jit/ir/ir.h
to const *
as well. However, when I did this, it shows:
d:\software\anaconda3\envs\ipercore\lib\site-packages\torch\include\torch/csrc/jit/ir/ir.h(1347): error C2864: torch::jit::ProfileOptionalOp::Kind: Static data members with in-class initialization expressions must have an immutable constant integral type, or must be designated as "inline"
d:\software\anaconda3\envs\ipercore\lib\site-packages\torch\include\torch/csrc/jit/ir/ir.h(1347): note: The type is “const c10::Symbol”
Could you help me?
BTW, I use Windows 10 1909, with CUDA 10.1. I use Visual Studio Community 2019 with MSVC v142 as compilers and libraries. My python version is 3.6.6 and my pytorch version is 1.7.1.
from pytorch3d.
I think this answer has solved my problem: Just comment out the line.
from pytorch3d.
Related Issues (20)
- Is there a way to use my own images in "Fit a mesh via rendering"? HOT 1
- Could pulsar renderer return "weight" of spheres?
- Add Unity camera conversion HOT 1
- Installation error in Mac M3 HOT 4
- unproject image to pointcloud in pytorch3d HOT 9
- How could I ensure object is centered in rendered images (while changing viewpoints)? HOT 1
- Hi guys!Could anybody help me with the warning"integer conversion resulted in a change of sign"? HOT 1
- Add an example of warping image HOT 3
- debug visualization HOT 2
- Mesh gets cut while rendering HOT 1
- Install error for Windows HOT 4
- how to use nerf in projects/nerf? HOT 1
- Camera position optimisation 'diverging' issue. HOT 4
- Can't install pytorch3d on Google Colab: installation raises several errors after running condacolab before HOT 3
- Using pytorch3d to generate depth map of point cloud with shape (N, 3) HOT 2
- ERROR PYTORCH3D ON WIN10 HOT 8
- How to do ray casting on meshes / point clouds / voxels? HOT 2
- installing issues HOT 1
- ImportError: /home/jun/miniconda3/envs/makeit3d/lib/python3.8/site-packages/pytorch3d/_C.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZN3c104cuda20CUDACachingAllocator9allocatorE HOT 1
- Ray tracing and roadmap to the future HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch3d.