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

Method SynchronousMemsetUint8

tensorflow/stream_executor/rocm/rocm_driver.cc:494–503  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

492}
493
494/* static */ port::Status GpuDriver::SynchronousMemsetUint8(
495 GpuContext* context, hipDeviceptr_t location, uint8 value, size_t size) {
496 ScopedActivateContext activation{context};
497 hipError_t res = tensorflow::wrap::hipMemsetD8(location, value, size);
498 if (res != hipSuccess) {
499 return port::InternalError(
500 absl::StrCat("failed to memset memory: ", ToString(res)));
501 }
502 return port::Status::OK();
503}
504
505/* static */ port::Status GpuDriver::SynchronousMemsetUint32(
506 GpuContext* context, hipDeviceptr_t location, uint32 value,

Callers

nothing calls this directly

Calls 3

ToStringFunction · 0.70
InternalErrorFunction · 0.50
StrCatFunction · 0.50

Tested by

no test coverage detected