Skip to content

Commit 76ef4d5

Browse files
authored
Merge pull request #1997 from igchor/cts_kernel_test
[CTS] Add test that submits kernelLaunch and USMMemcpy interchangeably
2 parents cded5d9 + e4de74f commit 76ef4d5

File tree

7 files changed

+1356
-860
lines changed

7 files changed

+1356
-860
lines changed

test/conformance/device_code/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ add_device_binary(${CMAKE_CURRENT_SOURCE_DIR}/fill_usm.cpp)
144144
add_device_binary(${CMAKE_CURRENT_SOURCE_DIR}/foo.cpp)
145145
add_device_binary(${CMAKE_CURRENT_SOURCE_DIR}/image_copy.cpp)
146146
add_device_binary(${CMAKE_CURRENT_SOURCE_DIR}/inc.cpp)
147+
add_device_binary(${CMAKE_CURRENT_SOURCE_DIR}/increment.cpp)
147148
add_device_binary(${CMAKE_CURRENT_SOURCE_DIR}/mean.cpp)
148149
add_device_binary(${CMAKE_CURRENT_SOURCE_DIR}/cpy_and_mult.cpp)
149150
add_device_binary(${CMAKE_CURRENT_SOURCE_DIR}/cpy_and_mult_usm.cpp)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Copyright (C) 2024 Intel Corporation
2+
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions.
3+
// See LICENSE.TXT
4+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5+
6+
#include <sycl/sycl.hpp>
7+
8+
int main() {
9+
10+
const size_t inputSize = 1;
11+
sycl::queue sycl_queue;
12+
uint32_t *inputArray = sycl::malloc_shared<uint32_t>(inputSize, sycl_queue);
13+
14+
sycl_queue.submit([&](sycl::handler &cgh) {
15+
cgh.parallel_for<class IncrementBy1>(
16+
sycl::range<1>(inputSize),
17+
[=](sycl::id<1> itemID) { inputArray[itemID] += 1; });
18+
});
19+
return 0;
20+
}

test/conformance/enqueue/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ add_conformance_test_with_kernels_environment(enqueue
99
urEnqueueEventsWait.cpp
1010
urEnqueueEventsWaitWithBarrier.cpp
1111
urEnqueueKernelLaunch.cpp
12+
urEnqueueKernelLaunchAndMemcpyInOrder.cpp
1213
urEnqueueMemBufferCopyRect.cpp
1314
urEnqueueMemBufferCopy.cpp
1415
urEnqueueMemBufferFill.cpp

test/conformance/enqueue/enqueue_adapter_level_zero_v2.match

Lines changed: 859 additions & 858 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)