Skip to content

Commit d1888a5

Browse files
committed
Fix broken test for acpp
1 parent 1ce686a commit d1888a5

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

‎.github/workflows/adaptivecpp-build.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
conda install -y ${{ env.CHANNELS }} \
7575
"python=${{ matrix.python_spec }}" \
7676
"adaptivecpp=*=cpu_llvm19*" "clang=19.*" "clangxx=19.*" \
77-
intel-opencl-rt tbb \
77+
intel-opencl-rt \
7878
cmake cython ninja numpy pybind11 pytest scikit-build "setuptools<80" versioneer
7979
8080
- name: Report the environment

‎dpctl/tests/test_sycl_queue.py‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,14 @@ def test_queue_memops():
348348
with pytest.raises(TypeError):
349349
q.memcpy([], m2, 512)
350350

351-
if not is_wsl_or_windows():
351+
# AdaptiveCpp prefetches by migrating the allocation to the device, which
352+
# the OpenCL CPU runtime rejects with CL_INVALID_VALUE
353+
acpp_opencl_cpu = (
354+
is_adaptivecpp()
355+
and q.sycl_device.backend == dpctl.backend_type.opencl
356+
and q.sycl_device.has_aspect_cpu
357+
)
358+
if not is_wsl_or_windows() and not acpp_opencl_cpu:
352359
q.prefetch(m1, 512)
353360
with pytest.raises(TypeError):
354361
q.prefetch([], 512)

0 commit comments

Comments
 (0)