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

Method SetStream

tensorflow/stream_executor/cuda/cuda_blas.cc:282–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282bool CUDABlas::SetStream(Stream *stream) {
283 CHECK(stream != nullptr);
284 CHECK(AsGpuStreamValue(stream) != nullptr);
285 CHECK(blas_ != nullptr);
286 gpu::ScopedActivateExecutorContext sac{parent_};
287 cublasStatus_t ret = cublasSetStream(blas_, AsGpuStreamValue(stream));
288 if (ret != CUBLAS_STATUS_SUCCESS) {
289 LOG(ERROR) << "failed to set stream for cuBLAS calls: " << ToString(ret);
290 return false;
291 }
292
293 return true;
294}
295
296cudaStream_t CUDABlas::CUDAStream(Stream* stream) {
297 CHECK(stream != nullptr);

Callers

nothing calls this directly

Calls 2

AsGpuStreamValueFunction · 0.85
ToStringFunction · 0.70

Tested by

no test coverage detected