OptiX on Xavier NX (or Orin)

Hello there,

I’m trying to get OptiX working on a Xavier NX or an Orin. I’m following a path proposed in OptiX 7.3 on Jetson AGX Xavier - #7 by dhart

In brief:

  • take standard Jetpack 5.1.2 installation
  • install OptiX 7.3.0
  • download NVIDIA GPU driver version 470 for ARM
  • copy libraries from driver to $HOME/lib
  • run optixHello

When I do this I get (not too surprisingly):

$ LD_LIBRARY_PATH=$HOME/lib /opt/optix-7.3.0/SDK/build/bin/optixHello
[ 4][       KNOBS]: All knobs on default.

[ 2][       ERROR]: Error creating RTX context
Caught exception: OPTIX_ERROR_INVALID_DEVICE_CONTEXT: Optix call 'optixDeviceContextCreate( cuCtx, &options, &context )' failed: /opt/optix-7.3.0/SDK/optixHello/optixHello.cpp:128)

If I run with strace I can see that it’s using libnvoptix.so and libnvidia-rtcore.so from the GPU driver installer.

According to the OptiX 7.3 release notes all GPUs with compute capability 5.0 (Maxwell) and above are supported, which pre-dates RT cores so presumably they aren’t a hard requirement.

Are there any thoughts on how to proceed?

I did all this on a Xavier NX because that was available to be but switching to an Orin is an option. I would imagine I would hit the same wall though.

Hi @dave.jennings,

Unfortunately I don’t know what’s going wrong there. Do you see any errors or unexpected loads in the strace logs?

Does your Jetson have a discrete GPU, or are you using systems with only integrated GPUs? That could be part of the issue here. When Kyle got this working on his AGX Xavier, he had a discrete GPU plugged in, and the ARM driver is more likely to work with a dGPU. There are some driver differences with the integrated Jetson GPUs that might prevent our shim from being able to work. Sorry I can’t be more helpful.

I still believe the right path here is to help the Jetson team understand the demand for OptiX on Jetson and try to get the official Jetson drivers to include OptiX. To that end, can you say anything about your use case for ray tracing on Jetson? I know the Jetson team is very interested to hear what people are doing, especially if the intent or goal is to deploy a ray tracing enabled application (as opposed to evaluating Jetson’s capabilities, for example).


David.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.