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

Method Memset32

tensorflow/stream_executor/host/host_gpu_executor.cc:140–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140port::Status HostExecutor::Memset32(Stream *stream, DeviceMemoryBase *location,
141 uint32 pattern, uint64 size) {
142 void *gpu_mem = location->opaque();
143 // Enqueue the [asynchronous] memzero on the stream (HostStream) associated
144 // with the HostExecutor.
145 AsHostStream(stream)->EnqueueTask(
146 [gpu_mem, size, pattern]() { memset(gpu_mem, pattern, size); });
147 return port::Status::OK();
148}
149
150port::Status HostExecutor::SynchronousMemcpy(DeviceMemoryBase *gpu_dst,
151 const void *host_src,

Callers

nothing calls this directly

Calls 3

AsHostStreamFunction · 0.85
opaqueMethod · 0.80
EnqueueTaskMethod · 0.45

Tested by

no test coverage detected