NVlabs / instant-ngp

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

build error A100 GPU ubuntu 20.04 aws ec2 instance #629

Open AndreV84 opened 2 years ago

AndreV84 commented 2 years ago

~/instant-ngp$ cmake . -B build
-- Targeting GPU architectures: 86
-- Using X11 for window creation
-- !!! Warning OptiX_INSTALL_DIR not set in environment. using default
-- OptiX_INSTALL_DIR value: /usr/local/NVIDIA-OptiX-SDK-7.3.0-linux64-x86_64
-- OptiX headers (optix.h and friends) not found.
CMake Warning at CMakeLists.txt:224 (message):
  OptiX was not found.  Neural graphics primitives will still compile and run
  correctly.  However, SDF training in 'raystab' and 'pathescape' modes will
  be significantly slower.

-- pybind11 v2.7.1 
CMake Warning (dev) at /usr/share/cmake-3.23/Modules/CMakeDependentOption.cmake:89 (message):
  Policy CMP0127 is not set: cmake_dependent_option() supports full Condition
  Syntax.  Run "cmake --help-policy CMP0127" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
  dependencies/pybind11/CMakeLists.txt:98 (cmake_dependent_option)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
CMake Error in CMakeLists.txt:
  No known features for CXX compiler

  "GNU"

  version 9.4.0.

CMake Generate step failed.  Build files cannot be regenerated correctly.
dstahlke commented 2 years ago

I got a similar error on Ubuntu 22. Fixed it by "rm -rf build" and trying again.