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

[SYCL][CUDA] Enable tests for generic atomics #929

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/add_generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet
// XFAIL: cuda || hip
// HIP backend has no support for the generic address space yet
// XFAIL: hip

#include "add.h"

Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/add_generic_local.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet.
// HIP backend has no support for the generic address space yet.
// Host does not support barrier.
// XFAIL: cuda || hip || host
// XFAIL: hip || host

#define TEST_GENERIC_IN_LOCAL 1

Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/add_generic_local_native_fp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet.
// HIP backend has no support for the generic address space yet.
// Host does not support barrier. HIP does not support native floating point
// atomics
// XFAIL: cuda, hip, host
// XFAIL: hip, host

#define SYCL_USE_NATIVE_FP_ATOMICS
#define FP_TESTS_ONLY
Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/add_generic_native_fp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet.
// HIP backend has had no support for the generic address space yet.
// HIP does not support native floating point atomics
// XFAIL: cuda, hip
// XFAIL: hip

#define SYCL_USE_NATIVE_FP_ATOMICS
#define FP_TESTS_ONLY
Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/and_generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet
// XFAIL: cuda || hip
// HIP backend has had no support for the generic address space yet
// XFAIL: hip

#include "and.h"

Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/and_generic_local.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet.
// HIP backend has no support for the generic address space yet.
// Host does not support barrier.
// XFAIL: cuda || hip || host
// XFAIL: hip || host

#define TEST_GENERIC_IN_LOCAL 1

Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/assignment_atomic64_generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA backend has had no support for the generic address space yet
// XFAIL: cuda || hip
// HIP backend has no support for the generic address space yet
// XFAIL: hip

#include "assignment.h"
#include <iostream>
Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/assignment_generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA backend has had no support for the generic address space yet
// XFAIL: cuda || hip
// HIP backend has no support for the generic address space yet
// XFAIL: hip

#include "assignment.h"
#include <iostream>
Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/compare_exchange_generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet
// XFAIL: cuda || hip
// HIP backend has no support for the generic address space yet
// XFAIL: hip

#include "compare_exchange.h"

Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/compare_exchange_generic_local.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet.
// HIP backend has no support for the generic address space yet.
// Host does not support barrier.
// XFAIL: cuda || hip || host
// XFAIL: hip || host

#define TEST_GENERIC_IN_LOCAL 1

Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/exchange_generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet
// XFAIL: cuda || hip
// HIP backend has no support for the generic address space yet
// XFAIL: hip

#include "exchange.h"

Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/exchange_generic_local.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet.
// HIP backend has no support for the generic address space yet.
// Host does not support barrier.
// XFAIL: cuda || hip || host
// XFAIL: hip || host

#define TEST_GENERIC_IN_LOCAL 1

Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/load_generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet
// XFAIL: cuda || hip
// HIP backend has no support for the generic address space yet
// XFAIL: hip

#include "load.h"

Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/load_generic_local.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA backend has had no support for the generic address space yet. Barrier is
// HIP backend has no support for the generic address space yet. Barrier is
// not supported on host.
// XFAIL: cuda, hip, host
// XFAIL: hip, host

#define TEST_GENERIC_IN_LOCAL 1

Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/max_generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet
// XFAIL: cuda || hip
// HIP backend has no support for the generic address space yet
// XFAIL: hip

#include "max.h"

Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/max_generic_local.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet.
// HIP backend has no support for the generic address space yet.
// Host does not support barrier.
// XFAIL: cuda || hip || host
// XFAIL: hip || host

#define TEST_GENERIC_IN_LOCAL 1

Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/max_generic_local_native_fp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet.
// HIP backend has no support for the generic address space yet.
// Host does not support barrier. HIP dees not support native floating point
// atomics
// XFAIL: cuda, hip, host
// XFAIL: hip, host

#define SYCL_USE_NATIVE_FP_ATOMICS
#define FP_TESTS_ONLY
Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/max_generic_native_fp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet.
// HIP backend has no support for the generic address space yet.
// HIP does not support native floating point atomics
// XFAIL: cuda, hip
// XFAIL: hip

#define SYCL_USE_NATIVE_FP_ATOMICS
#define FP_TESTS_ONLY
Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/min_generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet
// XFAIL: cuda || hip
// HIP backend has no support for the generic address space yet
// XFAIL: hip

#include "min.h"

Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/min_generic_local.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet.
// HIP backend has no support for the generic address space yet.
// Host does not support barrier.
// XFAIL: cuda || hip || host
// XFAIL: hip || host

#define TEST_GENERIC_IN_LOCAL 1

Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/min_generic_local_native_fp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet.
// HIP backend has no support for the generic address space yet.
// Host does not support barrier. HIP does not support native floating point
// atomics
// XFAIL: cuda, hip, host
// XFAIL: hip, host

#define SYCL_USE_NATIVE_FP_ATOMICS
#define FP_TESTS_ONLY
Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/min_generic_native_fp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet.
// HIP backend has no support for the generic address space yet.
// HIP does not support native floating point atomics
// XFAIL: cuda, hip
// XFAIL: hip

#define SYCL_USE_NATIVE_FP_ATOMICS
#define FP_TESTS_ONLY
Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/or_generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet
// XFAIL: cuda || hip
// HIP backend has no support for the generic address space yet
// XFAIL: hip

#include "or.h"

Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/or_generic_local.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet.
// HIP backend has no support for the generic address space yet.
// Host does not support barrier.
// XFAIL: cuda || hip || host
// XFAIL: hip || host

#define TEST_GENERIC_IN_LOCAL 1

Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/store_generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have no support for the generic address space yet
// XFAIL: cuda, hip
// HIP backend has no support for the generic address space yet
// XFAIL: hip

#include "store.h"

Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/store_generic_local.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have no support for the generic address space yet.
// HIP backend has no support for the generic address space yet.
// Barrier is not supported on host.
// XFAIL: cuda, hip, host
// XFAIL: hip, host

#define TEST_GENERIC_IN_LOCAL 1

Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/sub_generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet
// XFAIL: cuda || hip
// HIP backend has no support for the generic address space yet
// XFAIL: hip

#include "sub.h"

Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/sub_generic_local.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet.
// HIP backend has no support for the generic address space yet.
// Host does not support barrier.
// XFAIL: cuda || hip || host
// XFAIL: hip || host

#define TEST_GENERIC_IN_LOCAL 1
#include "sub.h"
Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/sub_generic_local_native_fp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet.
// HIP backend has no support for the generic address space yet.
// Host does not support barrier. HIP does not support native floating point
// atomics
// XFAIL: cuda, hip, host
// XFAIL: hip, host

#define SYCL_USE_NATIVE_FP_ATOMICS
#define FP_TESTS_ONLY
Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/sub_generic_native_fp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet.
// HIP backend has no support for the generic address space yet.
// HIP does not support native floating point atomics
// XFAIL: cuda, hip
// XFAIL: hip

#define SYCL_USE_NATIVE_FP_ATOMICS
#define FP_TESTS_ONLY
Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/xor_generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet
// XFAIL: cuda || hip
// HIP backend has no support for the generic address space yet
// XFAIL: hip

#include "xor.h"

Expand Down
4 changes: 2 additions & 2 deletions SYCL/AtomicRef/xor_generic_local.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// CUDA and HIP backends have had no support for the generic address space yet.
// HIP backend has no support for the generic address space yet.
// Host does not support barrier.
// XFAIL: cuda || hip || host
// XFAIL: hip || host

#define TEST_GENERIC_IN_LOCAL 1

Expand Down