| 128 | } |
| 129 | |
| 130 | port::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 | |
| 140 | port::Status HostExecutor::Memset32(Stream *stream, DeviceMemoryBase *location, |
| 141 | uint32 pattern, uint64 size) { |
nothing calls this directly
no test coverage detected