Rdc -> Error handling fatbinary, No available relocatable PTX entries for GPU

rainer.bitschi
Wed, 08 Apr 2026 18:34:20 +0000
Compute Sanitizer

Starting from a template cuda project in Visual Studio 2026 on Windows 11, I put together this very simple code:

#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <iostream>

__global__ void emptyKernel() {}

void kernelCall() {
	emptyKernel<<<1, 1>>>();
	cudaError_t err = cudaGetLastError();
	std::cout << cudaGetErrorString(err) << std::endl;
}

int main() {
	kernelCall();
}

When I now set “Relocatable Device Code” rdc = true and run this executable via compute-sanitizer the result is

compute-sanitizer --tool memcheck .\SimpleTest.exe
========= COMPUTE-SANITIZER
========= CUDA API Error: Error handling fatbinary, to get more information when using CUDA Driver APIs use the CU_JIT_ERROR_LOG_BUFFER and CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES parameters
=========     Saved host backtrace up to driver entry point at error
=========         Host Frame: emptyKernel in tmpxft_00004100_00000000-7_kernel.compute_121.cudafe1.stub.c:19 [0x7c9b] in SimpleTest.exe
=========         Host Frame: kernelCall in kernel.cu:8 [0x7d48] in SimpleTest.exe
=========         Host Frame: main in kernel.cu:14 [0x7d9b] in SimpleTest.exe

========= CUDA API Error: No available relocatable PTX entries for GPU
=========     Saved host backtrace up to driver entry point at error
=========         Host Frame: emptyKernel in tmpxft_00004100_00000000-7_kernel.compute_121.cudafe1.stub.c:19 [0x7c9b] in SimpleTest.exe
=========         Host Frame: kernelCall in kernel.cu:8 [0x7d48] in SimpleTest.exe
=========         Host Frame: main in kernel.cu:14 [0x7d9b] in SimpleTest.exe

========= CUDA API Error: No device code available for GPU ISA 86
=========     Saved host backtrace up to driver entry point at error
=========         Host Frame: emptyKernel in tmpxft_00004100_00000000-7_kernel.compute_121.cudafe1.stub.c:19 [0x7c9b] in SimpleTest.exe
=========         Host Frame: kernelCall in kernel.cu:8 [0x7d48] in SimpleTest.exe
=========         Host Frame: main in kernel.cu:14 [0x7d9b] in SimpleTest.exe

no error
========= ERROR SUMMARY: 3 errors

The program without sanitizer runs fine, as does it via sanitizer and rdc=false. What is this supposed to mean? There is no Cuda Driver Api Call? And how can I use sanitizer when rdc=true?

2 posts - 2 participants