Skip to content

Commit

Permalink
SWDEV-1 - Switch PAL to the interface version 872
Browse files Browse the repository at this point in the history
Change-Id: I71ef232ec7080b36dbffefb201429ab839645ac4
  • Loading branch information
gandryey committed May 22, 2024
1 parent 44ed979 commit 2406b8c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rocclr/cmake/ROCclrPAL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

set(PAL_CLIENT "OCL")

set(PAL_CLIENT_INTERFACE_MAJOR_VERSION 843)
set(PAL_CLIENT_INTERFACE_MAJOR_VERSION 872)
set(GPUOPEN_CLIENT_INTERFACE_MAJOR_VERSION 42)
set(GPUOPEN_CLIENT_INTERFACE_MINOR_VERSION 0)
set(AMD_DK_ROOT $ENV{DK_ROOT})
Expand Down
2 changes: 1 addition & 1 deletion rocclr/device/pal/palsignal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ uint64_t Signal::Wait(uint64_t value, device::Signal::Condition c, uint64_t time
Pal::Result result = Pal::Result::Success;

float timeoutInSec = timeout / (1000 * 1000);
result = event_.Wait(timeoutInSec);
result = event_.Wait(Util::fseconds{timeoutInSec});

if ((result != Pal::Result::Success) && (result != Pal::Result::Timeout)) {
return -1;
Expand Down
3 changes: 2 additions & 1 deletion rocclr/device/pal/palvirtual.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ class VirtualGPU : public device::VirtualDevice {
amd::Os::yield();
continue;
}
result = iDev_->WaitForFences(1, &iCmdFences_[cbId], true, WaitTimeoutInNsec);
result = iDev_->WaitForFences(1, &iCmdFences_[cbId], true,
std::chrono::nanoseconds{WaitTimeoutInNsec});
if (Pal::Result::Success == result) {
break;
} else if ((Pal::Result::NotReady == result) || (Pal::Result::Timeout == result)) {
Expand Down

0 comments on commit 2406b8c

Please sign in to comment.