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
73
73
GTEST_SKIP () << " No available devices." ;
74
74
}
75
75
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
+
76
88
ol_device_handle_t Device = nullptr ;
77
89
};
78
90
@@ -159,6 +171,8 @@ struct OffloadQueueTest : OffloadDeviceTest {
159
171
struct OffloadEventTest : OffloadQueueTest {
160
172
void SetUp () override {
161
173
RETURN_ON_FATAL_FAILURE (OffloadQueueTest::SetUp ());
174
+ if (getPlatformBackend () == OL_PLATFORM_BACKEND_AMDGPU)
175
+ GTEST_SKIP () << " AMDGPU synchronize event not implemented" ;
162
176
163
177
// Get an event from a memcpy. We can still use it in olGetEventInfo etc
164
178
// after it has been waited on.
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ using olWaitEventTest = OffloadQueueTest;
14
14
OFFLOAD_TESTS_INSTANTIATE_DEVICE_FIXTURE (olWaitEventTest);
15
15
16
16
TEST_P (olWaitEventTest, Success) {
17
+ if (getPlatformBackend () == OL_PLATFORM_BACKEND_AMDGPU)
18
+ GTEST_SKIP () << " AMDGPU synchronize event not implemented" ;
19
+
17
20
uint32_t Src = 42 ;
18
21
void *DstPtr;
19
22
You can’t perform that action at this time.
0 commit comments