# Ray-local memory

**URL:** <https://forums.developer.nvidia.com/t/ray-local-memory/183142>\
**Category:** OptiX\
**Created:** [July 8, 2021, 4:44pm UTC](https://forums.developer.nvidia.com/t/ray-local-memory/183142 "2021-07-08T16:44:45Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![droettger](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/droettger/32/14043_2.png) [@droettger](https://forums.developer.nvidia.com/u/droettger)\
**Post date:** [July 9, 2021, 4:50pm UTC](https://forums.developer.nvidia.com/t/ray-local-memory/183142/18 "2021-07-09T16:50:54Z")

</div>

The NVRTC options are just a local array of `const char*` you need to setup before the call to `nvrtcCompileProgram()`.

Have a look at this old thread. This is how I translated runtime generated CUDA C++ code for an advanced material system to PTX:  
[https://forums.developer.nvidia.com/t/optix-compile-error-in-ptxstring/70636/2](https://forums.developer.nvidia.com/t/optix-compile-error-in-ptxstring/70636/2)

There have been some amount of [NVRTC related discussions](https://forums.developer.nvidia.com/search?q=NVRTC%20category%3A167) on this OptiX sub-forum before

I recommend using the search feature in the top right while the page is on the OptiX sub-forum topics before asking a question.

---

_[View the full topic](https://forums.developer.nvidia.com/t/ray-local-memory/183142)._
