static */
| 834 | } |
| 835 | |
| 836 | /* static */ bool GpuDriver::SynchronizeContext(GpuContext* context) { |
| 837 | ScopedActivateContext activation{context}; |
| 838 | hipError_t res = tensorflow::wrap::hipDeviceSynchronize(); |
| 839 | if (res != hipSuccess) { |
| 840 | LOG(ERROR) << "could not synchronize on ROCM device: " << ToString(res) |
| 841 | << " :: " << port::CurrentStackTrace(); |
| 842 | return false; |
| 843 | } |
| 844 | |
| 845 | return true; |
| 846 | } |
| 847 | |
| 848 | /* static */ port::Status GpuDriver::SynchronizeStream(GpuContext* context, |
| 849 | GpuStreamHandle stream) { |
nothing calls this directly
no test coverage detected