-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Description
Checklist
- I have searched for similar issues.
- For Python issues, I have tested with the latest development wheel.
- I have checked the release documentation and the latest documentation (for
master
branch).
Describe the issue
With the following configuration:
- Ubuntu "18.04.6 LTS (Bionic Beaver)"
- gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
- nvcc version: Cuda compilation tools, release 11.6, V11.6.55
- cmake version 3.22.2
I got a runtime error, running the DenseSlam.cpp when I set "--device CUDA:0"
but everything works fine when I use "--device CPU:0"
The error is the following
[Open3D INFO] Using device: CUDA:0 terminate called after throwing an instance of 'std::runtime_error' what(): [Open3D Error] (void open3d::core::__OPEN3D_CUDA_CHECK(cudaError_t, const char*, int)) /home/ubuntu/Work/Projects/handheld-scanning-prototype/Open3DBox/build/open3d/src/external_open3d/cpp/open3d/core/CUDAUtils.cpp:301: /home/ubuntu/Work/Projects/handheld-scanning-prototype/Open3DBox/build/open3d/src/external_open3d/cpp/open3d/core/MemoryManagerCUDA.cpp:43 CUDA runtime error: operation not supported
I do not understand what is the issue, since testing my cuda install I've run the deviceQuery
cuda application which outputs me the following
bin/x86_64/linux/release/deviceQuery Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
Detected 1 CUDA Capable device(s)
Device 0: "Quadro M1000M"
CUDA Driver Version / Runtime Version 11.6 / 11.6
....
deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 11.6, CUDA Runtime Version = 11.6, NumDevs = 1 Result = PASS
Could you please provide any support to solve my issue?
Also joining my cmake file to build open3D
# Option 1: Use ExternalProject_Add, as shown in this CMake example.
# Option 2: Install Open3D first and use find_package, see
# http://www.open3d.org/docs/release/cpp_project.html for details.
include(ExternalProject)
ExternalProject_Add(
external_open3d
PREFIX open3d
GIT_REPOSITORY https://github.com/intel-isl/Open3D.git
GIT_TAG v0.14.1
GIT_SHALLOW ON
UPDATE_COMMAND ""
# Check out https://github.com/intel-isl/Open3D/blob/master/CMakeLists.txt
# For the full list of available options.
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
-DGLIBCXX_USE_CXX11_ABI=${GLIBCXX_USE_CXX11_ABI}
-DSTATIC_WINDOWS_RUNTIME=${STATIC_WINDOWS_RUNTIME}
-DBUILD_SHARED_LIBS=ON
-DBUILD_PYTHON_MODULE=OFF
-DBUILD_EXAMPLES=OFF
-DBUILD_WEBRTC=OFF
-DBUILD_CUDA_MODULE=ON
)
Steps to reproduce the bug
In a ubuntu 18.04.6 linux distribution with a machine supporting cuda
Install cuda 11.6
Use open3D external cmake add external
Run the example DenseSLAM with flag "--device CUDA:0"
Error message
[Open3D INFO] Using device: CUDA:0 terminate called after throwing an instance of 'std::runtime_error' what(): [Open3D Error] (void open3d::core::__OPEN3D_CUDA_CHECK(cudaError_t, const char*, int)) /home/ubuntu/Work/Projects/handheld-scanning-prototype/Open3DBox/build/open3d/src/external_open3d/cpp/open3d/core/CUDAUtils.cpp:301: /home/ubuntu/Work/Projects/handheld-scanning-prototype/Open3DBox/build/open3d/src/external_open3d/cpp/open3d/core/MemoryManagerCUDA.cpp:43 CUDA runtime error: operation not supported
Expected behavior
Running DenseSLAM without crashing it is the case when running with the flag "--device CPU:0"
Open3D, Python and System information
- Operating system: Ubuntu 18.04.6
- Open3D version: 0.14.1
- System type: 64 bit machine
- Is this remote workstation?: no
- How did you install Open3D?: build from source
- Compiler version (if built from source): gcc 7.5