Skip to content

[SYCL] Fix buffer range in atomic_memory_order_acq_rel #9111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 19, 2023
Merged
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
10 changes: 4 additions & 6 deletions sycl/test-e2e/AtomicRef/atomic_memory_order_acq_rel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// https://github.com/intel/llvm/issues/8847
// REQUIRES: TEMPORARY_DISABLED
// NOTE: Tests fetch_add for acquire and release memory ordering.

#include "atomic_memory_order.h"
Expand All @@ -22,7 +20,7 @@ template <memory_order order> void test_acquire_global() {
queue q;
{
buffer<int> error_buf(&error, 1);
buffer<int> val_buf(val, 1);
buffer<int> val_buf(val, 2);

q.submit([&](handler &cgh) {
auto error =
Expand Down Expand Up @@ -66,7 +64,7 @@ template <memory_order order> void test_acquire_local() {
queue q;
{
buffer<int> error_buf(&error, 1);
buffer<int> val_buf(val, 1);
buffer<int> val_buf(val, 2);

q.submit([&](handler &cgh) {
auto error =
Expand Down Expand Up @@ -113,7 +111,7 @@ template <memory_order order> void test_release_global() {
queue q;
{
buffer<int> error_buf(&error, 1);
buffer<int> val_buf(val, 1);
buffer<int> val_buf(val, 2);

q.submit([&](handler &cgh) {
auto error =
Expand Down Expand Up @@ -157,7 +155,7 @@ template <memory_order order> void test_release_local() {
queue q;
{
buffer<int> error_buf(&error, 1);
buffer<int> val_buf(val, 1);
buffer<int> val_buf(val, 2);

q.submit([&](handler &cgh) {
auto error =
Expand Down