Git Product home page Git Product logo

Comments (4)

OctoberKat avatar OctoberKat commented on May 12, 2024

I have met these errors too. It is caused by the namespace nvcuda not imported successfully. Refer to this website: https://stackoverflow.com/questions/53634287/cuda-fails-to-recognize-nvcuda-namespace-during-compilation
Specifying the correct architecture makes the error disappear:
nvcc -arch=sm_70 blablabla.cu
Just append the following code in 130 line of CMakeLists.txt solved my issue:
list(APPEND CUDA_NVCC_FLAGS "-arch=sm_70")

from tiny-cuda-nn.

adw62 avatar adw62 commented on May 12, 2024

Great find, this fix also works for me.

from tiny-cuda-nn.

Holmes-Alan avatar Holmes-Alan commented on May 12, 2024

I have met these errors too. It is caused by the namespace nvcuda not imported successfully. Refer to this website: https://stackoverflow.com/questions/53634287/cuda-fails-to-recognize-nvcuda-namespace-during-compilation Specifying the correct architecture makes the error disappear: nvcc -arch=sm_70 blablabla.cu Just append the following code in 130 line of CMakeLists.txt solved my issue: list(APPEND CUDA_NVCC_FLAGS "-arch=sm_70")

which CMakeLists.txt should I modify? The one under the the major folder "tiny-cuda-nn" or somewhere under "tiny-cuda-nn/src"? I tried to add this: list(APPEND CUDA_NVCC_FLAGS "-arch=sm_70") but it does not work.

from tiny-cuda-nn.

adw62 avatar adw62 commented on May 12, 2024

The main CMake if I remember. It has since been updated I put the APPEND line here

list(APPEND CUDA_NVCC_FLAGS "--extended-lambda")
which is now here
list(APPEND CUDA_NVCC_FLAGS "--extended-lambda")
Maybe moving it to line 137 would work?

from tiny-cuda-nn.

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.