Skip to content

Commit 2406b8c

Browse files
committed
SWDEV-1 - Switch PAL to the interface version 872
Change-Id: I71ef232ec7080b36dbffefb201429ab839645ac4
1 parent 44ed979 commit 2406b8c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

rocclr/cmake/ROCclrPAL.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
set(PAL_CLIENT "OCL")
2222

23-
set(PAL_CLIENT_INTERFACE_MAJOR_VERSION 843)
23+
set(PAL_CLIENT_INTERFACE_MAJOR_VERSION 872)
2424
set(GPUOPEN_CLIENT_INTERFACE_MAJOR_VERSION 42)
2525
set(GPUOPEN_CLIENT_INTERFACE_MINOR_VERSION 0)
2626
set(AMD_DK_ROOT $ENV{DK_ROOT})

rocclr/device/pal/palsignal.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ uint64_t Signal::Wait(uint64_t value, device::Signal::Condition c, uint64_t time
127127
Pal::Result result = Pal::Result::Success;
128128

129129
float timeoutInSec = timeout / (1000 * 1000);
130-
result = event_.Wait(timeoutInSec);
130+
result = event_.Wait(Util::fseconds{timeoutInSec});
131131

132132
if ((result != Pal::Result::Success) && (result != Pal::Result::Timeout)) {
133133
return -1;

rocclr/device/pal/palvirtual.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ class VirtualGPU : public device::VirtualDevice {
156156
amd::Os::yield();
157157
continue;
158158
}
159-
result = iDev_->WaitForFences(1, &iCmdFences_[cbId], true, WaitTimeoutInNsec);
159+
result = iDev_->WaitForFences(1, &iCmdFences_[cbId], true,
160+
std::chrono::nanoseconds{WaitTimeoutInNsec});
160161
if (Pal::Result::Success == result) {
161162
break;
162163
} else if ((Pal::Result::NotReady == result) || (Pal::Result::Timeout == result)) {

0 commit comments

Comments
 (0)