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

Commit 06f7e96

Browse files
authored
[SYCL] Disable AtomicRef tests on accelerator (#48)
Atomics are not supported for FPGA emulator device
1 parent a0d367e commit 06f7e96

File tree

9 files changed

+0
-41
lines changed

9 files changed

+0
-41
lines changed

SYCL/AtomicRef/accessor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// RUN: %HOST_RUN_PLACEHOLDER %t.out
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
65

76
#include <CL/sycl.hpp>
87
#include <algorithm>

SYCL/AtomicRef/add.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// RUN: %HOST_RUN_PLACEHOLDER %t.out
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
65

76
#include <CL/sycl.hpp>
87
#include <algorithm>
@@ -178,10 +177,6 @@ template <> void add_test<double>(queue q, size_t N) {
178177
int main() {
179178
queue q;
180179
std::string version = q.get_device().get_info<info::device::version>();
181-
if (version < std::string("2.0")) {
182-
std::cout << "Skipping test\n";
183-
return 0;
184-
}
185180

186181
constexpr int N = 32;
187182
add_test<int>(q, N);

SYCL/AtomicRef/compare_exchange.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// RUN: %HOST_RUN_PLACEHOLDER %t.out
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
65

76
#include <CL/sycl.hpp>
87
#include <algorithm>
@@ -58,10 +57,6 @@ template <typename T> void compare_exchange_test(queue q, size_t N) {
5857
int main() {
5958
queue q;
6059
std::string version = q.get_device().get_info<info::device::version>();
61-
if (version < std::string("2.0")) {
62-
std::cout << "Skipping test\n";
63-
return 0;
64-
}
6560

6661
constexpr int N = 32;
6762
compare_exchange_test<int>(q, N);

SYCL/AtomicRef/exchange.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// RUN: %HOST_RUN_PLACEHOLDER %t.out
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
65

76
#include <CL/sycl.hpp>
87
#include <algorithm>
@@ -50,10 +49,6 @@ template <typename T> void exchange_test(queue q, size_t N) {
5049
int main() {
5150
queue q;
5251
std::string version = q.get_device().get_info<info::device::version>();
53-
if (version < std::string("2.0")) {
54-
std::cout << "Skipping test\n";
55-
return 0;
56-
}
5752

5853
constexpr int N = 32;
5954
exchange_test<int>(q, N);

SYCL/AtomicRef/load.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// RUN: %HOST_RUN_PLACEHOLDER %t.out
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
65

76
#include <CL/sycl.hpp>
87
#include <algorithm>
@@ -46,10 +45,6 @@ template <typename T> void load_test(queue q, size_t N) {
4645
int main() {
4746
queue q;
4847
std::string version = q.get_device().get_info<info::device::version>();
49-
if (version < std::string("2.0")) {
50-
std::cout << "Skipping test\n";
51-
return 0;
52-
}
5348

5449
constexpr int N = 32;
5550
load_test<int>(q, N);

SYCL/AtomicRef/max.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// RUN: %HOST_RUN_PLACEHOLDER %t.out
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
65

76
#include <CL/sycl.hpp>
87
#include <algorithm>
@@ -54,10 +53,6 @@ template <typename T> void max_test(queue q, size_t N) {
5453
int main() {
5554
queue q;
5655
std::string version = q.get_device().get_info<info::device::version>();
57-
if (version < std::string("2.0")) {
58-
std::cout << "Skipping test\n";
59-
return 0;
60-
}
6156

6257
constexpr int N = 32;
6358
max_test<int>(q, N);

SYCL/AtomicRef/min.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// RUN: %HOST_RUN_PLACEHOLDER %t.out
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
65

76
#include <CL/sycl.hpp>
87
#include <algorithm>
@@ -52,10 +51,6 @@ template <typename T> void min_test(queue q, size_t N) {
5251
int main() {
5352
queue q;
5453
std::string version = q.get_device().get_info<info::device::version>();
55-
if (version < std::string("2.0")) {
56-
std::cout << "Skipping test\n";
57-
return 0;
58-
}
5954

6055
constexpr int N = 32;
6156
min_test<int>(q, N);

SYCL/AtomicRef/store.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// RUN: %HOST_RUN_PLACEHOLDER %t.out
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
65

76
#include <CL/sycl.hpp>
87
#include <algorithm>
@@ -40,10 +39,6 @@ template <typename T> void store_test(queue q, size_t N) {
4039
int main() {
4140
queue q;
4241
std::string version = q.get_device().get_info<info::device::version>();
43-
if (version < std::string("2.0")) {
44-
std::cout << "Skipping test\n";
45-
return 0;
46-
}
4742

4843
constexpr int N = 32;
4944
store_test<int>(q, N);

SYCL/AtomicRef/sub.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// RUN: %HOST_RUN_PLACEHOLDER %t.out
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
65

76
#include <CL/sycl.hpp>
87
#include <algorithm>
@@ -178,10 +177,6 @@ template <> void sub_test<double>(queue q, size_t N) {
178177
int main() {
179178
queue q;
180179
std::string version = q.get_device().get_info<info::device::version>();
181-
if (version < std::string("2.0")) {
182-
std::cout << "Skipping test\n";
183-
return 0;
184-
}
185180

186181
constexpr int N = 32;
187182
sub_test<int>(q, N);

0 commit comments

Comments
 (0)