Skip to content

Commit d6a18e1

Browse files
authored
[SYCL][COMPAT] Fix memory_management_test3 (#14080)
This change is intended to fix a CI failure on the OpenCL backend for the `memory_management_test3`. This is because the memory is allocated on a different q to the one it is released on.
1 parent 51a061d commit d6a18e1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

sycl/test-e2e/syclcompat/memory/memory_management_test3.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
//
3030
//
3131
// ===----------------------------------------------------------------------===//
32-
// https://github.com/intel/llvm/issues/14086
33-
// UNSUPPORTED: gpu-intel-gen12 && linux
3432
// RUN: %clangxx -std=c++20 -fsycl -fsycl-targets=%{sycl_triple} %s -o %t.out
3533
// RUN: %{run} %t.out
3634

@@ -69,8 +67,7 @@ void test_free_memory_q() {
6967
void test_wait_and_free_memory() {
7068
std::cout << __PRETTY_FUNCTION__ << std::endl;
7169

72-
sycl::queue q{{sycl::property::queue::in_order()}};
73-
float *d_A = (float *)syclcompat::malloc(sizeof(float), q);
70+
float *d_A = (float *)syclcompat::malloc(sizeof(float));
7471
syclcompat::wait_and_free((void *)d_A);
7572

7673
syclcompat::wait_and_free(0);

0 commit comments

Comments
 (0)