| 118 | } |
| 119 | |
| 120 | port::Status HostExecutor::MemZero(Stream *stream, DeviceMemoryBase *location, |
| 121 | uint64 size) { |
| 122 | void *gpu_mem = location->opaque(); |
| 123 | // Enqueue the [asynchronous] memzero on the stream (HostStream) associated |
| 124 | // with the HostExecutor. |
| 125 | AsHostStream(stream)->EnqueueTask( |
| 126 | [gpu_mem, size]() { memset(gpu_mem, 0, size); }); |
| 127 | return port::Status::OK(); |
| 128 | } |
| 129 | |
| 130 | port::Status HostExecutor::Memset(Stream *stream, DeviceMemoryBase *location, |
| 131 | uint8 pattern, uint64 size) { |
nothing calls this directly
no test coverage detected