I ran our OptiX application built with a CUDA toolkit newer than the installed driver supports, and was surprised that it works. The CUDA compatibility guide says applications that compile device code to PTX will not work on older drivers, and an earlier answer here ( OptiX 8 Module Creation Version Mismatch? ) recommends keeping the toolkit version at or below what `cudaDriverGetVersion` reports.
The reason for the experiment is that I would like to use cuda 13.x features in vanilla cuda kernels within the application (or at least compile with cuda toolkit 13.x), but need to deploy to R580 machines. Currently the application is not using anything beyond cuda 12.
I setup and confirmed the following:
- RHEL8 system
- nvcc 13.4.3 → PTX
.version 9.4for all OptiX modules (checked in the generated .ptx) - Driver 580.178.04 (CUDA 13.0 per nvidia-smi), NVIDIA A40-12Q vGPU, OptiX 9.0 headers
optixModuleCreatesucceeds for all modules and our full scenario test suite passes
Questions
- Is it supported behavior that the OptiX implementation in an R580 driver accepts PTX with a higher ISA version (9.4) than the driver’s CUDA version (13.0 / PTX 9.0)? Can we rely on it for shipping, or is it incidental?
- If it is supported: what is the actual constraint? (e.g. “any PTX ISA version as long as only instructions known to the driver’s OptiX compiler are used”, or a documented maximum)