Loading...
cudaErrorArrayIsMapped (207)cudaErrorArrayIsMapped occurs when attempting to free or modify an array that is currently mapped for graphics interop.
CUDA error: array is mapped cudaErrorArrayIsMapped
Always unmap arrays.
cudaGraphicsUnmapResources(1, &resource, stream);
cudaGraphicsUnregisterResource(resource);Array still mapped.
cudaGraphicsMapResources(1, &res, 0);
cudaFreeArray(array); // Error!Properly unmapped.
cudaGraphicsMapResources(1, &res, 0);
// use array
cudaGraphicsUnmapResources(1, &res, 0);For OpenGL/DirectX interop where CUDA writes to graphics textures.
Need help debugging CUDA errors? Download RightNow AI for intelligent error analysis and optimization suggestions.