| 138 | } |
| 139 | |
| 140 | port::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 | |
| 150 | port::Status HostExecutor::SynchronousMemcpy(DeviceMemoryBase *gpu_dst, |
| 151 | const void *host_src, |
nothing calls this directly
no test coverage detected