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

Facing build errors while building the ngp in Jetson Xavier

Open virajhapaliya opened this issue 2 years ago • 2 comments

Hello,

I was going through this blog. So I want to build this repo in Nvidia Jetson Xavier. But I am facing issue in that. Here is the error:

Consolidate compiler generated dependencies of target glfw_objects [ 1%] Building CUDA object dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/common_device.cu.o [ 3%] Building CUDA object dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/common.cu.o [ 5%] Building CUDA object dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/cpp_api.cu.o gcc: error: unrecognized command line option ‘-mf16c’ 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 make[2]: *** Waiting for unfinished jobs… 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/cpp_api.cu.o’ failed make[2]: *** [dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/cpp_api.cu.o] Error 1 gcc: error: unrecognized command line option ‘-mf16c’ 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 CMakeFiles/Makefile2:253: 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… [ 33%] Built target glfw_objects Makefile:90: recipe for target ‘all’ failed make: *** [all] Error 2

Hardware Information: Board: Jetson Xavier Cuda:10.2 Jetpack: 4.6.1 TensorRT: 8.2.1.8 cuDNN: 8.2.1.32

Thank you Viraj Hapaliya

virajhapaliya avatar May 18 '22 06:05 virajhapaliya

Jetpack 5.0_DP I am able to run Google tensorflow NERF. But nvidia NERF won't work AGX Jetson Xavier

nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Thu_Nov_11_23:44:05_PST_2021
Cuda compilation tools, release 11.4, V11.4.166
Build cuda_11.4.r11.4/compiler.30645359_0
cmake --build build --config RelWithDebInfo -j8
[  1%] Building CUDA object dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/common.cu.o
[  3%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/context.c.o
[  5%] Building CUDA object dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/common_device.cu.o
[  7%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/monitor.c.o
[  9%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/input.c.o
[ 11%] Building CUDA object dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/cutlass_mlp.cu.o
[ 12%] Building CUDA object dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/cpp_api.cu.o
[ 14%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/init.c.o
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’
make[2]: *** [dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/build.make:90: dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/common_device.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/build.make:76: dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/common.cu.o] Error 1
make[2]: *** [dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/build.make:104: dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/cpp_api.cu.o] Error 1
make[2]: *** [dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/build.make:118: dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/cutlass_mlp.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:206: dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 18%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/vulkan.c.o
[ 18%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/window.c.o
[ 20%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/x11_init.c.o
[ 22%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/x11_monitor.c.o
[ 24%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/x11_window.c.o
[ 25%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/xkb_unicode.c.o
[ 27%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/posix_time.c.o
[ 29%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/posix_thread.c.o
[ 31%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/glx_context.c.o
[ 33%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/egl_context.c.o
[ 35%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/osmesa_context.c.o
[ 37%] Building C object dependencies/glfw/src/CMakeFiles/glfw_objects.dir/linux_joystick.c.o
[ 37%] Built target glfw_objects
make: *** [Makefile:91: all] Error 2

AndreV84 avatar May 22 '22 06:05 AndreV84

Hi, did you guys solve this problem? I met same error on Jetson AGX Orin, jetpack 5.0.2 cuda 11.4, seems something with the XComplier=-mf16c.

bill202210 avatar Nov 23 '22 04:11 bill202210

Hi, do you have some news ? Same problem here on Jetson Xavier NX with Cuda 11.8

guillaume-minne avatar Dec 01 '22 15:12 guillaume-minne

no news, I will try again

AndreV84 avatar Dec 03 '22 14:12 AndreV84

Is there any update on this issue?

masip85 avatar Feb 28 '23 14:02 masip85

Is there any update?

insomniaaac avatar Mar 04 '23 17:03 insomniaaac

Hi, did you guys solve this problem? I met same error on Jetson AGX Orin, jetpack 5.0.2 cuda 11.4, seems something with the XComplier=-mf16c.

I find I can compile the tinycudann on my Jetson AGX Orin without any change. But when I ran the demo of “tinycudann” in c++ version ‘./build/mlp_learning_an_image data/images/albert.jpg data/config_hash.json’, the program stuck after loading the JSON config.

JIANG-CX avatar Mar 13 '23 10:03 JIANG-CX