Git Product home page Git Product logo

Comments (5)

knightcrawler25 avatar knightcrawler25 commented on September 26, 2024

While building MoonRay (Step 4: https://docs.openmoonray.org/getting-started/installation/building-moonray/building-moonray-centos-7/#step-4-build-moonray), you might want to check the output of "cmake --preset container-release" to make sure it was able to find CUDA as well as OptiX before starting the build process. Otherwise, its going to be built without GPU support and the shaders folder would then be empty.

from openmoonray.

BrianHanke avatar BrianHanke commented on September 26, 2024

@knightcrawler25 Aha, there is indeed a problem there:

-- Looking for a CUDA compiler
-- Looking for a CUDA compiler - NOTFOUND
-- No CUDA support

I've followed the build guide to the letter. How can I enable a CUDA compiler?

from openmoonray.

knightcrawler25 avatar knightcrawler25 commented on September 26, 2024

The simplest way (that worked for me) is to first set the path variable to where nvcc is available on your system. This will allow cmake to find CUDA:

export PATH=/usr/local/cuda/bin:${PATH}

Then make sure the complier and the cmake versions are set to the ones mentioned in the instructions:

scl enable devtoolset-9 bash

export PATH=/installs/cmake-3.23.1-linux-x86_64/bin:${PATH}

Then proceed with Step 4 of the build instructions.

from openmoonray.

BrianHanke avatar BrianHanke commented on September 26, 2024

Great, it's working now! Thanks a lot for the help. :)

from openmoonray.

adro79 avatar adro79 commented on September 26, 2024

Hi, I'm having the same error with my Arch Linux build.

moonray_gui -in scene.rdla scene.rdlb -exec_mode xpu -debug

GPU: Creating accelerator
GPU: Loading .ptx: /shaders/GPUPrograms.ptx
DEBUG (lib.render): GPU: Unable to load PTX file: /shaders/GPUPrograms.ptx   ...falling back to CPU vectorized mode
Warning (lib.render): GPU: Unable to load PTX file: /shaders/GPUPrograms.ptx   ...falling back to CPU vectorized mode
Error: GPU: Unable to load PTX file: /shaders/GPUPrograms.ptx   ...falling back to CPU vectorized mode
GPU: Freeing accelerator
GPU: Closed database: "/var/tmp/OptixCache_adro/optix7cache.db"
GPU:     Cache data size: "2.0 MiB"
00:00:00  915.9 MB | GPU setup aborted due to error:
00:00:00  915.9 MB | Unable to load PTX file: /shaders/GPUPrograms.ptx
00:00:00  915.9 MB | Falling back to CPU vector mode

My Cuda version is 12.2.0 (RTX 3090), the /opt/moonray/shaders/GPUPrograms.ptx exists. I tested both with optix 7.3 and 7.7 (using a patch)

from openmoonray.

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.