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

Method SynchronousMemZero

tensorflow/stream_executor/rocm/rocm_gpu_executor.cc:497–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497port::Status GpuExecutor::SynchronousMemZero(DeviceMemoryBase* location,
498 uint64 size) {
499 if (reinterpret_cast<uintptr_t>(location->opaque()) % 4 == 0 &&
500 size % 4 == 0) {
501 return GpuDriver::SynchronousMemsetUint32(
502 context_, AsROCmDevicePtr(location), 0x0, size / 4);
503 }
504 return GpuDriver::SynchronousMemsetUint8(context_, AsROCmDevicePtr(location),
505 0x0, size);
506}
507
508port::Status GpuExecutor::SynchronousMemSet(DeviceMemoryBase* location,
509 int value, uint64 size) {

Callers

nothing calls this directly

Calls 2

AsROCmDevicePtrFunction · 0.85
opaqueMethod · 0.80

Tested by

no test coverage detected