m-schuetz / SimLOD

MIT License
454 stars 24 forks source link

Linux compile fixes #6

Closed adamtassier closed 2 months ago

adamtassier commented 7 months ago

Hi, while trying to compile on linux (fedora 38) I encountered these compilation problems (maybe in part because GCC13 is a bit stricter):

Unfortunately even though everything compiles now it still crashes in the voxel tree construction kernel for me.

m-schuetz commented 7 months ago

Regarding the crash in the kernel, could you try lowering the amount of allocated GPU memory?

In: https://github.com/m-schuetz/SimLOD/blob/main/modules/progressive_octree/main_progressive_octree.cpp#L552

Reduce the 0.96 at the end to something like 0.7.

size_t cptr_buffer_persistent_bytes = static_cast<size_t>(static_cast<double>(availableMem) * 0.96);

I think @JolifantoBambla had the same issue in linux when reserving too much memory.

adamtassier commented 7 months ago

I had already tried lowering the amount of memory allocated and am still getting this in cuda-gdb:

Thread 22 "SimLOD" received signal CUDA_EXCEPTION_14, Warp Illegal Address.
0x00007fffd3e573c0 in kernel_construct<<<(16,1,1),(256,1,1)>>> ()
cuda block (0, 0, 0) thread (0, 0, 0)

Maybe its due to my T1200 card (the weakest mobile quadro card available). Only support compute capability 75 as well which I changed in the compileProgram opts. to no avail.

Ill try too see if I can get it to run on another PC with a better card.