NVlabs / instant-ngp

Instant neural graphics primitives: lightning fast NeRF and more
https://nvlabs.github.io/instant-ngp
Other
15.88k stars 1.91k forks source link

building for aarch64? #1429

Open hg111 opened 1 year ago

hg111 commented 1 year ago

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?

hnj5247 commented 1 year ago

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 .

hg111 commented 1 year ago

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?

vegetableschick commented 12 months ago

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