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

Method Memset

tensorflow/stream_executor/host/host_gpu_executor.cc:130–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130port::Status HostExecutor::Memset(Stream *stream, DeviceMemoryBase *location,
131 uint8 pattern, uint64 size) {
132 void *gpu_mem = location->opaque();
133 // Enqueue the [asynchronous] memzero on the stream (HostStream) associated
134 // with the HostExecutor.
135 AsHostStream(stream)->EnqueueTask(
136 [gpu_mem, size, pattern]() { memset(gpu_mem, pattern, size); });
137 return port::Status::OK();
138}
139
140port::Status HostExecutor::Memset32(Stream *stream, DeviceMemoryBase *location,
141 uint32 pattern, uint64 size) {

Callers

nothing calls this directly

Calls 3

AsHostStreamFunction · 0.85
opaqueMethod · 0.80
EnqueueTaskMethod · 0.45

Tested by

no test coverage detected