instant-ngp icon indicating copy to clipboard operation
instant-ngp copied to clipboard

building for aarch64?

Open hg111 opened this issue 1 year ago • 3 comments

Hello, I'm trying to build for Aarch64 (Ubuntu 20.04)

I am getting the following error (which I think make sense since it's not x86_64..)

/usr/bin/ld: skipping incompatible /ingp/dependencies/dlss/lib/Linux_x86_64/libnvsdk_ngx.a when searching for -lnvsdk_ngx /usr/bin/ld: cannot find -lnvsdk_ngx

how can I fix that?

hg111 avatar Aug 22 '23 17:08 hg111

If you don't need to use dlss and optix, Edit $ instant-ngp/CMakeLists.txt : line 22,24,26 'ON' to 'off' for GUI, OPIX ,DLSSsupport .

hnj5247 avatar Aug 23 '23 07:08 hnj5247

Thanks! This got me through this error!

It appears that I can compile, build and run without gui (python scripts/run.py) but when I try with gui (python scripts/run.py --gui) the gui window opens for a brief second and then crashes:

18:06:56 SUCCESS Initialized CUDA 12.2. Active GPU is #0: Orin [87] 18:06:56 SUCCESS Initialized OpenGL version 4.6.0 NVIDIA 35.2.1 Training: 0%| | 0/35000 [00:03<?, ?steps/s] Traceback (most recent call last): File "scripts/run.py", line 201, in while testbed.frame(): RuntimeError: /ingp/src/render_buffer.cu:69 cudaMallocArray(&m_array, &desc, size.x, size.y, cudaArraySurfaceLoadStore) failed: an illegal memory access was encountered 18:07:00 WARNING Could not free memory: /ingp/dependencies/tiny-cuda-nn/include/tiny-cuda-nn/gpu_memory.h:139 cudaFree(rawptr) failed: an illegal memory access was encountered 18:07:00 WARNING Could not free memory: /ingp/dependencies/tiny-cuda-nn/include/tiny-cuda-nn/gpu_memory.h:139 cudaFree(rawptr) failed: an illegal memory access was encountered 18:07:00 WARNING Could not free memory: /ingp/dependencies/tiny-cuda-nn/include/tiny-cuda-nn/gpu_memory.h:139 cudaFree(rawptr) failed: an illegal memory access was encountered

btw, I am running on Orin AGX and I also had to (temporarily) sym link build/dependencies to a directory in my local drive since my external drive was unfortunately mounted without exec permission and will be training for a few more days, so I can't remount..

p.s what is it training if I have't given it any content yet?

hg111 avatar Aug 23 '23 18:08 hg111

Hello, have you resolved the display issue with the GUI window? Can you provide me with some help?

vegetableschick avatar Oct 08 '23 07:10 vegetableschick