# CUDA/RTX

**URL:** <https://forums.developer.nvidia.com/t/cuda-rtx/306111>\
**Category:** CUDA Programming and Performance\
**Created:** [September 8, 2024, 2:53pm UTC](https://forums.developer.nvidia.com/t/cuda-rtx/306111 "2024-09-08T14:53:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![abalducci0](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@abalducci0](https://forums.developer.nvidia.com/u/abalducci0)\
**Post date:** [September 8, 2024, 2:53pm UTC](https://forums.developer.nvidia.com/t/cuda-rtx/306111/1 "2024-09-08T14:53:55Z")

</div>

Hi,

So I am admittedly still new to all this, having just completed the Getting Started CUDA C/C++ course;

But I’ve kind of had a bit of an idea I wanted to work on, but am not sure yet if it makes sense.

On RTX class devices, from CUDA, do we have access to the ray tracing hardware (and if so, how ?). This, of course is with my presumption that the ray tracing model is based on actual new hardware, not software floating above the standard SMs.

For my use case, I don’t need any graphics, I’d just like to use the engine.

And if any of my presumptions here are incorrect, I am okay to learn/hear that too :grin:.

---

<div class="post-metadata">

**Author:** ![njuffa](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@njuffa](https://forums.developer.nvidia.com/u/njuffa)\
**Post date:** [September 8, 2024, 9:02pm UTC](https://forums.developer.nvidia.com/t/cuda-rtx/306111/2 "2024-09-08T21:02:25Z")

</div>

Unless I have missed some recent developments, there is no access to RT cores from CUDA. NVIDIA’s designated software framework / API for working with RT cores is called OptiX. It offers a limited amount of interoperability with CUDA, basically buffer sharing. The developer support forum for OptiX is here:

> **[OptiX](https://forums.developer.nvidia.com/c/gaming-and-visualization-technologies/visualization/optix/167)**
>
> General discussion area for OptiX

People seem to be finding interesting applications for OptiX, such as the ones described in these publications:

Marc Jachym, Sylvain Lavernhe, Charly Euzenat, Christophe Tournier, “Effective NC machining simulation with OptiX ray tracing engine.” _The Visual Computer_, Vol. 35, No. 2, Feb. 2019, pp. 281-288. [(HAL pre-print)](https://hal.science/hal-01742413/document)

Masatomo Inui, Kohei Kaba, Nobuyuki Umezu, “Fast Cutter Accessibility Analysis Using Ray Tracing Cores of GPU.” _International Journal of Automation Technology_, Vol. 15, No. 6, Nov. 2021, pp. 842-851 ([online](https://www.jstage.jst.go.jp/article/ijat/15/6/15_842/_pdf))

---

<div class="post-metadata">

**Author:** ![abalducci0](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@abalducci0](https://forums.developer.nvidia.com/u/abalducci0)\
**Post date:** [September 8, 2024, 10:11pm UTC](https://forums.developer.nvidia.com/t/cuda-rtx/306111/3 "2024-09-08T22:11:40Z")

</div>

@njuffa that is unfortunate. Though it would need to refined a little in how it is described/outlined, I was hoping to give a challenge to the ‘Traveling Salesman’ problem.

If you hear anything new, please let me know.

---

<div class="post-metadata">

**Author:** ![njuffa](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@njuffa](https://forums.developer.nvidia.com/u/njuffa)\
**Post date:** [September 8, 2024, 10:28pm UTC](https://forums.developer.nvidia.com/t/cuda-rtx/306111/4 "2024-09-08T22:28:54Z")

</div>

My personal philosophy is that the kind of “compartementalization” (plus interop) that NVIDIA seems to practice here is actually a Good Thing ™.

Using an “everything plus the kitchen sink” approach to CUDA could easily turn it into an overwhelming complex mess. Maintaining CUDA as a fairly tight subset standard C++ for ease of transition from CPU-based to GPU-based _general purpose_ computing is much preferred in my thinking.

I have not used OptiX myself, but the publications I have seen suggest a higher level of abstraction than CUDA, allowing programmers to ramp up quickly and become productive in a relatively short amount of time. Based on that I would encourage you to give OptiX a try if you are interested in experimenting with RT cores.

---

<div class="post-metadata">

**Author:** ![abalducci0](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@abalducci0](https://forums.developer.nvidia.com/u/abalducci0)\
**Post date:** [September 8, 2024, 10:32pm UTC](https://forums.developer.nvidia.com/t/cuda-rtx/306111/5 "2024-09-08T22:32:07Z")

</div>

@njuffa I will take your advice. I think my idea is not _that_ crazy, if you think now what rays really quickly do… I never said it is ‘easy’ though.
