Git Product home page Git Product logo

Comments (3)

benjamindkilleen avatar benjamindkilleen commented on June 24, 2024 1

We have overhauled the Projector to use cupy, since Textures are officially deprecated with CUDA 12 and their replacement is not supported by PyCUDA. We will push this release after further testing, but if you would like to try it out, you can check out the dev branch and install from source.

from deepdrr.

henrykrumb avatar henrykrumb commented on June 24, 2024

The error stems from the "texture" type being deprecated since CUDA 5.0 1. Support was entirely dropped in version 12.0.

deepdrr/projector/cubic/cubicTex3D.cu(54): error: identifier "texture" is undefined __attribute__((device)) float linearTex3D(texture<T, 3, mode> tex, float3 coord)

This issue is quite nasty to refactor, as the API significantly changed. Grepping for "texture<", I found about 360 occurrences in the whole DeepDRR project. Further, I learned that the project uses third party code from 2010 for performing cubic interpolation (http://www.dannyruijters.nl/cubicinterpolation/) which relies on texture objects.

I am not very familiar with CUDA programming, but I see the following options to resolve:

  • Refactor the existing code to use the new cudaTextureObject_t API, maybe under the help of a LMM.
  • Replace the CUDA kernels by an abstraction layer like cupy, which is basically equal to a rewrite.
  • Ask users to downgrade CUDA 11.x. However, this is not a sustainable solution and might not be possible in many setups (e.g. for students who don't have admin rights on the university machines).

from deepdrr.

mathiasunberath avatar mathiasunberath commented on June 24, 2024

This of course is unfortunate. We are reviewing this, and will likely be implementing a change. @benjamindkilleen and @liamjwang may have additional thoughts/updates on this now or soon.

from deepdrr.

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.