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

Method DoBlasInternalImpl

tensorflow/stream_executor/rocm/rocm_blas.cc:401–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399
400template <typename FuncT, typename... Args>
401bool ROCMBlas::DoBlasInternalImpl(FuncT rocblas_func, Stream *stream,
402 bool pointer_mode_host, bool err_on_failure,
403 Args... args) {
404 absl::MutexLock lock{&mu_};
405
406 CHECK(blas_ != nullptr);
407 if (!SetStream(stream)) {
408 return false;
409 }
410
411 rocblas_status ret = rocblas_func(parent_, blas_, args...);
412 if (err_on_failure && ret != rocblas_status_success) {
413 LOG(ERROR) << "failed to run ROCBLAS routine " << rocblas_func.kName << ": "
414 << ToString(ret);
415 }
416 return ret == rocblas_status_success;
417}
418
419bool ROCMBlas::DoBlasAsum(Stream *stream, uint64 elem_count,
420 const DeviceMemory<float> &x, int incx,

Callers

nothing calls this directly

Calls 2

SetStreamFunction · 0.70
ToStringFunction · 0.70

Tested by

no test coverage detected