Browse Source

!13829 fix a bug that cuda error show wrong name in log

From: @hanhuifeng2020
Reviewed-by: @gaoxiong1,@dylangeng
Signed-off-by: @dylangeng
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 5 years ago
parent
commit
ececef5ed0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/ccsrc/runtime/device/gpu/gpu_common.h

+ 1
- 1
mindspore/ccsrc/runtime/device/gpu/gpu_common.h View File

@@ -205,7 +205,7 @@ inline bool CheckNullInput(std::vector<size_t> input_shape) {
{ \ { \
curandStatus_t status = (expression); \ curandStatus_t status = (expression); \
if (status != CURAND_STATUS_SUCCESS) { \ if (status != CURAND_STATUS_SUCCESS) { \
MS_LOG(EXCEPTION) << "CUAD curand Error: " << message << " | curandStatus: " << status; \
MS_LOG(EXCEPTION) << "CUDA curand Error: " << message << " | curandStatus: " << status; \
} \ } \
} }
} // namespace gpu } // namespace gpu


Loading…
Cancel
Save