Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit c2d887c

Browse files
committed
Update tests after merge conflict
1 parent f7a1d86 commit c2d887c

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

SYCL/AtomicRef/and.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ template <access::address_space space> void and_test_all() {
190190
queue q;
191191

192192
#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
194197
std::cout << "Skipping test\n";
195198
return;
196199
}

SYCL/AtomicRef/compare_exchange.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,10 @@ template <access::address_space space> void compare_exchange_test_all() {
210210

211211
constexpr int N = 32;
212212
#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
214217
std::cout << "Skipping test\n";
215218
return;
216219
}

SYCL/AtomicRef/exchange.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,10 @@ template <access::address_space space> void exchange_test_all() {
193193

194194
constexpr int N = 32;
195195
#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
197200
std::cout << "Skipping test\n";
198201
return;
199202
}

SYCL/AtomicRef/or.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ template <access::address_space space> void or_test_all() {
190190

191191
constexpr int N = 32;
192192
#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
194197
std::cout << "Skipping test\n";
195198
return;
196199
}

SYCL/AtomicRef/xor.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,10 @@ template <access::address_space space> void xor_test_all() {
191191

192192
constexpr int N = 32;
193193
#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
195198
std::cout << "Skipping test\n";
196199
return;
197200
}

0 commit comments

Comments
 (0)