Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the CPU version for GLIM #128

Open
mal-hk opened this issue Dec 14, 2024 · 0 comments
Open

Using the CPU version for GLIM #128

mal-hk opened this issue Dec 14, 2024 · 0 comments

Comments

@mal-hk
Copy link

mal-hk commented Dec 14, 2024

I performed the source installation given in the tutorial, while setting CUDA = OFF here
https://koide3.github.io/glim/installation.html

git clone https://github.com/koide3/gtsam_points
mkdir gtsam_points/build && cd gtsam_points/build
cmake .. -DBUILD_WITH_CUDA=ON
make -j$(nproc)
sudo make install

I then also changed the config file as suggested:
If you want to try the CPU-based odometry estimation and global optimization, in config.json, set
"config_odometry" : "config_odometry_cpu.json",
"config_sub_mapping" : "config_sub_mapping_cpu.json",
"config_global_mapping" : "config_global_mapping_cpu.json",

but when building the workspace I still get this cuda related error:

~/glim_ws$ colcon build --symlink-install
[0.476s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/home/maleeha/glim_ws/install/glim_ros' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.476s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/maleeha/glim_ws/install/glim_ros' in the environment variable CMAKE_PREFIX_PATH doesn't exist
Starting >>> glim
--- stderr: glim
CMake Error at /usr/share/cmake-3.22/Modules/FindCUDAToolkit.cmake:675 (message):
Could not find nvcc, please set CUDAToolkit_ROOT.
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
/usr/local/lib/cmake/gtsam_points/gtsam_points-config.cmake:50 (find_dependency)
CMakeLists.txt:28 (find_package)


Failed <<< glim [0.09s, exited with code 1]

Summary: 0 packages finished [0.59s]
1 package failed: glim
1 package had stderr output: glim
1 package not processed

could anyone explain what might the source of the error be?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant