You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mkdir build && cd build
cmake -DCMAKE_PREFIX_PATH=/home/data1/wqm/libtorch ..
make j12
and got:
-- CMAKE_BUILD_TYPE Release -- Caffe2: CUDA detected: 11.3 -- Caffe2: CUDA nvcc is: /usr/local/cuda/bin/nvcc -- Caffe2: CUDA toolkit directory: /usr/local/cuda -- Caffe2: Header version is: 11.3 -- Found cuDNN: v8.2.0 (include: /usr/local/cuda/include, library: /usr/local/cuda/lib64/libcudnn.so) -- /usr/local/cuda/lib64/libnvrtc.so shorthash is 8aa72235 -- Autodetected CUDA architecture(s): 6.1 6.1 6.1 6.1 -- Added CUDA NVCC flags for: -gencode;arch=compute_61,code=sm_61 -- Configuring done -- Generating done -- Build files have been written to: /home/data1/wqm/mega-nerf-viewer/build
`/usr/local/bin/cmake -S/home/data1/wqm/mega-nerf-viewer -B/home/data1/wqm/mega-nerf-viewer/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/bin/cmake -E cmake_progress_start /home/data1/wqm/mega-nerf-viewer/build/CMakeFiles /home/data1/wqm/mega-nerf-viewer/build//CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/data1/wqm/mega-nerf-viewer/build'
make -f CMakeFiles/mega-nerf-viewer.dir/build.make CMakeFiles/mega-nerf-viewer.dir/depend
make[2]: Entering directory '/home/data1/wqm/mega-nerf-viewer/build'
cd /home/data1/wqm/mega-nerf-viewer/build && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /home/data1/wqm/mega-nerf-viewer /home/data1/wqm/mega-nerf-viewer /home/data1/wqm/mega-nerf-viewer/build /home/data1/wqm/mega-nerf-viewer/build /home/data1/wqm/mega-nerf-viewer/build/CMakeFiles/mega-nerf-viewer.dir/DependInfo.cmake --color=
Consolidate compiler generated dependencies of target mega-nerf-viewer
make[2]: Leaving directory '/home/data1/wqm/mega-nerf-viewer/build'
make -f CMakeFiles/mega-nerf-viewer.dir/build.make CMakeFiles/mega-nerf-viewer.dir/build
make[2]: Entering directory '/home/data1/wqm/mega-nerf-viewer/build'
[ 5%] Building CXX object CMakeFiles/mega-nerf-viewer.dir/main.cpp.o
/usr/bin/c++ -DGLFW_DLL -DUSE_C10D_GLOO -DUSE_C10D_NCCL -DUSE_DISTRIBUTED -DUSE_RPC -DUSE_TENSORPIPE -I/home/data1/wqm/mega-nerf-viewer/3rdparty/cnpy -I/home/data1/wqm/mega-nerf-viewer/3rdparty/cxxopts -I/home/data1/wqm/mega-nerf-viewer/3rdparty/glm -I/home/data1/wqm/mega-nerf-viewer/3rdparty/imgui -I/home/data1/wqm/mega-nerf-viewer/3rdparty/ImGuizmo -I/home/data1/wqm/mega-nerf-viewer/3rdparty/imgui-filebrowser -I/home/data1/wqm/mega-nerf-viewer/3rdparty/zstream-cpp -isystem /usr/local/cuda/include -isystem /home/data1/wqm/libtorch/include -isystem /home/data1/wqm/libtorch/include/torch/csrc/api/include -O3 -DNDEBUG -D_GLIBCXX_USE_CXX11_ABI=0 -std=gnu++1z -MD -MT CMakeFiles/mega-nerf-viewer.dir/main.cpp.o -MF CMakeFiles/mega-nerf-viewer.dir/main.cpp.o.d -o CMakeFiles/mega-nerf-viewer.dir/main.cpp.o -c /home/data1/wqm/mega-nerf-viewer/main.cpp
[ 10%] Building CUDA object CMakeFiles/mega-nerf-viewer.dir/src/cuda/renderer_kernel.cu.o
[ 15%] Building CXX object CMakeFiles/mega-nerf-viewer.dir/src/renderer/cuda_renderer.cpp.o
/usr/local/cuda/bin/nvcc -forward-unknown-to-host-compiler -DGLFW_DLL -DUSE_C10D_GLOO -DUSE_C10D_NCCL -DUSE_DISTRIBUTED -DUSE_RPC -DUSE_TENSORPIPE -I/home/data1/wqm/mega-nerf-viewer/3rdparty/cnpy -I/home/data1/wqm/mega-nerf-viewer/3rdparty/cxxopts -I/home/data1/wqm/mega-nerf-viewer/3rdparty/glm -I/home/data1/wqm/mega-nerf-viewer/3rdparty/imgui -I/home/data1/wqm/mega-nerf-viewer/3rdparty/ImGuizmo -I/home/data1/wqm/mega-nerf-viewer/3rdparty/imgui-filebrowser -I/home/data1/wqm/mega-nerf-viewer/3rdparty/zstream-cpp -isystem=/usr/local/cuda/include -isystem=/home/data1/wqm/libtorch/include -isystem=/home/data1/wqm/libtorch/include/torch/csrc/api/include -DONNX_NAMESPACE=onnx_c2 -gencode arch=compute_61,code=sm_61 -Xcudafe --diag_suppress=cc_clobber_ignored,--diag_suppress=integer_sign_change,--diag_suppress=useless_using_declaration,--diag_suppress=set_but_not_used,--diag_suppress=field_without_dll_interface,--diag_suppress=base_class_has_different_dll_interface,--diag_suppress=dll_interface_conflict_none_assumed,--diag_suppress=dll_interface_conflict_dllexport_assumed,--diag_suppress=implicit_return_from_non_void_function,--diag_suppress=unsigned_compare_with_zero,--diag_suppress=declared_but_not_referenced,--diag_suppress=bad_friend_decl --expt-relaxed-constexpr --expt-extended-lambda -O3 -DNDEBUG -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17 -MD -MT CMakeFiles/mega-nerf-viewer.dir/src/cuda/renderer_kernel.cu.o -MF CMakeFiles/mega-nerf-viewer.dir/src/cuda/renderer_kernel.cu.o.d -x cu -c /home/data1/wqm/mega-nerf-viewer/src/cuda/renderer_kernel.cu -o CMakeFiles/mega-nerf-viewer.dir/src/cuda/renderer_kernel.cu.o
/usr/bin/c++ -DGLFW_DLL -DUSE_C10D_GLOO -DUSE_C10D_NCCL -DUSE_DISTRIBUTED -DUSE_RPC -DUSE_TENSORPIPE -I/home/data1/wqm/mega-nerf-viewer/3rdparty/cnpy -I/home/data1/wqm/mega-nerf-viewer/3rdparty/cxxopts -I/home/data1/wqm/mega-nerf-viewer/3rdparty/glm -I/home/data1/wqm/mega-nerf-viewer/3rdparty/imgui -I/home/data1/wqm/mega-nerf-viewer/3rdparty/ImGuizmo -I/home/data1/wqm/mega-nerf-viewer/3rdparty/imgui-filebrowser -I/home/data1/wqm/mega-nerf-viewer/3rdparty/zstream-cpp -isystem /usr/local/cuda/include -isystem /home/data1/wqm/libtorch/include -isystem /home/data1/wqm/libtorch/include/torch/csrc/api/include -O3 -DNDEBUG -D_GLIBCXX_USE_CXX11_ABI=0 -std=gnu++1z -MD -MT CMakeFiles/mega-nerf-viewer.dir/src/renderer/cuda_renderer.cpp.o -MF CMakeFiles/mega-nerf-viewer.dir/src/renderer/cuda_renderer.cpp.o.d -o CMakeFiles/mega-nerf-viewer.dir/src/renderer/cuda_renderer.cpp.o -c /home/data1/wqm/mega-nerf-viewer/src/renderer/cuda_renderer.cpp
In file included from /home/data1/wqm/mega-nerf-viewer/src/renderer/cuda_renderer.cpp:11:0:
/home/data1/wqm/mega-nerf-viewer/src/renderer/../../include/renderer/renderer.hpp:3:10: fatal error: filesystem: No such file or directory
#include
^~~~~~~~~~~~
compilation terminated.
CMakeFiles/mega-nerf-viewer.dir/build.make:190: recipe for target 'CMakeFiles/mega-nerf-viewer.dir/src/renderer/cuda_renderer.cpp.o' failed
make[2]: *** [CMakeFiles/mega-nerf-viewer.dir/src/renderer/cuda_renderer.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/data1/wqm/mega-nerf-viewer/main.cpp:18:0:
/home/data1/wqm/mega-nerf-viewer/include/renderer/renderer.hpp:3:10: fatal error: filesystem: No such file or directory
#include
^~~~~~~~~~~~
compilation terminated.
CMakeFiles/mega-nerf-viewer.dir/build.make:316: recipe for target 'CMakeFiles/mega-nerf-viewer.dir/main.cpp.o' failed
make[2]: *** [CMakeFiles/mega-nerf-viewer.dir/main.cpp.o] Error 1
/usr/local/cuda/include/surface_indirect_functions.h(238): error: Internal Compiler Error (codegen): "unexpected operand in tex/surf handler"
Hi @hturki!
I was trying to compile mega-nerf-viewer but was stuck in the final stage. Do you have any idea about this?
OS: Ubuntu 18.04.3 LTS
gcc version: 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
cmake: 3.21.6
libtorch:libtorch-shared-with-deps-1.11.0+cu113.zip
cuda: 11.3
I ran the following commands:
mkdir build && cd build
cmake -DCMAKE_PREFIX_PATH=/home/data1/wqm/libtorch ..
make j12
and got:
-- CMAKE_BUILD_TYPE Release -- Caffe2: CUDA detected: 11.3 -- Caffe2: CUDA nvcc is: /usr/local/cuda/bin/nvcc -- Caffe2: CUDA toolkit directory: /usr/local/cuda -- Caffe2: Header version is: 11.3 -- Found cuDNN: v8.2.0 (include: /usr/local/cuda/include, library: /usr/local/cuda/lib64/libcudnn.so) -- /usr/local/cuda/lib64/libnvrtc.so shorthash is 8aa72235 -- Autodetected CUDA architecture(s): 6.1 6.1 6.1 6.1 -- Added CUDA NVCC flags for: -gencode;arch=compute_61,code=sm_61 -- Configuring done -- Generating done -- Build files have been written to: /home/data1/wqm/mega-nerf-viewer/build
`/usr/local/bin/cmake -S/home/data1/wqm/mega-nerf-viewer -B/home/data1/wqm/mega-nerf-viewer/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/bin/cmake -E cmake_progress_start /home/data1/wqm/mega-nerf-viewer/build/CMakeFiles /home/data1/wqm/mega-nerf-viewer/build//CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/data1/wqm/mega-nerf-viewer/build'
make -f CMakeFiles/mega-nerf-viewer.dir/build.make CMakeFiles/mega-nerf-viewer.dir/depend
make[2]: Entering directory '/home/data1/wqm/mega-nerf-viewer/build'
cd /home/data1/wqm/mega-nerf-viewer/build && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /home/data1/wqm/mega-nerf-viewer /home/data1/wqm/mega-nerf-viewer /home/data1/wqm/mega-nerf-viewer/build /home/data1/wqm/mega-nerf-viewer/build /home/data1/wqm/mega-nerf-viewer/build/CMakeFiles/mega-nerf-viewer.dir/DependInfo.cmake --color=
Consolidate compiler generated dependencies of target mega-nerf-viewer
make[2]: Leaving directory '/home/data1/wqm/mega-nerf-viewer/build'
make -f CMakeFiles/mega-nerf-viewer.dir/build.make CMakeFiles/mega-nerf-viewer.dir/build
make[2]: Entering directory '/home/data1/wqm/mega-nerf-viewer/build'
[ 5%] Building CXX object CMakeFiles/mega-nerf-viewer.dir/main.cpp.o
/usr/bin/c++ -DGLFW_DLL -DUSE_C10D_GLOO -DUSE_C10D_NCCL -DUSE_DISTRIBUTED -DUSE_RPC -DUSE_TENSORPIPE -I/home/data1/wqm/mega-nerf-viewer/3rdparty/cnpy -I/home/data1/wqm/mega-nerf-viewer/3rdparty/cxxopts -I/home/data1/wqm/mega-nerf-viewer/3rdparty/glm -I/home/data1/wqm/mega-nerf-viewer/3rdparty/imgui -I/home/data1/wqm/mega-nerf-viewer/3rdparty/ImGuizmo -I/home/data1/wqm/mega-nerf-viewer/3rdparty/imgui-filebrowser -I/home/data1/wqm/mega-nerf-viewer/3rdparty/zstream-cpp -isystem /usr/local/cuda/include -isystem /home/data1/wqm/libtorch/include -isystem /home/data1/wqm/libtorch/include/torch/csrc/api/include -O3 -DNDEBUG -D_GLIBCXX_USE_CXX11_ABI=0 -std=gnu++1z -MD -MT CMakeFiles/mega-nerf-viewer.dir/main.cpp.o -MF CMakeFiles/mega-nerf-viewer.dir/main.cpp.o.d -o CMakeFiles/mega-nerf-viewer.dir/main.cpp.o -c /home/data1/wqm/mega-nerf-viewer/main.cpp
[ 10%] Building CUDA object CMakeFiles/mega-nerf-viewer.dir/src/cuda/renderer_kernel.cu.o
[ 15%] Building CXX object CMakeFiles/mega-nerf-viewer.dir/src/renderer/cuda_renderer.cpp.o
/usr/local/cuda/bin/nvcc -forward-unknown-to-host-compiler -DGLFW_DLL -DUSE_C10D_GLOO -DUSE_C10D_NCCL -DUSE_DISTRIBUTED -DUSE_RPC -DUSE_TENSORPIPE -I/home/data1/wqm/mega-nerf-viewer/3rdparty/cnpy -I/home/data1/wqm/mega-nerf-viewer/3rdparty/cxxopts -I/home/data1/wqm/mega-nerf-viewer/3rdparty/glm -I/home/data1/wqm/mega-nerf-viewer/3rdparty/imgui -I/home/data1/wqm/mega-nerf-viewer/3rdparty/ImGuizmo -I/home/data1/wqm/mega-nerf-viewer/3rdparty/imgui-filebrowser -I/home/data1/wqm/mega-nerf-viewer/3rdparty/zstream-cpp -isystem=/usr/local/cuda/include -isystem=/home/data1/wqm/libtorch/include -isystem=/home/data1/wqm/libtorch/include/torch/csrc/api/include -DONNX_NAMESPACE=onnx_c2 -gencode arch=compute_61,code=sm_61 -Xcudafe --diag_suppress=cc_clobber_ignored,--diag_suppress=integer_sign_change,--diag_suppress=useless_using_declaration,--diag_suppress=set_but_not_used,--diag_suppress=field_without_dll_interface,--diag_suppress=base_class_has_different_dll_interface,--diag_suppress=dll_interface_conflict_none_assumed,--diag_suppress=dll_interface_conflict_dllexport_assumed,--diag_suppress=implicit_return_from_non_void_function,--diag_suppress=unsigned_compare_with_zero,--diag_suppress=declared_but_not_referenced,--diag_suppress=bad_friend_decl --expt-relaxed-constexpr --expt-extended-lambda -O3 -DNDEBUG -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17 -MD -MT CMakeFiles/mega-nerf-viewer.dir/src/cuda/renderer_kernel.cu.o -MF CMakeFiles/mega-nerf-viewer.dir/src/cuda/renderer_kernel.cu.o.d -x cu -c /home/data1/wqm/mega-nerf-viewer/src/cuda/renderer_kernel.cu -o CMakeFiles/mega-nerf-viewer.dir/src/cuda/renderer_kernel.cu.o
/usr/bin/c++ -DGLFW_DLL -DUSE_C10D_GLOO -DUSE_C10D_NCCL -DUSE_DISTRIBUTED -DUSE_RPC -DUSE_TENSORPIPE -I/home/data1/wqm/mega-nerf-viewer/3rdparty/cnpy -I/home/data1/wqm/mega-nerf-viewer/3rdparty/cxxopts -I/home/data1/wqm/mega-nerf-viewer/3rdparty/glm -I/home/data1/wqm/mega-nerf-viewer/3rdparty/imgui -I/home/data1/wqm/mega-nerf-viewer/3rdparty/ImGuizmo -I/home/data1/wqm/mega-nerf-viewer/3rdparty/imgui-filebrowser -I/home/data1/wqm/mega-nerf-viewer/3rdparty/zstream-cpp -isystem /usr/local/cuda/include -isystem /home/data1/wqm/libtorch/include -isystem /home/data1/wqm/libtorch/include/torch/csrc/api/include -O3 -DNDEBUG -D_GLIBCXX_USE_CXX11_ABI=0 -std=gnu++1z -MD -MT CMakeFiles/mega-nerf-viewer.dir/src/renderer/cuda_renderer.cpp.o -MF CMakeFiles/mega-nerf-viewer.dir/src/renderer/cuda_renderer.cpp.o.d -o CMakeFiles/mega-nerf-viewer.dir/src/renderer/cuda_renderer.cpp.o -c /home/data1/wqm/mega-nerf-viewer/src/renderer/cuda_renderer.cpp
In file included from /home/data1/wqm/mega-nerf-viewer/src/renderer/cuda_renderer.cpp:11:0:
/home/data1/wqm/mega-nerf-viewer/src/renderer/../../include/renderer/renderer.hpp:3:10: fatal error: filesystem: No such file or directory
#include
^~~~~~~~~~~~
compilation terminated.
CMakeFiles/mega-nerf-viewer.dir/build.make:190: recipe for target 'CMakeFiles/mega-nerf-viewer.dir/src/renderer/cuda_renderer.cpp.o' failed
make[2]: *** [CMakeFiles/mega-nerf-viewer.dir/src/renderer/cuda_renderer.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/data1/wqm/mega-nerf-viewer/main.cpp:18:0:
/home/data1/wqm/mega-nerf-viewer/include/renderer/renderer.hpp:3:10: fatal error: filesystem: No such file or directory
#include
^~~~~~~~~~~~
compilation terminated.
CMakeFiles/mega-nerf-viewer.dir/build.make:316: recipe for target 'CMakeFiles/mega-nerf-viewer.dir/main.cpp.o' failed
make[2]: *** [CMakeFiles/mega-nerf-viewer.dir/main.cpp.o] Error 1
/usr/local/cuda/include/surface_indirect_functions.h(238): error: Internal Compiler Error (codegen): "unexpected operand in tex/surf handler"
CMakeFiles/mega-nerf-viewer.dir/build.make:106: recipe for target 'CMakeFiles/mega-nerf-viewer.dir/src/cuda/renderer_kernel.cu.o' failed
make[2]: *** [CMakeFiles/mega-nerf-viewer.dir/src/cuda/renderer_kernel.cu.o] Error 2
make[2]: Leaving directory '/home/data1/wqm/mega-nerf-viewer/build'
CMakeFiles/Makefile2:85: recipe for target 'CMakeFiles/mega-nerf-viewer.dir/all' failed
make[1]: *** [CMakeFiles/mega-nerf-viewer.dir/all] Error 2
make[1]: Leaving directory '/home/data1/wqm/mega-nerf-viewer/build'
Makefile:93: recipe for target 'all' failed
make: *** [all] Error 2
`
Thanks~
The text was updated successfully, but these errors were encountered: