Browse Source

continue to send remain data when release gpu resource

tags/v1.0.0
anzhengqi 5 years ago
parent
commit
d2ba20bdbc
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      mindspore/ccsrc/runtime/device/gpu/gpu_buffer_mgr.cc

+ 5
- 0
mindspore/ccsrc/runtime/device/gpu/gpu_buffer_mgr.cc View File

@@ -19,6 +19,10 @@
#include <utility>
#include "utils/log_adapter.h"
#include "utils/ms_utils.h"
#include "pybind11/pybind11.h"
#include "pybind11/stl.h"

namespace py = pybind11;

namespace mindspore {
namespace device {
@@ -167,6 +171,7 @@ inline bool GpuBufferMgr::isCreated(unsigned int device_id, const std::string &c
}

bool GpuBufferMgr::CloseNotify() {
py::gil_scoped_release release;
bool result = true;
// lock scope
{


Loading…
Cancel
Save