Skip to content

Commit

Permalink
[SYCL][COMPAT] Fix memory_management_test3 (intel#14080)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
AidanBeltonS authored and ianayl committed Jun 13, 2024
1 parent 77c2a78 commit 04e4ee3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sycl/test-e2e/syclcompat/memory/memory_management_test3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
//
//
// ===----------------------------------------------------------------------===//
// https://github.com/intel/llvm/issues/14086
// UNSUPPORTED: gpu-intel-gen12 && linux
// RUN: %clangxx -std=c++20 -fsycl -fsycl-targets=%{sycl_triple} %s -o %t.out
// RUN: %{run} %t.out

Expand Down Expand Up @@ -69,8 +67,7 @@ void test_free_memory_q() {
void test_wait_and_free_memory() {
std::cout << __PRETTY_FUNCTION__ << std::endl;

sycl::queue q{{sycl::property::queue::in_order()}};
float *d_A = (float *)syclcompat::malloc(sizeof(float), q);
float *d_A = (float *)syclcompat::malloc(sizeof(float));
syclcompat::wait_and_free((void *)d_A);

syclcompat::wait_and_free(0);
Expand Down

0 comments on commit 04e4ee3

Please sign in to comment.