Browse Source

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

From: @hanhuifeng2020
Reviewed-by: @dylangeng,@anyrenwei
Signed-off-by: @anyrenwei
pull/13832/MERGE
mindspore-ci-bot Gitee 4 years ago
parent
commit
825ce95756
3 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/ccsrc/runtime/device/gpu/gpu_common.h
  2. +0
    -0
      mindspore/lite/micro/example/mnist_x86/benchmark/load_input.c
  3. +0
    -0
      mindspore/lite/micro/example/mnist_x86/benchmark/load_input.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


+ 0
- 0
mindspore/lite/micro/example/mnist_x86/benchmark/load_input.c View File


+ 0
- 0
mindspore/lite/micro/example/mnist_x86/benchmark/load_input.h View File


Loading…
Cancel
Save