NVlabs / instant-ngp

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

jetson nano compilation error #115

Open Txikivasco opened 2 years ago

Txikivasco commented 2 years ago

I get this series of errors while compiling on my jetson nano:

gcc: error: unrecognized command line option ‘-mf16c’ dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/build.make:159: recipe for target 'dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/network.cu.o' failed make[2]: [dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/network.cu.o] Error 1 make[2]: Waiting for unfinished jobs.... gcc: error: unrecognized command line option ‘-mf16c’ dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/build.make:117: recipe for target 'dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/cutlass_resnet.cu.o' failed make[2]: [dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/cutlass_resnet.cu.o] Error 1 gcc: error: unrecognized command line option ‘-mf16c’ dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/build.make:131: recipe for target 'dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/encoding.cu.o' failed make[2]: [dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/encoding.cu.o] Error 1 gcc: error: unrecognized command line option ‘-mf16c’ gcc: error: unrecognized command line option ‘-mf16c’ gcc: error: unrecognized command line option ‘-mf16c’ gcc: error: unrecognized command line option ‘-mf16c’ [ 32%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/xkb_unicode.c.o [ 34%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/x11_window.c.o dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/build.make:173: recipe for target 'dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/object.cu.o' failed make[2]: [dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/object.cu.o] Error 1 dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/build.make:103: recipe for target 'dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/cutlass_mlp.cu.o' failed make[2]: [dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/cutlass_mlp.cu.o] Error 1 dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/build.make:145: recipe for target 'dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/loss.cu.o' failed make[2]: [dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/loss.cu.o] Error 1 dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/build.make:75: recipe for target 'dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/common.cu.o' failed make[2]: [dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/common.cu.o] Error 1 [ 36%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/posix_time.c.o gcc: error: unrecognized command line option ‘-mf16c’ dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/build.make:89: recipe for target 'dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/common_device.cu.o' failed make[2]: [dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/common_device.cu.o] Error 1 CMakeFiles/Makefile2:257: recipe for target 'dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/all' failed make[1]: [dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... [ 38%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/posix_thread.c.o [ 40%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/egl_context.c.o [ 42%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/glx_context.c.o [ 44%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/osmesa_context.c.o [ 46%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/linux_joystick.c.o [ 46%] Built target glfw_objects Makefile:90: recipe for target 'all' failed make: [all] Error 2

The building process then crashes at 46%

caba-crypto commented 2 years ago

I got the same error on Jetson AGX.

Anyone has a solution?

killnice commented 2 years ago

Is Jetson Nano powerful enough to run this code?

Antonioxv commented 2 years ago

Have you solved it?

delldu commented 2 years ago

Jetson Nano memory is not enough for such kinds of applications if you not optimized !

xxxyyynnn commented 1 year ago

I met the same problem, can anyone solve it ?

insomniaaac commented 1 year ago

I met the same problem.

ABCDEFZ-jk commented 1 month ago

Did you fix this and run it correctly? How long does Jetson Nano take to render the fox that comes with it