From 2579bda001f02c007e606fa90dc0b7da87160bc5 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Thu, 30 Jun 2022 18:07:20 -0400 Subject: [PATCH] fix typo in hip assert error message Wrongly written as "cuda assert" (#1801). --- source/lib/include/gpu_rocm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/lib/include/gpu_rocm.h b/source/lib/include/gpu_rocm.h index 84e05efbd2..35328c701f 100644 --- a/source/lib/include/gpu_rocm.h +++ b/source/lib/include/gpu_rocm.h @@ -13,7 +13,7 @@ inline void DPAssert(hipError_t code, const char *file, int line, bool abort=true) { if (code != hipSuccess) { fprintf(stderr,"hip assert: %s %s %d\n", hipGetErrorString(code), file, line); - if (abort) throw deepmd::deepmd_exception("CUDA Assert"); + if (abort) throw deepmd::deepmd_exception("HIP Assert"); } } @@ -21,7 +21,7 @@ inline void DPAssert(hipError_t code, const char *file, int line, bool abort=tru inline void nborAssert(hipError_t code, const char *file, int line, bool abort=true) { if (code != hipSuccess) { fprintf(stderr,"hip assert: %s %s %d\n", "DeePMD-kit:\tillegal nbor list sorting", file, line); - if (abort) throw deepmd::deepmd_exception("CUDA Assert"); + if (abort) throw deepmd::deepmd_exception("HIP Assert: illegal nbor list sorting"); } }