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

Commit fb19d49

Browse files
authored
[SYCL][HIP] Adding basic atomics for HIP (#1510)
1 parent 7484d86 commit fb19d49

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+4
-155
lines changed

SYCL/AtomicRef/add.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// See https://github.com/intel/llvm-test-suite/issues/867 for detailed status
2-
// UNSUPPORTED: hip
3-
41
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -fsycl-device-code-split=per_kernel -fsycl-targets=%sycl_triple %s -o %t.out
52
// RUN: %GPU_RUN_PLACEHOLDER %t.out
63
// RUN: %CPU_RUN_PLACEHOLDER %t.out

SYCL/AtomicRef/add_generic.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend have had no support for the generic address space yet
7-
// XFAIL: hip
8-
96
#include "add.h"
107

118
int main() { add_test_all<access::address_space::generic_space>(); }

SYCL/AtomicRef/add_generic_local.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend have had no support for the generic address space yet.
7-
// XFAIL: hip
8-
96
#define TEST_GENERIC_IN_LOCAL 1
107

118
#include "add.h"

SYCL/AtomicRef/add_generic_local_native_fp.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend have had no support for the generic address space yet.
7-
// XFAIL: hip
8-
96
#define SYCL_USE_NATIVE_FP_ATOMICS
107
#define FP_TESTS_ONLY
118
#define TEST_GENERIC_IN_LOCAL 1

SYCL/AtomicRef/add_generic_native_fp.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend have had no support for the generic address space yet.
7-
// HIP does not support native floating point atomics
8-
// XFAIL: hip
9-
106
#define SYCL_USE_NATIVE_FP_ATOMICS
117
#define FP_TESTS_ONLY
128

SYCL/AtomicRef/add_local.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// See https://github.com/intel/llvm-test-suite/issues/867 for detailed status
2-
// UNSUPPORTED: hip
3-
41
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -fsycl-targets=%sycl_triple %s -o %t.out
52
// RUN: %GPU_RUN_PLACEHOLDER %t.out
63
// RUN: %CPU_RUN_PLACEHOLDER %t.out

SYCL/AtomicRef/add_local_native_fp.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP does not support floating point atomics.
7-
// XFAIL: hip
8-
96
#define SYCL_USE_NATIVE_FP_ATOMICS
107
#define FP_TESTS_ONLY
118

SYCL/AtomicRef/add_native_fp.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// hip does not support native floating point atomics
7-
// XFAIL: hip
8-
96
#define SYCL_USE_NATIVE_FP_ATOMICS
107
#define FP_TESTS_ONLY
118

SYCL/AtomicRef/and_generic.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend have had no support for the generic address space yet
7-
// XFAIL: hip
8-
96
#include "and.h"
107

118
int main() { and_test_all<access::address_space::generic_space>(); }

SYCL/AtomicRef/and_generic_local.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend have had no support for the generic address space yet.
7-
// XFAIL: hip
8-
96
#define TEST_GENERIC_IN_LOCAL 1
107

118
#include "and.h"

SYCL/AtomicRef/assignment_atomic64_generic.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %GPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend has had no support for the generic address space yet.
7-
// XFAIL: hip
8-
96
#include "assignment.h"
107
#include <iostream>
118
using namespace sycl;

SYCL/AtomicRef/assignment_generic.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %GPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend has had no support for the generic address space yet
7-
// XFAIL: hip
8-
96
#include "assignment.h"
107
#include <iostream>
118
using namespace sycl;

SYCL/AtomicRef/atomic_memory_order.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// RUN: %CPU_RUN_PLACEHOLDER %t.out
33
// RUN: %GPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
5-
// L0, OpenCL, and HIP backends don't currently support
5+
// L0, OpenCL backends don't currently support
66
// info::device::atomic_memory_order_capabilities
7-
// UNSUPPORTED: level_zero || opencl || hip
7+
// UNSUPPORTED: level_zero || opencl
88

99
// NOTE: General tests for atomic memory order capabilities.
1010

SYCL/AtomicRef/atomic_memory_order_acq_rel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55
// L0, OpenCL, and HIP backends don't currently support
66
// info::device::atomic_memory_order_capabilities
7-
// UNSUPPORTED: level_zero, opencl, hip
7+
// UNSUPPORTED: level_zero, opencl
88

99
// NOTE: Tests fetch_add for acquire and release memory ordering.
1010

SYCL/AtomicRef/atomic_memory_order_seq_cst.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55
// L0, OpenCL, and HIP backends don't currently support
66
// info::device::atomic_memory_order_capabilities
7-
// UNSUPPORTED: level_zero, opencl, hip
7+
// UNSUPPORTED: level_zero, opencl
88

99
#include "atomic_memory_order.h"
1010
#include <iostream>

SYCL/AtomicRef/compare_exchange_generic.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend has had no support for the generic address space yet
7-
// XFAIL: hip
8-
96
#include "compare_exchange.h"
107

118
int main() {

SYCL/AtomicRef/compare_exchange_generic_local.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend has had no support for the generic address space yet.
7-
// XFAIL: hip
8-
96
#define TEST_GENERIC_IN_LOCAL 1
107

118
#include "compare_exchange.h"

SYCL/AtomicRef/exchange_generic.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend have had no support for the generic address space yet
7-
// XFAIL: hip
8-
96
#include "exchange.h"
107

118
int main() { exchange_test_all<access::address_space::generic_space>(); }

SYCL/AtomicRef/exchange_generic_local.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend have had no support for the generic address space yet.
7-
// XFAIL: hip
8-
96
#define TEST_GENERIC_IN_LOCAL 1
107

118
#include "exchange.h"

SYCL/AtomicRef/load_generic.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend has had no support for the generic address space yet
7-
// XFAIL: hip
8-
96
#include "load.h"
107

118
int main() { load_test_all<access::address_space::generic_space>(); }

SYCL/AtomicRef/load_generic_local.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend has had no support for the generic address space yet.
7-
// XFAIL: hip
8-
96
#define TEST_GENERIC_IN_LOCAL 1
107

118
#include "load.h"

SYCL/AtomicRef/max.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// See https://github.com/intel/llvm-test-suite/issues/867 for detailed status
2-
// UNSUPPORTED: hip
3-
41
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -fsycl-targets=%sycl_triple %s -o %t.out
52
// RUN: %GPU_RUN_PLACEHOLDER %t.out
63
// RUN: %CPU_RUN_PLACEHOLDER %t.out

SYCL/AtomicRef/max_generic.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend has had no support for the generic address space yet
7-
// XFAIL: hip
8-
96
#include "max.h"
107

118
int main() { max_test_all<access::address_space::generic_space>(); }

SYCL/AtomicRef/max_generic_local.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend has had no support for the generic address space yet.
7-
// XFAIL: hip
8-
96
#define TEST_GENERIC_IN_LOCAL 1
107

118
#include "max.h"

SYCL/AtomicRef/max_generic_local_native_fp.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend has had no support for the generic address space yet.
7-
// HIP dees not support native floating point atomics
8-
// XFAIL: hip
9-
106
#define SYCL_USE_NATIVE_FP_ATOMICS
117
#define FP_TESTS_ONLY
128
#define TEST_GENERIC_IN_LOCAL 1

SYCL/AtomicRef/max_generic_native_fp.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend has had no support for the generic address space yet.
7-
// HIP does not support native floating point atomics
8-
// XFAIL: hip
9-
106
#define SYCL_USE_NATIVE_FP_ATOMICS
117
#define FP_TESTS_ONLY
128

SYCL/AtomicRef/max_local.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP does not support floating point atomics.
7-
// UNSUPPORTED: hip
8-
96
#include "max.h"
107

118
int main() { max_test_all<access::address_space::local_space>(); }

SYCL/AtomicRef/max_local_native_fp.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP does not support native floating point atomics
7-
// XFAIL: hip
8-
96
#define SYCL_USE_NATIVE_FP_ATOMICS
107
#define FP_TESTS_ONLY
118

SYCL/AtomicRef/max_native_fp.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP does not support native floating point atomics
7-
// XFAIL: hip
8-
96
#define SYCL_USE_NATIVE_FP_ATOMICS
107
#define FP_TESTS_ONLY
118

SYCL/AtomicRef/min.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// See https://github.com/intel/llvm-test-suite/issues/867 for detailed status
2-
// UNSUPPORTED: hip
3-
41
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -fsycl-targets=%sycl_triple %s -o %t.out
52
// RUN: %GPU_RUN_PLACEHOLDER %t.out
63
// RUN: %CPU_RUN_PLACEHOLDER %t.out

SYCL/AtomicRef/min_generic.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend has had no support for the generic address space yet
7-
// XFAIL: hip
8-
96
#include "min.h"
107

118
int main() { min_test_all<access::address_space::generic_space>(); }

SYCL/AtomicRef/min_generic_local.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend has had no support for the generic address space yet
7-
// XFAIL: hip
8-
96
#define TEST_GENERIC_IN_LOCAL 1
107

118
#include "min.h"

SYCL/AtomicRef/min_generic_local_native_fp.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend has had no support for the generic address space yet.
7-
// HIP does not support native floating point atomics
8-
// XFAIL: hip
9-
106
#define SYCL_USE_NATIVE_FP_ATOMICS
117
#define FP_TESTS_ONLY
128
#define TEST_GENERIC_IN_LOCAL 1

SYCL/AtomicRef/min_generic_native_fp.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend has had no support for the generic address space yet.
7-
// HIP does not support native floating point atomics
8-
// XFAIL: hip
9-
106
#define SYCL_USE_NATIVE_FP_ATOMICS
117
#define FP_TESTS_ONLY
128

SYCL/AtomicRef/min_local.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// See https://github.com/intel/llvm-test-suite/issues/867 for detailed status
2-
// UNSUPPORTED: hip
3-
41
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -fsycl-targets=%sycl_triple %s -o %t.out
52
// RUN: %GPU_RUN_PLACEHOLDER %t.out
63
// RUN: %CPU_RUN_PLACEHOLDER %t.out

SYCL/AtomicRef/min_local_native_fp.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP does not support native floating point atomics
7-
// XFAIL: hip
8-
96
#define SYCL_USE_NATIVE_FP_ATOMICS
107
#define FP_TESTS_ONLY
118

SYCL/AtomicRef/min_native_fp.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP does not support native floating point atomics
7-
// XFAIL: hip
8-
96
#define SYCL_USE_NATIVE_FP_ATOMICS
107
#define FP_TESTS_ONLY
118

SYCL/AtomicRef/or_generic.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend have had no support for the generic address space yet
7-
// XFAIL: hip
8-
96
#include "or.h"
107

118
int main() { or_test_all<access::address_space::generic_space>(); }

SYCL/AtomicRef/or_generic_local.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend have had no support for the generic address space yet.
7-
// XFAIL: hip
8-
96
#define TEST_GENERIC_IN_LOCAL 1
107

118
#include "or.h"

SYCL/AtomicRef/store_generic.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend has no support for the generic address space yet
7-
// XFAIL: hip
8-
96
#include "store.h"
107

118
int main() { store_test_all<access::address_space::generic_space>(); }

SYCL/AtomicRef/store_generic_local.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP backend has no support for the generic address space yet
7-
// XFAIL: hip
8-
96
#define TEST_GENERIC_IN_LOCAL 1
107

118
#include "store.h"

0 commit comments

Comments
 (0)