Giter Site home page Giter Site logo

Comments (5)

Tom94 avatar Tom94 commented on May 15, 2024

These errors look like a mismatch between the installed visual studio and CUDA version -- unfortunately, there are frequent breaking changes between the two.

I recommend updating Visual Studio 2019 through the VS installer, afterwards installing the latest CUDA 11.6, rebooting, and then trying again. Fingers crossed!

from tiny-cuda-nn.

danperazzo avatar danperazzo commented on May 15, 2024

Did not work :/

from tiny-cuda-nn.

danperazzo avatar danperazzo commented on May 15, 2024

To provide an update, updating the Visual Studio 2019 broke my installation of tiny-cuda-nn :/ I don't know if there is a problem with the incompatibility.

from tiny-cuda-nn.

danperazzo avatar danperazzo commented on May 15, 2024

I managed to install the Python bindings! Here are the configurations I used:

Windows 10
GTX 1060
CUDA 11.6.1
Visual Studio 2019 (using the CXX compiler MSVC 19.29.30140.0)
Cmake 3.22.1
PyTorch 1.10.2 (installed with conda with cudatoolkit 11.3)

Initially, when I installed the python bindings (running python setup.py install , I got the following error:

fully_fused_mlp.cu
C:\Users\Temp\Desktop\3d-object-stationary-camera-implicit\code_c\tiny-cuda-nn\src\fully_fused_mlp.cu(415): error: name followed by "::" must be a class or namespace name

C:\Users\Temp\Desktop\3d-object-stationary-camera-implicit\code_c\tiny-cuda-nn\src\fully_fused_mlp.cu(493): error: name followed by "::" must be a class or namespace name

C:\Users\Temp\Desktop\3d-object-stationary-camera-implicit\code_c\tiny-cuda-nn\src\fully_fused_mlp.cu(493): error: name followed by "::" must be a class or namespace name

3 errors detected in the compilation of "../../src/fully_fused_mlp.cu".
error: command 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.6\\bin\\nvcc.exe' failed with exit status 1

However, since my GPU does not have so much memory, I removed the FullyFused from my installation (it would not work anyway). Doing this ensured the instalation weny smoothly and I managed to run the sample python example

from tiny-cuda-nn.

Tom94 avatar Tom94 commented on May 15, 2024

This is a really good catch, thank you! I pushed a fix to setup.py that won't include fully fused MLPs on older architectures where compilation would fail.

(CMake already does this, but I had forgotten to replicate the behavior in Python.)

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.