You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
torch extensions such as the ops in the open3d.ml.torch.ops namespace have undefined behavior when using torch 1.7 or later with CUDA 11. This may result in segmentation faults or wrong results.
To Reproduce
The attached zip contains a minimal CMake project for reproducing the problem. Cuda11Debug.zip
Expected behavior
The code is an example taken from the docs of the cub library. Due to the bug cub functions that cache return values may return unexpected values which cause the temporary memory allocation in the example to fail.
If the problem is present the test script will print temp_storage_bytes should not be 0!.
Environment (please complete the following information):
Describe the bug
torch extensions such as the ops in the open3d.ml.torch.ops namespace have undefined behavior when using torch 1.7 or later with CUDA 11. This may result in segmentation faults or wrong results.
To Reproduce
The attached zip contains a minimal CMake project for reproducing the problem.
Cuda11Debug.zip
Expected behavior
The code is an example taken from the docs of the cub library. Due to the bug cub functions that cache return values may return unexpected values which cause the temporary memory allocation in the example to fail.
If the problem is present the test script will print
temp_storage_bytes should not be 0!
.Environment (please complete the following information):
Pytorch 1.7.1
CUDA 11.0
Additional context
The problem is related to pytorch/pytorch#52663
Workaround
The problem can be avoided by compiling torch from source with the flags
-Xcompiler -fno-gnu-unique
as mentioned in pytorch/pytorch#52663Wheels with this compile flag are here https://github.com/intel-isl/open3d_downloads/releases/tag/torch1.7.1
The text was updated successfully, but these errors were encountered: