Comments (3)
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.
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.
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)
- [Question]About parallel beam and cone beam HOT 1
- mapping 3D points to 2D points
- mapping 2Dpoint to 3Dpoint HOT 3
- Projection Matrix HOT 1
- FLIP AXIS HOT 5
- How to implement STL to DCM transformation in deepdrr HOT 1
- How to set up a simulation of an orthogonal projection? HOT 1
- Isocenter / origin question HOT 1
- Given extrinsic matrix and intrinsic matrix HOT 9
- Zooming out on the DRR HOT 1
- Error when trying out the main branch HOT 7
- `TypeError` always raised when calling `Volume.from_dicom` without a cache_path
- Where does the formula for HU to density come from? HOT 1
- cuda compile issue
- DRR is white. HOT 7
- cuMemcpyHtoD failed! HOT 6
- Dead link to test data (used in Jupyter notebook)
- DEEPDRR Achieve gradient projection HOT 1
- Unexpected DRR orientation HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepdrr.