From 8a3478d6dfab9f017234e918fa1846f97902c060 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Thu, 28 Sep 2023 17:28:41 -0400 Subject: [PATCH] fix typo Signed-off-by: Jinzhe Zeng --- source/lib/include/gpu_cuda.h | 4 ++-- source/lib/include/gpu_rocm.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/lib/include/gpu_cuda.h b/source/lib/include/gpu_cuda.h index 5632845bce..0876515ccc 100644 --- a/source/lib/include/gpu_cuda.h +++ b/source/lib/include/gpu_cuda.h @@ -69,7 +69,7 @@ inline void nborAssert(cudaError_t code, if (abort) { throw deepmd::deepmd_exception_oom(error_msg); } else { - fprintf(stderr, err_msg + "\n"); + fprintf(stderr, error_msg + "\n"); } } } @@ -78,7 +78,7 @@ inline void nborAssert(cudaError_t code, if (abort) { throw deepmd::deepmd_exception(error_msg); } else { - fprintf(stderr, err_msg + "\n"); + fprintf(stderr, error_msg + "\n"); } } } diff --git a/source/lib/include/gpu_rocm.h b/source/lib/include/gpu_rocm.h index 2833778557..500df4ecd1 100644 --- a/source/lib/include/gpu_rocm.h +++ b/source/lib/include/gpu_rocm.h @@ -34,7 +34,7 @@ inline void DPAssert(hipError_t code, if (abort) { throw deepmd::deepmd_exception(error_msg); } else { - fprintf(stderr, err_msg + "\n"); + fprintf(stderr, error_msg + "\n"); } } } @@ -54,7 +54,7 @@ inline void nborAssert(hipError_t code, if (abort) { throw deepmd::deepmd_exception(error_msg); } else { - fprintf(stderr, err_msg + "\n"); + fprintf(stderr, error_msg + "\n"); } } }