Skip to content

Commit 8d41246

Browse files
Fix enqueue-arg-order-image test on CUDA (intel#174)
The test checks the arguments passed to piMemImageCreate, several of which are only set if a host pointer is passed. Since whether or not that pointer is passed depends on host unified memory support, enforce it for this test.
1 parent 4f93724 commit 8d41246

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

SYCL/Plugin/enqueue-arg-order-image.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: env SYCL_PI_TRACE=2 %GPU_RUN_PLACEHOLDER %t.out %GPU_CHECK_PLACEHOLDER
3-
// RUN: env SYCL_PI_TRACE=2 %CPU_RUN_PLACEHOLDER %t.out %CPU_CHECK_PLACEHOLDER
2+
// Native images are created with host pointers only with host unified memory
3+
// support, enforce it for this test.
4+
// RUN: env SYCL_HOST_UNIFIED_MEMORY=1 SYCL_PI_TRACE=2 %GPU_RUN_PLACEHOLDER %t.out %GPU_CHECK_PLACEHOLDER
5+
// RUN: env SYCL_HOST_UNIFIED_MEMORY=1 SYCL_PI_TRACE=2 %CPU_RUN_PLACEHOLDER %t.out %CPU_CHECK_PLACEHOLDER
46

57
#include <CL/sycl.hpp>
68
#include <CL/sycl/accessor.hpp>

0 commit comments

Comments
 (0)