diff --git a/hipamd/src/hip_error.cpp b/hipamd/src/hip_error.cpp index 41c608a0b4..0e2cfb9fe6 100644 --- a/hipamd/src/hip_error.cpp +++ b/hipamd/src/hip_error.cpp @@ -26,8 +26,8 @@ namespace hip { hipError_t hipExtGetLastError() { HIP_INIT_API(hipExtGetLastError); - hipError_t err = hip::tls.last_error_; - hip::tls.last_error_ = hipSuccess; + hipError_t err = hip::tls.last_command_error_; + hip::tls.last_command_error_ = hipSuccess; return err; }