koide3 / glim

GLIM: versatile and extensible range-based 3D localization and mapping framework
MIT License
585 stars 77 forks source link

warning: cudaErrorIllegalAddress an illegal memory access was encountered #68

Open sczgzzzj opened 3 months ago

sczgzzzj commented 3 months ago

Thank you for your work, using GPU can greatly improve the speed, but the bag running larger scenes will often prompt insufficient memory, I am 3060 12G graphics card, can you save the optimized results to the hard disk at the same time, to avoid the problem of insufficient memory, thank you

koide3 commented 3 months ago

There are a few parameters that can largely reduce the GPU memory usage. Please try setting them as follows.

Storing intermediate mapping data in a disk would be hard to do properly (in particular with GPU memory). While we may consider it in future, we will not do it soon.

sczgzzzj commented 3 months ago

According to your above settings, it really greatly reduces the memory consumption of GPU. Thank you very much. Can the offline_viewer of GLIM now add the function of Multiple map merging like interactive_slam? This function is very useful. It can merge several bags calculated separately. Or can interactive_slam support GLIM output packets

sczgzzzj commented 3 months ago

In addition, I would like to ask you if you can add 2 graphics cards and calculate and increase the memory at the same time for calculating large scenes.Can I configure it in your source file?

koide3 commented 2 months ago

Can the offline_viewer of GLIM now add the function of Multiple map merging like interactive_slam?

It is in a future plan, but for now, no support on merging multi maps.

I would like to ask you if you can add 2 graphics cards and calculate and increase the memory at the same time for calculating large scenes.

I expect drastic changes are required. Utilizing multi-GPUs for speeding up is relatively easy, but expanding the memory space is not. I think introducing some out-of-core GPU memory access mechanism should be a more realistic solution.