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

Method SetWorkspace

tensorflow/stream_executor/cuda/cuda_blas.cc:268–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268bool CUDABlas::SetWorkspace(Stream* stream, void *workspace, size_t workspaceSizeInBytes) {
269 CHECK(blas_ != nullptr);
270 if (!SetStream(stream)) {
271 return false;
272 }
273 cublasStatus_t ret = cublasSetWorkspace(blas_, workspace, workspaceSizeInBytes);
274 VLOG(2) << "set cublas workspace";
275 if (ret != CUBLAS_STATUS_SUCCESS) {
276 LOG(ERROR) << "failed to set cublas workspace: " << ToString(ret);
277 return false;
278 }
279 return true;
280}
281
282bool CUDABlas::SetStream(Stream *stream) {
283 CHECK(stream != nullptr);

Callers 2

CaptureCudaGraphMethod · 0.80
gpu_device.ccFile · 0.80

Calls 2

SetStreamFunction · 0.70
ToStringFunction · 0.70

Tested by

no test coverage detected