| 560 | } |
| 561 | |
| 562 | port::Status GpuExecutor::Memset32(Stream* stream, DeviceMemoryBase* location, |
| 563 | uint32 pattern, uint64 size) { |
| 564 | VLOG(2) << "enqueueing memset32 operation onto stream " << stream |
| 565 | << " at location " << location << " with size " << size |
| 566 | << " and pattern " << std::hex << pattern; |
| 567 | CHECK(reinterpret_cast<uintptr_t>(location->opaque()) % 4 == 0 && |
| 568 | size % 4 == 0); |
| 569 | return GpuDriver::AsynchronousMemsetUint32( |
| 570 | context_, AsROCmDevicePtr(location), pattern, size / 4, |
| 571 | AsGpuStreamValue(stream)); |
| 572 | } |
| 573 | |
| 574 | bool GpuExecutor::Memcpy(Stream* stream, void* host_dst, |
| 575 | const DeviceMemoryBase& gpu_src, uint64 size) { |
nothing calls this directly
no test coverage detected