forked from oneapi-src/unified-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request oneapi-src#1997 from igchor/cts_kernel_test
[CTS] Add test that submits kernelLaunch and USMMemcpy interchangeably
- Loading branch information
Showing
7 changed files
with
1,356 additions
and
860 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (C) 2024 Intel Corporation | ||
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See LICENSE.TXT | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
#include <sycl/sycl.hpp> | ||
|
||
int main() { | ||
|
||
const size_t inputSize = 1; | ||
sycl::queue sycl_queue; | ||
uint32_t *inputArray = sycl::malloc_shared<uint32_t>(inputSize, sycl_queue); | ||
|
||
sycl_queue.submit([&](sycl::handler &cgh) { | ||
cgh.parallel_for<class IncrementBy1>( | ||
sycl::range<1>(inputSize), | ||
[=](sycl::id<1> itemID) { inputArray[itemID] += 1; }); | ||
}); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,717 changes: 859 additions & 858 deletions
1,717
test/conformance/enqueue/enqueue_adapter_level_zero_v2.match
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.