Error: PTX .version 7.0 does not support .target sm_86

Hey there,

I am trying to run a project on RTX Ampere. Before the hardware update it was running fine but now the error:

�[1;31m>>> FATAL : OptiXDrawable::drawImplementation() optix::Exception ErrorString: <Unknown error (Details: Function “RTresult _rtContextLaunch2D(RTcontext, unsigned int, RTsize, RTsize)” caught exception: Encountered a CUDA error: ptxas application ptx input, line 10; error : PTX .version 7.0 does not support .target sm_86
ptxas fatal : Ptx assembly aborted due to errors returned (218): Invalid ptx)> ErrorCode: <0XFFFFFFFF>

was reported on serveral machines running with Ampere. Tried to debug with gdb but didnt get useful information out of it. optixTutorial from NVIDIA-OptiX-SDK-6.5.0-linux64/SDK-precompiled-samples/ is running fine. Searched also for ptx files with sm_86, but they seam all to be sm_30. Would be nice, to get some more ideas, what to try next. Thanks in advance.

Here are my system infomations:
System: OpenSUSE 15.2
GPU: RTX 3070

CUDA Version: 10.1
OptiX Version: 6.5
built using: -m64 --use_fast_math -arch=sm_30

NVIDIA-SMI 460.32.03 Driver Version: 460.32.03 CUDA Version: 11.2

That sounds strange.
While it is correct that the SM 8.6 version is not supported by the PTX ISA version 7.0 but requires PTX ISA version 7.1, this combination should not be generated by OptiX and would be bug, but I’ve not seen any bug report about such a behavior.

If all OptiX SDK 6.5.0 samples work on your configuration, but your project doesn’t, this would require a reproducer in failing state to investigate.

From application side, CUDA toolkit 10.1 cannot generate that SM 8.6 code. It doesn’t know about Ampere SM versions.

Note that CUDA toolkits 11.x cannot generate SM 3.0 code. If you update your development environment you’d need to change the SM target to at least SM 5.0 which is already deprecated and will throw warnings which can be suppressed.

One thing you could try is updating the display driver. There is one newer version available for Linux 64-bit than 460.32 which is 460.39

Updating the driver didn’t work. Here is a minimum reproducer. If either
output_buffer[launch_index] = make_float3(0.0f, 0.0f, 0.0f);
output_buffer0[launch_index] = make_float4(0.0f,0.0f, 0.0f, 0.0f);
in is outcommented, it runs without a crash.
Might be, that we reduced it too much. If so please tell us what’s missing.
optix_reproducable.tgz (2.6 KB)