File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
offload/unittests/OffloadAPI Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,18 @@ struct OffloadDeviceTest
7373 GTEST_SKIP () << " No available devices." ;
7474 }
7575
76+ ol_platform_backend_t getPlatformBackend () const {
77+ ol_platform_handle_t Platform = nullptr ;
78+ if (olGetDeviceInfo (Device, OL_DEVICE_INFO_PLATFORM,
79+ sizeof (ol_platform_handle_t ), &Platform))
80+ return OL_PLATFORM_BACKEND_UNKNOWN;
81+ ol_platform_backend_t Backend;
82+ if (olGetPlatformInfo (Platform, OL_PLATFORM_INFO_BACKEND,
83+ sizeof (ol_platform_backend_t ), &Backend))
84+ return OL_PLATFORM_BACKEND_UNKNOWN;
85+ return Backend;
86+ }
87+
7688 ol_device_handle_t Device = nullptr ;
7789};
7890
@@ -159,6 +171,8 @@ struct OffloadQueueTest : OffloadDeviceTest {
159171struct OffloadEventTest : OffloadQueueTest {
160172 void SetUp () override {
161173 RETURN_ON_FATAL_FAILURE (OffloadQueueTest::SetUp ());
174+ if (getPlatformBackend () == OL_PLATFORM_BACKEND_AMDGPU)
175+ GTEST_SKIP () << " AMDGPU synchronize event not implemented" ;
162176
163177 // Get an event from a memcpy. We can still use it in olGetEventInfo etc
164178 // after it has been waited on.
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ using olWaitEventTest = OffloadQueueTest;
1414OFFLOAD_TESTS_INSTANTIATE_DEVICE_FIXTURE (olWaitEventTest);
1515
1616TEST_P (olWaitEventTest, Success) {
17+ if (getPlatformBackend () == OL_PLATFORM_BACKEND_AMDGPU)
18+ GTEST_SKIP () << " AMDGPU synchronize event not implemented" ;
19+
1720 uint32_t Src = 42 ;
1821 void *DstPtr;
1922
You can’t perform that action at this time.
0 commit comments