Giter Site home page Giter Site logo

Build error about instant-ngp HOT 10 CLOSED

nvlabs avatar nvlabs commented on May 11, 2024
Build error

from instant-ngp.

Comments (10)

Tom94 avatar Tom94 commented on May 11, 2024 2

I believe I found the problem (CUDA 10.2 only supports constexpr __device__ functions and not variables) and am currently working towards a fix over there: #9

Fingers crossed!

In the interim, if you are able to update your CUDA version to 11.4/.5, that should do the trick

from instant-ngp.

mmalex avatar mmalex commented on May 11, 2024

from instant-ngp.

phongnhhn92 avatar phongnhhn92 commented on May 11, 2024

I am using cuda 10.2

from instant-ngp.

mmalex avatar mmalex commented on May 11, 2024

from instant-ngp.

afiaka87 avatar afiaka87 commented on May 11, 2024

@mmalex I receive the same error when building on an RTX 2070 Super (has tensor cores). The CUDA architecture is correctly detected as 75 in the prior build step.

cmake --version
cmake version 3.22.1
gmake --version
GNU Make 4.3
Built for x86_64-pc-linux-gnu
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Mon_Nov_30_19:08:53_PST_2020
Cuda compilation tools, release 11.2, V11.2.67
Build cuda_11.2.r11.2/compiler.29373293_0
neofetch 
----------------                                           
OS: Pop!_OS 21.10 x86_64                                           
Host: B450M DS3H                                           
Kernel: 5.15.8-76051508-generic                                         
Shell: bash 5.1.8                                                        
CPU: AMD Ryzen 9 3900X (24) @ 3.800GH                                           
GPU: NVIDIA GeForce RTX 2070 SUPER                                           
Memory: 3392MiB / 32113MiB      
nvidia-smi
Fri Jan 14 19:29:09 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.86       Driver Version: 470.86       CUDA Version: 11.4     |

Manually setting TCNN_CUDA_ARCHITECTURES to 75 gives the same error

TCNN_CUDA_ARCHITECTURES=75 cmake --build build --config RelWithDebInfo -j 16

from instant-ngp.

aoliao12138 avatar aoliao12138 commented on May 11, 2024

I solve this error by using cuda 11.4.

from instant-ngp.

MultiPath avatar MultiPath commented on May 11, 2024

Hi I am also having the same error "error: A device variable cannot be marked constexpr"
My GPU is V100 and I set the architecture to 70. Is it too old for this code?

Thanks

from instant-ngp.

MultiPath avatar MultiPath commented on May 11, 2024

And to add, my current cuda version is 11.2 but still seem to have similar problems.. Although it is a bit hard to upgrade to 11.4 on my current server though

from instant-ngp.

Tom94 avatar Tom94 commented on May 11, 2024

Please feel free to re-open this issue if the compile error persists despite the attempted fix I just merged.

FWIW, CI successfully compiles CUDA 10.2 on Ubuntu 18.04 now.

from instant-ngp.

afiaka87 avatar afiaka87 commented on May 11, 2024

Confirmed working, thanks @Tom94

from instant-ngp.

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.