| 495 | } |
| 496 | |
| 497 | port::Status GpuExecutor::SynchronousMemZero(DeviceMemoryBase* location, |
| 498 | uint64 size) { |
| 499 | if (reinterpret_cast<uintptr_t>(location->opaque()) % 4 == 0 && |
| 500 | size % 4 == 0) { |
| 501 | return GpuDriver::SynchronousMemsetUint32( |
| 502 | context_, AsROCmDevicePtr(location), 0x0, size / 4); |
| 503 | } |
| 504 | return GpuDriver::SynchronousMemsetUint8(context_, AsROCmDevicePtr(location), |
| 505 | 0x0, size); |
| 506 | } |
| 507 | |
| 508 | port::Status GpuExecutor::SynchronousMemSet(DeviceMemoryBase* location, |
| 509 | int value, uint64 size) { |
nothing calls this directly
no test coverage detected