Skip to content

Commit 83f52a4

Browse files
committed
Update docs/how-to/hip_runtime_api/error_handling.rst
At Istvan's request
1 parent a21b157 commit 83f52a4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/how-to/hip_runtime_api/error_handling.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ without changing it. To get a human readable version of the errors,
2121

2222
.. note::
2323

24-
:cpp:func:`hipGetLastError` and ``cudaGetLastError`` returns the error
25-
returned by any of the preceding HIP or CUDA APIs in the same host thread.
26-
Before ROCm release 7.0, ``hipGetLastError`` did not match the ``cudaGetLastError`` behavior,
27-
and instead returned the error code of the last HIP runtime API call even if it was ``hipSuccess``.
24+
:cpp:func:`hipGetLastError` returns the last actual HIP API error caught in the current thread
25+
during the application execution. Prior to ROCm 7.0, ``hipGetLastError`` might also return
26+
``hipSuccess`` or ``hipErrorNotReady`` from the last HIP runtime API call, which are not errors.
2827

2928

3029
Best practices of HIP error handling:

0 commit comments

Comments
 (0)