Skip to content

Commit 6f9cee1

Browse files
committed
Update docs/how-to/hip_runtime_api/error_handling.rst
1 parent 78c2aeb commit 6f9cee1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/how-to/hip_runtime_api/error_handling.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ without changing it. To get a human readable version of the errors,
2323

2424
:cpp:func:`hipGetLastError` and ``cudaGetLastError`` returns the error
2525
returned by any of the preceding HIP or CUDA APIs in the same host thread.
26-
Before ROCm release 7.0, the `hipGetLastError` mismatched the bhaviour with
27-
``cudaGetLastError`` and returns the returned error code of the last HIP
28-
runtime API call even if it's ``hipSuccess``.
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``.
2928

3029

3130
Best practices of HIP error handling:

0 commit comments

Comments
 (0)