[libomptarget][amdgcn] Implement get_wtime
as a scaled call to an intrinsic. Implementation identical to that in aomp.
Differential D75581
[libomptarget][amdgcn] Implement get_wtime JonChesterfield on Mar 3 2020, 4:07 PM. Authored by
Details
Diff Detail
Event Timeline
Comment Actions I don't have a documentation reference for this yet. A crude benchmark suggests the frequency is 25MHz on a vega 20, but I'm hoping for a source other than experimentation. Comment Actions I'm unable to find a good reference for what this frequency should be, so am considering unconditionally returning zero from this function. That won't 'work' in any useful sense, but it's an improvement on failing to link because __clock64 is undefined.
|
I don't have a source for the magic number. It's from before my time. I can offer that rough checks from running applications look ok, and that it has been shipping as part of aomp for ages without user complaints.