This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +20
-5
lines changed Expand file tree Collapse file tree 5 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,10 @@ template <access::address_space space> void and_test_all() {
190
190
queue q;
191
191
192
192
#ifdef ATOMIC64
193
- if (!q.get_device ().has (aspect::atomic64)) {
193
+ if (q.get_device ().get_platform ().get_backend () == backend::ext_oneapi_hip ||
194
+ !q.get_device ().has (aspect::atomic64)) {
195
+ // Also temporarily skip the test if backend = HIP because
196
+ // device.has(aspect::atomic64) is not implemented on it
194
197
std::cout << " Skipping test\n " ;
195
198
return ;
196
199
}
Original file line number Diff line number Diff line change @@ -210,7 +210,10 @@ template <access::address_space space> void compare_exchange_test_all() {
210
210
211
211
constexpr int N = 32 ;
212
212
#ifdef ATOMIC64
213
- if (!q.get_device ().has (aspect::atomic64)) {
213
+ if (q.get_device ().get_platform ().get_backend () == backend::ext_oneapi_hip ||
214
+ !q.get_device ().has (aspect::atomic64)) {
215
+ // Also temporarily skip the test if backend = HIP because
216
+ // device.has(aspect::atomic64) is not implemented on it
214
217
std::cout << " Skipping test\n " ;
215
218
return ;
216
219
}
Original file line number Diff line number Diff line change @@ -193,7 +193,10 @@ template <access::address_space space> void exchange_test_all() {
193
193
194
194
constexpr int N = 32 ;
195
195
#ifdef ATOMIC64
196
- if (!q.get_device ().has (aspect::atomic64)) {
196
+ if (q.get_device ().get_platform ().get_backend () == backend::ext_oneapi_hip ||
197
+ !q.get_device ().has (aspect::atomic64)) {
198
+ // Also temporarily skip the test if backend = HIP because
199
+ // device.has(aspect::atomic64) is not implemented on it
197
200
std::cout << " Skipping test\n " ;
198
201
return ;
199
202
}
Original file line number Diff line number Diff line change @@ -190,7 +190,10 @@ template <access::address_space space> void or_test_all() {
190
190
191
191
constexpr int N = 32 ;
192
192
#ifdef ATOMIC64
193
- if (!q.get_device ().has (aspect::atomic64)) {
193
+ if (q.get_device ().get_platform ().get_backend () == backend::ext_oneapi_hip ||
194
+ !q.get_device ().has (aspect::atomic64)) {
195
+ // Also temporarily skip the test if backend = HIP because
196
+ // device.has(aspect::atomic64) is not implemented on it
194
197
std::cout << " Skipping test\n " ;
195
198
return ;
196
199
}
Original file line number Diff line number Diff line change @@ -191,7 +191,10 @@ template <access::address_space space> void xor_test_all() {
191
191
192
192
constexpr int N = 32 ;
193
193
#ifdef ATOMIC64
194
- if (!q.get_device ().has (aspect::atomic64)) {
194
+ if (q.get_device ().get_platform ().get_backend () == backend::ext_oneapi_hip ||
195
+ !q.get_device ().has (aspect::atomic64)) {
196
+ // Also temporarily skip the test if backend = HIP because
197
+ // device.has(aspect::atomic64) is not implemented on it
195
198
std::cout << " Skipping test\n " ;
196
199
return ;
197
200
}
You can’t perform that action at this time.
0 commit comments