Skip to content

Commit

Permalink
Throw again after logging that RMM could not intialize (#5243)
Browse files Browse the repository at this point in the history
* Throw again after logging that RMM could not intialize

Signed-off-by: Alessandro Bellina <[email protected]>

* Let exception as is from RMM, and change slightly the wording from the ExecutorPlugin
  • Loading branch information
abellina authored Apr 14, 2022
1 parent 6c27068 commit b6eaa50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,13 +296,9 @@ object GpuDeviceManager extends Logging {
logInfo("Using legacy default stream")
}

try {
Cuda.setDevice(gpuId)
Rmm.initialize(init, logConf, poolAllocation)
RapidsBufferCatalog.init(conf)
} catch {
case e: Exception => logError("Could not initialize RMM", e)
}
Cuda.setDevice(gpuId)
Rmm.initialize(init, logConf, poolAllocation)
RapidsBufferCatalog.init(conf)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class RapidsExecutorPlugin extends ExecutorPlugin with Logging {
// Exceptions in executor plugin can cause a single thread to die but the executor process
// sticks around without any useful info until it hearbeat times out. Print what happened
// and exit immediately.
logError("Exception in the executor plugin", e)
logError("Exception in the executor plugin, shutting down!", e)
System.exit(1)
}
}
Expand Down

0 comments on commit b6eaa50

Please sign in to comment.