The behavior is not defined in the case of a CUDA error that corrupts the CUDA context.
This type of error is obvious because it "sticks", that is, as soon as it occurs, each call to the CUDA API will return this error until the context is destroyed.
, API cuda ( cudaPeekAtLastError). " " ( , ..) "". 3 () API cudaMemcpy cudaMemcpy , cudaMemcpy - cudaMemcpy cudaMemcpy - .
CUDA , - .
cudaMalloc cudaMalloc , . , , () API CUDA . CUDA, cuda , .
, :
, :
cudaErrorMemoryAllocation = 2 API, .
, :
cudaErrorMisalignedAddress = 74 , . , ( ). , CUDA.
, cudaDeviceReset() . "" .