| 50 | } |
| 51 | |
| 52 | bool XlaInterpreterExecutor::Memcpy(Stream *stream, void *host_dst, |
| 53 | const DeviceMemoryBase &dev_src, |
| 54 | uint64 size) { |
| 55 | AsExecutorStream(stream)->EnqueueTask([this, host_dst, dev_src, size]() { |
| 56 | port::Status ok = SynchronousMemcpy(host_dst, dev_src, size); |
| 57 | }); |
| 58 | AsExecutorStream(stream)->BlockUntilDone(); |
| 59 | return true; |
| 60 | } |
| 61 | |
| 62 | bool XlaInterpreterExecutor::Memcpy(Stream *stream, DeviceMemoryBase *dev_dst, |
| 63 | const void *host_src, uint64 size) { |
nothing calls this directly
no test coverage detected