MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / SetStream

Method SetStream

tensorflow/stream_executor/rocm/rocm_blas.cc:334–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334bool ROCMBlas::SetStream(Stream *stream) {
335 CHECK(stream != nullptr);
336 CHECK(AsGpuStreamValue(stream) != nullptr);
337 CHECK(blas_ != nullptr);
338 rocblas_status ret =
339 wrap::rocblas_set_stream(parent_, blas_, AsGpuStreamValue(stream));
340 if (ret != rocblas_status_success) {
341 LOG(ERROR) << "failed to set stream for rocBLAS calls: " << ToString(ret);
342 return false;
343 }
344
345 return true;
346}
347
348namespace {
349

Callers

nothing calls this directly

Calls 2

AsGpuStreamValueFunction · 0.85
ToStringFunction · 0.70

Tested by

no test coverage detected