Loading...
cudaErrorInvalidImage (200)cudaErrorInvalidImage indicates the CUDA binary is incompatible with the GPU, usually due to architecture mismatch.
CUDA error: invalid image cudaErrorInvalidImage
Target your GPU.
nvcc -arch=sm_86 kernel.cu # For RTX 3090Support multiple GPUs.
nvcc -gencode arch=compute_75,code=sm_75 \
-gencode arch=compute_86,code=sm_86 kernel.cuWon't work on newer GPUs.
nvcc -arch=sm_50 kernel.cu # Only PascalMultiple archs + PTX.
nvcc -gencode arch=compute_75,code=sm_75 \
-gencode arch=compute_86,code=sm_86 \
-gencode arch=compute_86,code=compute_86 kernel.cuContains code for multiple GPU architectures in one file.
Need help debugging CUDA errors? Download RightNow AI for intelligent error analysis and optimization suggestions.