Giter Site home page Giter Site logo

Comments (10)

ugogon avatar ugogon commented on July 17, 2024 1

I "solved" it by upgrading my NVIDIA card to a RTX 3090

from mitsuba2.

andreiburov avatar andreiburov commented on July 17, 2024

My system:

  • Ubuntu 16.04
  • Driver 418.87.00
  • OptiX 6.0
  • CUDA 10.1
  • CMake 3.16.5
  • Clang 9.0.1

yields same error as outlined above.

Adding -std=c++14 to ext/enoki/CMakeLists.txt:18 yields:

[4/164] Building CUDA object ext_build/enoki/CMakeFiles/enoki-cuda.dir/src/cuda/jit.cu.o
FAILED: /usr/local/cuda/bin/nvcc  -DENOKI_AUTODIFF=1 -DENOKI_BUILD=1 -DENOKI_CUDA=1 -DENOKI_CUDA_COMPUTE_CAPABILITY=61 -Denoki_cuda_EXPORTS -I/usr/include/libcxxabi -I../ext/enoki/include -I../ext/enoki/ext/cub -gencode arch=compute_61,code=compute_61 -cudart shared -std=c++14 -Xcompiler -fvisibility=hidden -DNDEBUG -O3 -DNDEBUG -Xcompiler=-fPIC -x cu -c ../ext/enoki/src/cuda/jit.cu -o ext_build/enoki/CMakeFiles/enoki-cuda.dir/src/cuda/jit.cu.o && /usr/local/cuda/bin/nvcc  -DENOKI_AUTODIFF=1 -DENOKI_BUILD=1 -DENOKI_CUDA=1 -DENOKI_CUDA_COMPUTE_CAPABILITY=61 -Denoki_cuda_EXPORTS -I/usr/include/libcxxabi -I../ext/enoki/include -I../ext/enoki/ext/cub -gencode arch=compute_61,code=compute_61 -cudart shared -std=c++14 -Xcompiler -fvisibility=hidden -DNDEBUG -O3 -DNDEBUG -Xcompiler=-fPIC -x cu -M ../ext/enoki/src/cuda/jit.cu -MT ext_build/enoki/CMakeFiles/enoki-cuda.dir/src/cuda/jit.cu.o -o ext_build/enoki/CMakeFiles/enoki-cuda.dir/src/cuda/jit.cu.o.d
../ext/enoki/src/cuda/jit.cu:84:49: error: array must be initialized with a brace-enclosed initializer
../ext/enoki/src/cuda/jit.cu:84:49: error: too many initializers for ‘std::array<unsigned int, 3ul>’
[4/164] Building CUDA object ext_build/enoki/CMakeFiles/enoki-cuda.dir/src/cuda/horiz.cu.o
ninja: build stopped: subcommand failed.

Neither -std=c++17 nor -std=gnu++17 are not supported by my nvcc.

Subtituting ext/enoki/src/cuda/jit.cu:84 with std::array<uint32_t, 3> dep = { { 0, 0, 0 } }; compiles without further issues. Checked with mitsuba -m gpu_autodiff_rgb resources/data/scenes/hello.xml.

from mitsuba2.

Speierers avatar Speierers commented on July 17, 2024

Is this still an issue? @andreiburov @ugogon

Maybe try with the latest master, we have fixed a few things in the meantime.

from mitsuba2.

ugogon avatar ugogon commented on July 17, 2024

I just pulled and the error is still occurring. Nothing changed.

from mitsuba2.

Speierers avatar Speierers commented on July 17, 2024

Would you mind trying to update your Nvidia GPU driver?

from mitsuba2.

ugogon avatar ugogon commented on July 17, 2024

I'm already on 440.64. Do you think updating to 440.82 will change something. I'm afraid to accidentally shut down the computer, because I can't turn it on again hardwarewise currently.

from mitsuba2.

Speierers avatar Speierers commented on July 17, 2024

Sure I understand.

Did you update the submodules as well? This seems to be an issue with enoki actually.
git submodule update --recursive

from mitsuba2.

ugogon avatar ugogon commented on July 17, 2024

Yes, I cloned into an empty using the --recursive flag

from mitsuba2.

comewei avatar comewei commented on July 17, 2024

Yes, I cloned into an empty using the --recursive flag

hello,do you solve this,Can you help me.I also use ninja to compile,but it says ninja: build stopped: subcommand failed

from mitsuba2.

comewei avatar comewei commented on July 17, 2024

I "solved" it by upgrading my NVIDIA card to a RTX 3090

sometimes I don't know why it happens,I use pytorch/pytorch#32694 to solve it.
I try lots of time,it couldn't work. but now,it works well.
just
git clean -xdf git submodule sync git submodule deinit -f . git submodule update --init --recursive
Unbelievable
and thanks for your response.

from mitsuba2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.