Browse Source

clean codex

Signed-off-by: zhupuxu <zhupuxu@huawei.com>
pull/15514/head
zhupuxu 5 years ago
parent
commit
8e80424ccf
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      mindspore/ccsrc/runtime/device/ascend/ascend_kernel_runtime.cc
  2. +1
    -0
      mindspore/ccsrc/runtime/device/ascend/signal_util.cc

+ 1
- 1
mindspore/ccsrc/runtime/device/ascend/ascend_kernel_runtime.cc View File

@@ -955,7 +955,7 @@ int AscendKernelRuntime::DeleteDumpFile(std::string path) {
if (S_ISREG(statbuf.st_mode)) {
result = remove(path.c_str());
} else if (S_ISDIR(statbuf.st_mode)) {
if ((dir = opendir(path.c_str())) == NULL) {
if ((dir = opendir(path.c_str())) == nullptr) {
return -1;
}



+ 1
- 0
mindspore/ccsrc/runtime/device/ascend/signal_util.cc View File

@@ -28,6 +28,7 @@ SignalGuard::~SignalGuard() {
(void)sigemptyset(&int_action.sa_mask);
int_action.sa_flags = SA_RESTART | SA_SIGINFO;
(void)sigaction(SIGINT, &int_action, nullptr);
old_handler = nullptr;
}
}



Loading…
Cancel
Save