Esempio n. 1
0
static inline void CHECK(ncclResult_t status)
{
  if (status != ncclSuccess) {
    std::stringstream err;
    err << "NCCL Error " << status << ": " << ncclGetErrorString(status);
    throw std::runtime_error(err.str());
  }
}
Esempio n. 2
0
void throw_nccl_error(ncclResult_t status) {
  std::ostringstream err;
  err << "NCCL Error " << status << ": " << ncclGetErrorString(status);
  throw std::runtime_error(err.str());
}
static inline int error_nccl(error *e, const char *msg, ncclResult_t err) {
  return error_fmt(e, GA_COMM_ERROR, "%s: %s", msg, ncclGetErrorString(err));
}