cudaGetLastError Interface

interface
public function cudaGetLastError() result(cudaError_t) bind(C, name="cudaGetLastError")

Arguments

None

Return Value integer(kind=c_int)

Returns cudaSuccess if no error was detected or an error code if there was an issue.

Description

Returns the last error from a runtime call.