JulioPlaced / ExplORB-SLAM

71 stars 16 forks source link

Problem with GPU #3

Closed mmatteo-hub closed 1 year ago

mmatteo-hub commented 1 year ago

I am running the code on a Linux partition, Ubuntu 20.04.5 with ROS Noetic but I do not have an NVIDIA GPU. My hardware is equipped with Intel Iris Plus Graphics 640. How can I solve this problem by avoiding the use of GPU use and making it work also for non-NVIDIA-GPU-equipped PCs? Thanks in advance.

JulioPlaced commented 1 year ago

Setting the parameter "gpu" in the launch file to false should do the trick. Feel free to reopen if that mode throws any errors.

mmatteo-hub commented 1 year ago

I tried this but actually it does not solve the problem. I started reading all the code and I found there are some files which have the cuda drivers directive. In particular, in order to avoid them you have to delete the following lines:

This makes a general PC without NVIDIA GPU drivers working correctly.

JulioPlaced commented 1 year ago

You are right, numba imports must be disabled too. I'll try to pull a modification for this soon.