Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1390 commits
Select commit Hold shift + click to select a range
1c29bbb
[ESIMD] Allow small epsilon in FP division result comparison. (intel/…
kbobrovs Nov 14, 2022
9706152
Add tests for trivial fp16 util functions. (intel/llvm-test-suite#1250)
jinge90 Nov 16, 2022
e451c08
[SYCL] Add test for sorting over sub-group (intel/llvm-test-suite#1380)
romanovvlad Nov 17, 2022
4165920
[SYCL] Add end-to-end tests for queue shortcut functions (intel/llvm-…
Nov 17, 2022
277942d
[SYCL] Add test for memory clock rate and bus width queries (intel/ll…
againull Nov 17, 2022
a8f030e
[SYCL] Disable sort over sub-group for CUDA and HIP BEs (intel/llvm-t…
romanovvlad Nov 18, 2022
58b4842
[SYCL][ESIMD] Enable ctor_broadcast_fp_extra ESIMD test (intel/llvm-t…
steffenlarsen Nov 18, 2022
204ea3e
[SYCL] Test exception throwing for unsupported kernel feature (intel/…
KornevNikita Nov 21, 2022
93b4cf1
[SYCL] Fix typo (intel/llvm-test-suite#1399)
raaiq1 Nov 21, 2022
f12037b
[SYCL] Add a new query test that uses the new API (intel/llvm-test-su…
dkhaldi Nov 21, 2022
3436cc3
[SYCL] Add a test with reduction kernel accepting sycl::item (intel/l…
aelovikov-intel Nov 22, 2022
b9f7014
[SYCL][Reduction] Add a test for range+multiple reds version (intel/l…
aelovikov-intel Nov 22, 2022
6da932a
[SYCL] Remove CL namespace from level_zero_sub_sub_device.cpp (intel/…
raaiq1 Nov 23, 2022
b61a984
[LIT][SYCL] Avoid fp64 support requirement (intel/llvm-test-suite#1410)
romanovvlad Nov 23, 2022
2ed479d
[SYCL][Level Zero][USM] Add a test for read-only shared alloc (intel/…
aelovikov-intel Nov 24, 2022
f0e0fba
[SYCL] Temporarily disable KernelAndProgram/kernel-bundle-merge-optio…
aelovikov-intel Nov 24, 2022
d7b225b
[SYCL] Add a test targeting internal reduction APIs (intel/llvm-test-…
aelovikov-intel Nov 24, 2022
c7bb457
[SYCL][ESIMD] Check requirements in ctor_broadcast (intel/llvm-test-s…
steffenlarsen Nov 28, 2022
b005dfa
[SYCL][Fusion] Test if kernel fusion API compiles (intel/llvm-test-su…
sommerlukas Nov 28, 2022
07733a8
[SYCL] Lock mutex only for critical region in interop-level-zero-thre…
raaiq1 Nov 28, 2022
74100da
[SYCL] Test corrections after moving bfloat16 support out of experime…
rdeodhar Nov 28, 2022
5ff6db3
[ESIMD] Separate ieee sqrt/div functions from ext_math.cpp test (inte…
v-klochkov Nov 29, 2022
3efc13d
[SYCL] Correct bfloat16 namespace in ESIMD and matrix tests (intel/ll…
steffenlarsen Nov 29, 2022
77f9d52
[SYCL] disable the ZE_DEBUG test that is expected to throw an excepti…
bso-intel Nov 29, 2022
4eff21f
[SYCL][CUDA] Add SM version check to bfloat16 CUDA test (intel/llvm-t…
steffenlarsen Nov 29, 2022
ea83f27
[SYCL] Add support for sycl::ext::oneapi::property::queue::use_priori…
smaslov-intel Nov 29, 2022
162c033
[SYCL] Fix CUDA tests using bfloat16 (intel/llvm-test-suite#1421)
steffenlarsen Nov 30, 2022
c7d10e7
[SYCL] Disable SYCL/Basic/barrier_order.cpp on CUDA (intel/llvm-test-…
aelovikov-intel Nov 30, 2022
1eed057
[SYCL] Test sycl::Is_compatible() (intel/llvm-test-suite#1411)
KornevNikita Dec 1, 2022
18fd4fe
[SYCL] Add target to is_compatible test (intel/llvm-test-suite#1428)
steffenlarsen Dec 1, 2022
ddea59a
[SYCL] Add tests for user-defined reductions extension (intel/llvm-te…
dm-vodopyanov Dec 1, 2022
2df6c33
[SYCL] Disable user defined reductions on CUDA/HIP (intel/llvm-test-s…
Dec 1, 2022
f7b6abc
[SYCL] Add new tests for int8 and bfloat16 automatic transpose and VN…
yubingex007-a11y Dec 2, 2022
d7c704d
[SYCL] Remove InorderQueue/in_order_property_trace.cpp (intel/llvm-te…
aelovikov-intel Dec 2, 2022
9d505d3
[SYCL] Tests for vec/marray math (intel/llvm-test-suite#1002)
JackAKirk Dec 2, 2022
66c9071
[SYCL][Level Zero] Don't expect ZE_MEMORY_ADVICE_SET_READ_MOSTLY for …
aelovikov-intel Dec 2, 2022
bb7c3b6
[SYCL] Fix result check in joint matrix tests (intel/llvm-test-suite#…
steffenlarsen Dec 2, 2022
def5a2f
Revert "[SYCL][HIP] Mark reduction_span_pack.cpp unsupported on hip/a…
dwoodwor-intel Dec 2, 2022
95837f1
[SYC] Disable SYCL/AtomicRef/max_local.cpp on HIP (intel/llvm-test-su…
aelovikov-intel Dec 5, 2022
b0d068c
Set the row major store on B test to xfail on the GPU (intel/llvm-tes…
dkhaldi Dec 5, 2022
3246a40
[SYCL][ESIMD] Fix test compilation issue (intel/llvm-test-suite#1389)
fineg74 Dec 5, 2022
33a3109
[SYCL][ESIMD] Fix test compilation issue (intel/llvm-test-suite#1407)
fineg74 Dec 5, 2022
7565d7b
Disable SYCL/Basic/event_profiling_info.cpp on HIP (intel/llvm-test-s…
aelovikov-intel Dec 5, 2022
d23e387
[SYCL][NFC] Fix documentation typo (intel/llvm-test-suite#1437)
Dec 7, 2022
e980c71
[SYCL][NFC] Separate test logs to improve debugability (intel/llvm-te…
Dec 7, 2022
514ce8e
Add 'spec' tests to SYCL/InvokeSimd (intel/llvm-test-suite#1360)
fveselov Dec 7, 2022
41b269a
[SYCL] Disable failing SYCL/Assert tests on HIP (intel/llvm-test-suit…
aelovikov-intel Dec 7, 2022
945e071
[SYCL][CUDA][HIP] Reflect namespace and path updates to relevant test…
mmoadeli Dec 10, 2022
e39127e
[SYCL] Delete SYCL/USM/shared_read_only.cpp (intel/llvm-test-suite#1447)
aelovikov-intel Dec 12, 2022
26daf5d
[SYCL][ESIMD] Add test to verify refactoring. (intel/llvm-test-suite#…
fineg74 Dec 12, 2022
2c4a22b
[SYCL] Test to check dependency chain for in-order queue between usm&…
againull Dec 13, 2022
4aef157
[SYCL] Test queue::ext_oneapi_empty() API (intel/llvm-test-suite#1427)
againull Dec 13, 2022
3729a15
[SYCL][Level Zero] Add a test for sycl_ext_intel_queue_index extensio…
aelovikov-intel Dec 13, 2022
245a2f3
[SYCL][Level Zero] Add a test for sycl_ext_intel_cslice extension (in…
aelovikov-intel Dec 13, 2022
1588571
[SYCL] Add tests for 2D memory operations (intel/llvm-test-suite#1379)
steffenlarsen Dec 13, 2022
c541979
[SYCL][ESIMD]Add test to validate correct split (intel/llvm-test-suit…
fineg74 Dec 14, 2022
0231da8
[SYCL][CUDA] Enable generic atomic tests (intel/llvm-test-suite#1446)
jchlanda Dec 14, 2022
65a1fcc
[SYCL][LIT] Add test for radix sorter (intel/llvm-test-suite#1435)
romanovvlad Dec 14, 2022
2ecc181
[ESIMD] Add tests for ESIMD memory functions accepting 64 bit offsets…
fineg74 Dec 14, 2022
a11d4d5
[SYCL] Fix kernel-bundle-merge-options-env.cpp (intel/llvm-test-suite…
romanovvlad Dec 15, 2022
21195b8
Update level_zero_ext_intel_cslice.cpp (intel/llvm-test-suite#1455)
smaslov-intel Dec 15, 2022
a110cb8
Update level_zero_ext_intel_queue_index.cpp (intel/llvm-test-suite#1456)
smaslov-intel Dec 15, 2022
797853b
[ESIMD] Make more thorough check for atomic operations with floating …
fineg74 Dec 16, 2022
4f62603
[SYCL] E2E for delayed buffer destruction (intel/llvm-test-suite#1460)
KseniyaTikhomirova Dec 20, 2022
f50151f
[SYCL] E2E test for host task scheduling fix (intel/llvm-test-suite#1…
KseniyaTikhomirova Dec 21, 2022
29d2895
[SYCL] Add matrix tests that use the new API (unified API) (intel/llv…
dkhaldi Dec 21, 2022
8490da5
[CI] Fix python executable for windows run (intel/llvm-test-suite#1467)
Dec 21, 2022
625f0d5
[SYCL] Add test case for ext::oneapi::experimental::joint_reduce (int…
dm-vodopyanov Dec 22, 2022
bf06d26
[SYCL] Correct bfloat16 class namespace (intel/llvm-test-suite#1468)
dkhaldi Dec 27, 2022
ccddfcc
[SYCL] XFAIL Printf tests for CUDA on Windows (intel/llvm-test-suite#…
steffenlarsen Dec 29, 2022
6aedda0
[SYCL] Stop using non-standard vec aliases in tests (intel/llvm-test-…
AlexeySachkov Dec 30, 2022
ca17b5b
[ESIMD] E2E test for slm_allocator API. (intel/llvm-test-suite#1449)
kbobrovs Jan 1, 2023
98c9bbb
[SYCL] Disable ESIMD slm alloc tests for emulator (intel/llvm-test-su…
AlexeySachkov Jan 3, 2023
b286c8f
[SYCL] Expand coverage of reqd_work_group_size tests (intel/llvm-test…
steffenlarsen Jan 3, 2023
e255905
[ESIMD] Update tf32 test (intel/llvm-test-suite#1474)
fineg74 Jan 3, 2023
b19b0e7
[SYCL] Temporarily disable Config/select_device.cpp (intel/llvm-test-…
smaslov-intel Jan 4, 2023
55df95b
[SYCL] Enable release resource test on Linux (intel/llvm-test-suite#1…
romanovvlad Jan 4, 2023
919a18d
[SYCL] Add tests for select with bool argument (intel/llvm-test-suite…
Pennycook Jan 4, 2023
c69919f
[SYCL] - quick fix for level_zero_batch_barrier.cpp (intel/llvm-test-…
cperkinsintel Jan 4, 2023
bef899d
[SYCL] Test for sycl::half operator++ (customer report followup) (int…
KseniyaTikhomirova Jan 4, 2023
514bd32
[SYCL] Stop using deprecated API in Subgroup/reduce (intel/llvm-test-…
AlexeySachkov Jan 4, 2023
e76f40f
[SYCL][CUDA] Test CUDA and SYCL in the same TU (intel/llvm-test-suite…
pgorlani Jan 4, 2023
6e11f73
[SYCL] Do not rely on experimental CreateMultipleRootDevices (intel/l…
smaslov-intel Jan 4, 2023
f570342
[SYCL] test for 7589 , byte size vs. vector size for group reduction …
cperkinsintel Jan 4, 2023
fd20609
[SYCL] Use Subgroup size 16 as default for InlineASM tests (intel/llv…
stdale-intel Jan 4, 2023
bf48be8
[SYCL][CUDA] Enabled unified matrix tests (intel/llvm-test-suite#1334)
JackAKirk Jan 4, 2023
c2e0600
[SYCL][Matrix] Fix bfloat16 namespace in the legacy tests (intel/llvm…
dkhaldi Jan 4, 2023
51321c4
[SYCL][Matrix] Minor corrections to the matrix tests (intel/llvm-test…
dkhaldi Jan 4, 2023
937e004
[SYCL]Add check on subgroup size test to make sure its supported on p…
stdale-intel Jan 4, 2023
69dad30
[SYCL][L0] Check that sub-device free memory does not exceed root-dev…
smaslov-intel Jan 5, 2023
a92b1eb
[SYCL] use per_kernel split mode for the test SYCL/SubGroupMask/Group…
myler Jan 5, 2023
1af5d41
[SYCL] Check that fp16 aspect is supported before using half (intel/l…
againull Jan 5, 2023
d3d39f1
[SYCL][ESIMD] Add test for support of compile time hardware dispatch …
fineg74 Jan 5, 2023
d7b7050
Add ext_oneapi_unified_runtime SYCL backend test (intel/llvm-test-sui…
smaslov-intel Jan 5, 2023
1575ebb
[SYCL][ESIMD] Add atomic load/store tests (intel/llvm-test-suite#1459)
fineg74 Jan 6, 2023
7dbb86f
[SYCL][CUDA] Add ftz test (intel/llvm-test-suite#1440)
hdelan Jan 6, 2023
c0c1b2c
[SYCL][Matrix]update recent tests to use the new API and remove depre…
dkhaldi Jan 7, 2023
9fb1e75
[SYCL][Matrix] fix ATS-M double bug (intel/llvm-test-suite#1496)
dkhaldi Jan 10, 2023
77ab023
[SYCL] Disable tests that use images on PVC platform (intel/llvm-test…
fineg74 Jan 10, 2023
c9ae7ee
[SYCL] Temporarily disable SYCL/SubGroupMask/Basic.cpp on Windows (in…
aelovikov-intel Jan 10, 2023
bb61854
[SYCL] Temporarily disable sycl-ls-unified-runtime.cpp test (intel/ll…
cperkinsintel Jan 11, 2023
abc57e4
[SYCL] Disable failing tests: device_architecture.cpp and event_profi…
againull Jan 12, 2023
1be6a15
[ESIMD] Disable the test for preemption option generation on PVC (int…
v-klochkov Jan 12, 2023
d06340a
[SYCL] Re-enable SYCL/SubGroupMask/Basic.cpp (intel/llvm-test-suite#1…
aelovikov-intel Jan 12, 2023
e658e03
[SYCL] Add test for zero size range kernels. (intel/llvm-test-suite#1…
mmoadeli Jan 13, 2023
87215dc
Add tests for bfloat16 isnan (intel/llvm-test-suite#1509)
jinge90 Jan 13, 2023
b212444
[SYCL] disable ze_debug=4 test (intel/llvm-test-suite#1498)
bso-intel Jan 13, 2023
a99aa8d
[SYCL] Disable SYCL/USM/{copy2d,memcpy2d}.cpp on gpu-intel-pvc (intel…
aelovikov-intel Jan 13, 2023
446c183
[SYCL] Disable SYCL/Regression/image_access.cpp on PVC (intel/llvm-te…
aelovikov-intel Jan 13, 2023
58fffc1
[SYCL] Disable SYCL/ESIMD/histogram_{64,2d_64}.cpp on gpu-intel-pvc (…
aelovikov-intel Jan 13, 2023
b1f5451
[SYCL] Fix SYCL/Plugin/level_zero_sub_sub_device test case (intel/llv…
uditagarwal97 Jan 17, 2023
4ca289d
Add tests for imf utils to do conversions between bfloat16 and integr…
jinge90 Jan 17, 2023
e28a267
Fix windows compfail for bfloat16 isnan test (intel/llvm-test-suite#1…
jinge90 Jan 17, 2023
063ff49
[SYCL] Skip SYCL/InlineAsm/asm_8* tests if device doesn't support SG …
aelovikov-intel Jan 17, 2023
7226e32
[SYCL][ESIMD] Add test for kernel defined in template function (intel…
sarnex Jan 18, 2023
fe1d056
[SYCL] Re-enable select_device.cpp test (intel/llvm-test-suite#1488)
cperkinsintel Jan 19, 2023
611b284
Enable bfloat16 math tests on all backends (intel/llvm-test-suite#1495)
jinge90 Jan 19, 2023
6e2e074
Revert "Enable bfloat16 math tests on all backends" (intel/llvm-test-…
aelovikov-intel Jan 20, 2023
099b7b8
Revert "Fix windows compfail for bfloat16 isnan test" (intel/llvm-tes…
bader Jan 20, 2023
6f75e17
Revert "Add tests for bfloat16 isnan" (intel/llvm-test-suite#1532)
bader Jan 20, 2023
f83da8b
[SYCL][ESIMD] Add test for emulation for atomic load/store operations…
fineg74 Jan 20, 2023
604f634
[SYCL][Fusion] Test fusion scheduler integration (intel/llvm-test-sui…
sommerlukas Jan 23, 2023
140589d
[SYCL] Add testing for multi_ptr with extended USM address spaces (in…
steffenlarsen Jan 25, 2023
05c6d19
Test the case where range is over allowed limit. (intel/llvm-test-sui…
mmoadeli Jan 25, 2023
b6653f5
[SYCL] Fix pointer type in hier_par verification (intel/llvm-test-sui…
steffenlarsen Jan 26, 2023
60ab99e
[SYCL][Fusion] Test kernel fusion and optimization (intel/llvm-test-s…
sommerlukas Jan 27, 2023
59bd07a
[SYCL] Add test for sycl::is_compatible supports reqd_work_group_size…
dm-vodopyanov Jan 27, 2023
35bbe11
[SYCL] Add test for exception when selected device not in context (in…
steffenlarsen Jan 27, 2023
925344a
[SYCL] Do not use cl_* types in some tests (intel/llvm-test-suite#1490)
AlexeySachkov Jan 27, 2023
6d19b4f
[SYCL][ESIMD] Fix atomic_smoke.cpp failure on esimd-emulator (intel/l…
fineg74 Jan 27, 2023
81e6d67
[SYCL] Disable is_compatible test on HIP due to crash (intel/llvm-tes…
AlexeySachkov Jan 30, 2023
851b4a6
[SYCL] Do not use `cl_*` types in DeviceLib tests (intel/llvm-test-su…
AlexeySachkov Jan 30, 2023
71d0619
Add 'feature' tests to InvokeSimd (intel/llvm-test-suite#1443)
fveselov Jan 30, 2023
a54a1e9
[SYCL] Add ext_oneapi_unified_runtime backend (intel/llvm-test-suite#…
smaslov-intel Jan 31, 2023
4c81792
[SYCL][HIP] Adding basic atomics for HIP (intel/llvm-test-suite#1510)
hdelan Jan 31, 2023
b3a298b
[SYCL][ESIMD] Test the fix of error when a scalar offset is provided …
fineg74 Jan 31, 2023
c0db28f
[SYCL] Add regression test for get_local_linear_id (intel/llvm-test-s…
steffenlarsen Feb 1, 2023
fc7e9ee
[SYCL] Replace std::fill in single_task with a fill command (intel/ll…
steffenlarsen Feb 1, 2023
562fb80
[SYCL][NFC] Update InlineAsm tests to match SYCL 2020 (intel/llvm-tes…
AlexeySachkov Feb 1, 2023
0fd91eb
[SYCL] Add 'regression' tests to SYCL/InvokeSimd (intel/llvm-test-sui…
fveselov Feb 1, 2023
24588f5
[NFC] Rename InvokeSimd test directories with respect to naming conve…
fveselov Feb 1, 2023
2092db5
[ESIMD] Disable ESIMD/dword_atomic_smoke_scalar_off.cpp on CUDA and H…
fineg74 Feb 1, 2023
6eae715
[SYCL] Fix memory leak in slm_alloc.cpp (intel/llvm-test-suite#1565)
bso-intel Feb 2, 2023
c14cfe7
[SYCL][Fusion] Add missing event waits (intel/llvm-test-suite#1563)
sommerlukas Feb 2, 2023
151720f
[SYCL][NFC] Modernize some tests to match SYCL 2020 (intel/llvm-test-…
AlexeySachkov Feb 2, 2023
9679b5d
[SYCL][NFC] Modernize Basic/info.cpp (intel/llvm-test-suite#1558)
AlexeySachkov Feb 2, 2023
7af74b8
Use function object to do equality check in imf utils. (intel/llvm-te…
jinge90 Feb 2, 2023
82d7751
[SYCL][Fusion] Update test for circular dependency (intel/llvm-test-s…
sommerlukas Feb 2, 2023
7dd8658
[SYCL] Add test for spec const info after link (intel/llvm-test-suite…
steffenlarsen Feb 2, 2023
b10f20f
[SYCL] XFAIL spec_constants_after_link for HIP (intel/llvm-test-suite…
steffenlarsen Feb 6, 2023
0fccf29
[SYCL][Fusion] Test caching of fused kernels (intel/llvm-test-suite#1…
sommerlukas Feb 7, 2023
b1776de
[SYCL][ESIMD] Add tests for new API for lsc 2d load/store (intel/llv…
fineg74 Feb 7, 2023
53d10e4
[ESIMD] Add a test for imul() intrinsic (intel/llvm-test-suite#1566)
v-klochkov Feb 7, 2023
b0cce0a
[SYCL][ESIMD] Fix InvokeSimd function_overloads.cpp test (intel/llvm-…
fveselov Feb 8, 2023
9d86923
[ESIMD] Re-enable api/simd_view_select_2d_int.cpp temporarily disable…
fineg74 Feb 8, 2023
7f6fb81
[ESIMD][NFC] Rename test checking lsc_load_2d/store_2d/prefetch_2d (i…
v-klochkov Feb 9, 2023
0a5f488
[SYCL] Add one more optional kernel features test (intel/llvm-test-su…
AlexeySachkov Feb 10, 2023
099f105
[SYCL] Adjust reduction_ctor test and check reducer identity (intel/l…
steffenlarsen Feb 10, 2023
7a77fe5
[SYCL] test for ONEAPI_DEVICE_SELECTOR case sensitivity fix (intel/ll…
cperkinsintel Feb 10, 2023
6c38c33
[ESIMD] Temporarily disable the flaky test imulh_umulh.cpp (intel/llv…
v-klochkov Feb 13, 2023
2c8bfad
[ESIMD] Disable imulh_umulh.cpp (intel/llvm-test-suite#1593)
v-klochkov Feb 13, 2023
f5fd8e3
[ESIMD] Test merging lsc_block_load(); separate block_load and gather…
v-klochkov Feb 13, 2023
c88e59a
[SYCL][Fusion] Test fusion of kernels with different ND-ranges (intel…
victor-eds Feb 14, 2023
fbe02d2
[SYCL] Adds extensive testing for SYCL 2020 implicitly device copyabl…
maarquitos14 Feb 15, 2023
73b6383
[SYCL] Extends placeholder accessor tests (intel/llvm-test-suite#1549)
maarquitos14 Feb 15, 2023
1ce479f
[ESIMD] Enable the test imulh_umulh.cpp (intel/llvm-test-suite#1594)
v-klochkov Feb 16, 2023
f028765
Fix InvokeSimd simd_size and call_vadd_1d_loop_naive tests (intel/llv…
fveselov Feb 17, 2023
4398c74
[SYCL] Fixes clang-format issue in device_implicitly_copyable.cpp. (i…
maarquitos14 Feb 17, 2023
b225389
[ESIMD] Make profiling support optional in ESIMD tests (intel/llvm-te…
sergey-semenov Feb 20, 2023
53d3c5b
[SYCL] Adjust stream test to use new member function names (intel/llv…
steffenlarsen Feb 22, 2023
719cb87
[SYCL] Add cases for double vectors in SubGroup tests (intel/llvm-tes…
maksimsab Feb 22, 2023
86a730f
Revert "[SYCL] add cases for double vectors in SubGroup tests" (intel…
bader Feb 22, 2023
559d8ee
[ESIMD] Enable type combinations that pass with new GPU driver (intel…
v-klochkov Feb 23, 2023
82b86ce
[SYCL] Add SYCL_E2E_RUN_LAUNCHER configuration option (intel/llvm-tes…
aelovikov-intel Feb 23, 2023
7542b10
[ESIMD] Add a test for sycl::ext::intel::experimental::esimd::wait() …
v-klochkov Feb 23, 2023
a3c1db9
[SYCL] Allow "=" sign as part of value in LIT_EXTRA_ENVIRONMENT key/v…
aelovikov-intel Feb 23, 2023
ff94f4e
[SYCL] [L0] Specify standard command lists explicitly when the test d…
rdeodhar Feb 24, 2023
7037605
[SYCL][CUDA] Re-enable tests that were marked as UNSUPPORTED for the …
jle-quel Feb 27, 2023
176b50f
[SYCL] Add test for relational functions which support sycl::marray (…
dm-vodopyanov Feb 27, 2023
e871694
[SYCL] Tests for win_proxy_loader (intel/llvm-test-suite#1465)
cperkinsintel Mar 1, 2023
ad6a248
[SYCL] Skip event_profiling_info test if profiling is not supported (…
sergey-semenov Mar 1, 2023
87175ae
[SYCL] add cases for double vectors in SubGroup tests (intel/llvm-tes…
maksimsab Mar 1, 2023
6dbf02a
Add test for general bf16 isnan impl (intel/llvm-test-suite#1568)
jinge90 Mar 1, 2023
d6357d0
[SYCL][HIP] Mark reqd_work_group_size test unsupported on HIP (intel/…
steffenlarsen Mar 2, 2023
e3e756e
[SYCL] Enables permute_select for HIP (intel/llvm-test-suite#1505)
abagusetty Mar 3, 2023
bc02870
[SYCL] Assignment operator tests for 0-dim buffer accessor and local_…
Mar 3, 2023
7a12d60
[SYCL][CUDA] Disable subgroup shuffle_fp64 test for CUDA (intel/llvm-…
steffenlarsen Mar 4, 2023
75731e4
[SYCL] Test that the UUID is read correctly from Level Zero (intel/ll…
smaslov-intel Mar 6, 2023
cd5fc66
[SYCL] Add test to check correct diagnostics for invalid wgsize (inte…
maarquitos14 Mar 6, 2023
9b85600
[SYCL][Fusion] Explicitly initialize vec in different_nd_ranges test …
victor-eds Mar 6, 2023
7fc977d
[ESIMD] Add tests for lsc_gather() lsc_slm_gather() with merging sem…
v-klochkov Mar 6, 2023
5e13674
[SYCL] Disables gpu_max_wgs_error test for unsupported backends. (int…
maarquitos14 Mar 7, 2023
70cf3ca
[SYCL] Add OpenCL Interop test for make_kernel_bundle/get_native (int…
aelovikov-intel Mar 7, 2023
f104cfb
[SYCL] Disable tests failed during pulldown (intel/llvm-test-suite#1633)
KornevNikita Mar 7, 2023
3150108
[SYCL] Change XFAIL tests to UNSUPPORTED for HIP (intel/llvm-test-sui…
steffenlarsen Mar 7, 2023
771ce12
[SYCL] Added E2E test for kernel_bundle::get_kernel<KernelName>() (in…
Mar 7, 2023
a56c704
[ESIMD] Add a test for lsc_slm_block_load with merging semantics (int…
v-klochkov Mar 8, 2023
8053957
[SYCL] Adds tests for stream size functions within kernel code for de…
maarquitos14 Mar 8, 2023
cae7432
[SYCL] Fix memory leak (intel/llvm-test-suite#1592)
bso-intel Mar 9, 2023
9ea5fbb
[SYCL][Matrix] Fix warnings about deprecated get_access for host acce…
YuriPlyakhin Mar 10, 2023
d70681b
[SYCL] Add tests for code location print in case of exception in exec…
KseniyaTikhomirova Mar 10, 2023
a2dd478
[ESIMD][InvokeSimd] Add named barrier and SLM access tests (intel/llv…
fveselov Mar 10, 2023
e8e7761
Revert "[SYCL] Add tests for code location print in case of exception…
KseniyaTikhomirova Mar 10, 2023
201277e
[SYCL][L0] empty queue sync does not need extra event (intel/llvm-tes…
smaslov-intel Mar 10, 2023
cacafdd
[SYCL][ESIMD] Introduce test to validate thread ID API (intel/llvm-te…
fineg74 Mar 10, 2023
db5321c
[SYCL] Update sycl complex testing (intel/llvm-test-suite#1533)
jle-quel Mar 13, 2023
f34e5c2
[SYCL][ESIMD] Enable back smin/smax atomic tests (intel/llvm-test-sui…
turinevgeny Mar 13, 2023
7078220
[ESIMD] Reenable matrix_transpose_glb test on Windows as the issue ha…
fineg74 Mar 13, 2023
f01626f
[SYCL][Fusion] Test fusion device info descriptor (intel/llvm-test-su…
sommerlukas Mar 14, 2023
8a8a201
[SYCL] Add identityless reduction test cases (intel/llvm-test-suite#1…
steffenlarsen Mar 14, 2023
64a4a9c
[SYCL][ESIMD] Enable invoke_simd simd_mask test (intel/llvm-test-suit…
sarnex Mar 14, 2023
4d3becd
[SYCL][ESIMD] Add lsc_prefetch_2d tests (intel/llvm-test-suite#1645)
fineg74 Mar 15, 2023
01a5b98
[SYCL] Reenable ZE_DEBUG=4 tests on Windows. (intel/llvm-test-suite#…
cperkinsintel Mar 15, 2023
87fa31c
[SYCL][ESIMD]Add tests to validate lsc_block_load/store using 64 bit …
fineg74 Mar 16, 2023
a83dbb0
[SYCL][Fusion] Test non-internalization if the pointer is stored (int…
victor-eds Mar 17, 2023
7e52b02
[SYCL][ESIMD] Add tests for new raw send{s} API (intel/llvm-test-suit…
sarnex Mar 18, 2023
6d54e8e
[SYCL] Modified targets to reduce compile time. (intel/llvm-test-suit…
rdeodhar Mar 20, 2023
85f2ba6
[SYCL] [L0] Add test for per-thread per-queue immediate command lists…
rdeodhar Mar 21, 2023
7e0b212
[SYCL][ESIMD] Fix tests that fail under emulator (intel/llvm-test-sui…
fineg74 Mar 21, 2023
7446ce0
[SYCL][Matrix] Adding test cases for the joint_matrix_apply() and fi…
arnamoy10 Mar 21, 2023
ebc9534
[SYCL] [L0] Correction to test to add threads lib. (intel/llvm-test-s…
rdeodhar Mar 21, 2023
1202074
[SYCL][ESIMD] Mark tests that fail on gen9 windows as unsupported (in…
sarnex Mar 22, 2023
b064eee
[SYCL][Matrix] Remove xfail from test that passes now (intel/llvm-tes…
YuriPlyakhin Mar 22, 2023
870c8c4
[SYCL] Test reduction for complex numbers. (intel/llvm-test-suite#1609)
uditagarwal97 Mar 22, 2023
53566ba
[SYCL] Expand coverage of 2D USM tests (intel/llvm-test-suite#1597)
steffenlarsen Mar 22, 2023
5dfa97b
[SYCL][ESIMD] Add test for Atomic update fix (intel/llvm-test-suite#…
fineg74 Mar 22, 2023
9532a63
[SYCL] Reflect updates to get_pointer return type to relevant tests. …
mmoadeli Mar 22, 2023
0ad6c91
[SYCL] Enable memory leak test (intel/llvm-test-suite#1666)
bso-intel Mar 22, 2023
41ec7df
[SYCL][Fusion] Pass -O2 flag to tests performing argument promotion (…
victor-eds Mar 23, 2023
74f4c54
[SYCL][MATRIX] Adding test cases for testing get_coord() feature. (in…
arnamoy10 Mar 23, 2023
b997b25
[SYCL] Test info::device::local_mem_type (intel/llvm-test-suite#1681)
smaslov-intel Mar 23, 2023
f7646a4
[SYCL] Add work-around for fill bug in memcpy2d tests (intel/llvm-tes…
steffenlarsen Mar 23, 2023
8d2ad74
[SYCL][CUDA] Adds cuda test for joint_matrix_apply. (intel/llvm-test-…
JackAKirk Mar 23, 2023
3fc0eb3
[SYCL] Test global_work_size query has the right errc (intel/llvm-tes…
KornevNikita Mar 23, 2023
3ca0269
[SYCL] Temporarily disable memcpy2d and copy2d on L0 Windows (intel/l…
steffenlarsen Mar 23, 2023
77a3c4b
[SYCL] Enable memory leak test (intel/llvm-test-suite#1680)
bso-intel Mar 24, 2023
45d44db
[SYCL] Temporarily disable kernel_info on CUDA and HIP (intel/llvm-te…
steffenlarsen Mar 24, 2023
c257c0b
[SYCL] Refactor invalid use of local accessor (intel/llvm-test-suite#…
mmoadeli Mar 24, 2023
44692bd
[SYCL][ESIMD] Add large GRF test (intel/llvm-test-suite#1686)
sarnex Mar 24, 2023
f7a7b69
[SYCL][CUDA] Re-enable subgroup shuffle_fp64 test for CUDA (intel/llv…
GeorgeWeb Mar 24, 2023
7e9ed9e
[SYCL][ESIMD] Add a runtime test for BFN function (intel/llvm-test-su…
turinevgeny Mar 24, 2023
9d296b0
Revert "[SYCL] Refactor invalid use of local accessor" (intel/llvm-te…
bader Mar 24, 2023
9ef2050
[SYCL][InvokeSIMD] Delete ret size mismatch test (intel/llvm-test-sui…
sarnex Mar 25, 2023
24243ab
[SYCL] Updated tests to comply with SYCL 2020 aspect list (intel/llvm…
Mar 27, 2023
5569b32
Remove exerimental subset of the end-to-end tests
aelovikov-intel Mar 27, 2023
1fcd268
[SYCL] Add feature test for gpu_cache_config property (intel/llvm-tes…
againull Mar 27, 2023
c1c4394
[ESIMD] Add tests for private/stack memory (intel/llvm-test-suite#1682)
v-klochkov Mar 27, 2023
b0bdf35
Move SYCL -> sycl/test-e2e
aelovikov-intel Mar 27, 2023
f33f8b2
Merge intel/llvm-test-suite in-tree
aelovikov-intel Mar 27, 2023
9fd0ee6
Updates to README.md
aelovikov-intel Mar 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 12 additions & 0 deletions sycl/test-e2e/AOT/accelerator.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//=-- accelerator.cpp - compilation for fpga emulator dev using opencl-aot --=//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------------------------------------------------===//

// REQUIRES: opencl-aot, accelerator

// RUN: %clangxx -fsycl -fsycl-targets=spir64_fpga %S/Inputs/aot.cpp -o %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
45 changes: 45 additions & 0 deletions sycl/test-e2e/Assert/Inputs/kernels_in_file2.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#include "kernels_in_file2.hpp"

#ifdef DEFINE_NDEBUG_INFILE2
#define NDEBUG
#else
#undef NDEBUG
#endif

#include <cassert>

using namespace sycl;
using namespace sycl::access;

int calculus(int X) {
assert(X && "this message from calculus");
return X * 2;
}

void check_nil(int value) { assert(value && "this message from file2"); }

static constexpr size_t BUFFER_SIZE = 4;

void enqueueKernel_1_fromFile2(queue *Q) {
sycl::range<1> numOfItems{BUFFER_SIZE};
sycl::buffer<int, 1> Buf(numOfItems);

Q->submit([&](handler &CGH) {
auto Acc = Buf.template get_access<mode::read_write>(CGH);

CGH.parallel_for<class kernel1_from_separate_file>(
numOfItems, [=](sycl::id<1> wiID) { check_nil(Acc[wiID]); });
});
}

void enqueueKernel_2_fromFile2(queue *Q) {
sycl::range<1> numOfItems{BUFFER_SIZE};
sycl::buffer<int, 1> Buf(numOfItems);

Q->submit([&](handler &CGH) {
auto Acc = Buf.template get_access<mode::read_write>(CGH);

CGH.parallel_for<class kernel2_from_separate_file>(
numOfItems, [=](sycl::id<1> wiID) { check_nil(Acc[wiID]); });
});
}
7 changes: 7 additions & 0 deletions sycl/test-e2e/Assert/Inputs/kernels_in_file2.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include <sycl/sycl.hpp>

SYCL_EXTERNAL int calculus(int X);

void enqueueKernel_1_fromFile2(sycl::queue *Q);

void enqueueKernel_2_fromFile2(sycl::queue *Q);
24 changes: 24 additions & 0 deletions sycl/test-e2e/Assert/assert_in_kernels.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// REQUIRES: linux

// https://github.com/intel/llvm/issues/7634
// UNSUPPORTED: hip

// RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.cpu.txt || true
// RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.cpu.txt
// RUN: %GPU_RUN_PLACEHOLDER %t.out &> %t.gpu.txt || true
// RUN: %GPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.gpu.txt
// Shouldn't fail on ACC as fallback assert isn't enqueued there
// RUN: %ACC_RUN_PLACEHOLDER %t.out &> %t.acc.txt
// RUN: %ACC_RUN_PLACEHOLDER FileCheck %s --check-prefix=CHECK-ACC --input-file %t.acc.txt
//
// CHECK-NOT: One shouldn't see this message
// CHECK: {{.*}}assert_in_kernels.hpp:25: void kernelFunc2(int *, int): {{.*}} [{{[0,2]}},0,0], {{.*}} [0,0,0]
// CHECK-SAME: Assertion `Buf[wiID] == 0 && "from assert statement"` failed.
// CHECK-NOT: test aborts earlier, one shouldn't see this message
// CHECK-NOT: The test ended.
//
// CHECK-ACC-NOT: {{.*}}assert_in_kernels.hpp:25: void kernelFunc2(int *, int): {{.*}} [{{[0,2]}},0,0], {{.*}} [0,0,0]
// CHECK-ACC: The test ended.

#include "assert_in_kernels.hpp"
69 changes: 69 additions & 0 deletions sycl/test-e2e/Assert/assert_in_kernels.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
#include <cassert>
#include <iostream>
#include <sycl/sycl.hpp>

using namespace sycl;
using namespace sycl::access;

void kernelFunc1(int *Buf, int wiID) {
Buf[wiID] = 9;
assert(Buf[wiID] != 0 && "One shouldn't see this message");
}

void assertTest1(queue &Q, buffer<int, 1> &Buf) {
Q.submit([&](handler &CGH) {
auto Acc = Buf.template get_access<mode::read_write>(CGH);

CGH.parallel_for<class Kernel_1>(
Buf.get_range(), [=](sycl::id<1> wiID) { kernelFunc1(&Acc[0], wiID); });
});
}

void kernelFunc2(int *Buf, int wiID) {
if (wiID % 2 != 0)
Buf[wiID] = 0;
assert(Buf[wiID] == 0 && "from assert statement");
}

void assertTest2(queue &Q, buffer<int, 1> &Buf) {
Q.submit([&](handler &CGH) {
auto Acc = Buf.template get_access<mode::read_write>(CGH);

CGH.parallel_for<class Kernel_2>(
Buf.get_range(), [=](sycl::id<1> wiID) { kernelFunc2(&Acc[0], wiID); });
});
}

void kernelFunc3(int *Buf, int wiID) {
if (wiID == 0)
assert(false && "test aborts earlier, one shouldn't see this message");
Buf[wiID] = 9;
}

void assertTest3(queue &Q, buffer<int, 1> &Buf) {
Q.submit([&](handler &CGH) {
auto Acc = Buf.template get_access<mode::read_write>(CGH);

CGH.parallel_for<class Kernel_3>(
Buf.get_range(), [=](sycl::id<1> wiID) { kernelFunc3(&Acc[0], wiID); });
});
}

int main(int Argc, const char *Argv[]) {
std::array<int, 4> Vec = {1, 2, 3, 4};
sycl::range<1> numOfItems{Vec.size()};
sycl::buffer<int, 1> Buf(Vec.data(), numOfItems);

queue Q;
assertTest1(Q, Buf);
Q.wait();

assertTest2(Q, Buf);
Q.wait();

assertTest3(Q, Buf);
Q.wait();

std::cout << "The test ended." << std::endl;
return 0;
}
9 changes: 9 additions & 0 deletions sycl/test-e2e/Assert/assert_in_kernels_ndebug.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -DNDEBUG %S/assert_in_kernels.cpp -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out %CPU_CHECK_PLACEHOLDER
// RUN: %GPU_RUN_PLACEHOLDER %t.out %GPU_CHECK_PLACEHOLDER
// RUN: %ACC_RUN_PLACEHOLDER %t.out %ACC_CHECK_PLACEHOLDER
//
// CHECK-NOT: One shouldn't see this message
// CHECK-NOT: from assert statement
// CHECK-NOT: test aborts earlier, one shouldn't see this message
// CHECK: The test ended.
22 changes: 22 additions & 0 deletions sycl/test-e2e/Assert/assert_in_kernels_win.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// REQUIRES: windows
// RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.txt || true
// RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt
// RUN: %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true
// RUN: %GPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt
// Shouldn't fail on ACC as fallback assert isn't enqueued there
// RUN: %ACC_RUN_PLACEHOLDER %t.out &> %t.txt
// RUN: %ACC_RUN_PLACEHOLDER FileCheck %s --check-prefix=CHECK-ACC --input-file %t.txt
//
// CHECK-NOT: One shouldn't see this message
// FIXME Windows version prints '(null)' instead of '<unknown func>' once in a
// while for some insane reason.
// CHECK: {{.*}}assert_in_kernels.hpp:25: {{<unknown func>|(null)}}: {{.*}} [{{[0,2]}},0,0], {{.*}} [0,0,0]
// CHECK-SAME: Assertion `Buf[wiID] == 0 && "from assert statement"` failed.
// CHECK-NOT: test aborts earlier, one shouldn't see this message
// CHECK-NOT: The test ended.
//
// CHECK-ACC-NOT: {{.*}}assert_in_kernels.hpp:25: {{<unknown func>|(null)}}: {{.*}} [{{[0,2]}},0,0], {{.*}} [0,0,0]
// CHECK-ACC: The test ended.

#include "assert_in_kernels.hpp"
25 changes: 25 additions & 0 deletions sycl/test-e2e/Assert/assert_in_multiple_tus.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// REQUIRES: linux

// https://github.com/intel/llvm/issues/7634
// UNSUPPORTED: hip

// RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl -fsycl-targets=%sycl_triple -I %S/Inputs %s %S/Inputs/kernels_in_file2.cpp -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.cpu.txt || true
// RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.cpu.txt
// RUN: %GPU_RUN_PLACEHOLDER %t.out &> %t.gpu.txt || true
// RUN: %GPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.gpu.txt
// Shouldn't fail on ACC as fallback assert isn't enqueued there
// RUN: %ACC_RUN_PLACEHOLDER %t.out &> %t.acc.txt
// RUN: %ACC_RUN_PLACEHOLDER FileCheck %s --check-prefix=CHECK-ACC --input-file %t.acc.txt
//
// CUDA uses block/thread vs global/local id for SYCL, also it shows the
// position of a thread within the block, not the absolute ID.
// CHECK: {{.*}}kernels_in_file2.cpp:15: int calculus(int): {{global id: \[5|block: \[1}},0,0], {{local id|thread}}: [1,0,0]
// CHECK-SAME: Assertion `X && "this message from calculus"` failed.
// CHECK-NOT: this message from file2
// CHECK-NOT: The test ended.
//
// CHECK-ACC-NOT: {{.*}}kernels_in_file2.cpp:15: int calculus(int): global id: [5,0,0], local id: [1,0,0]
// CHECK-ACC: The test ended.

#include "assert_in_multiple_tus.hpp"
51 changes: 51 additions & 0 deletions sycl/test-e2e/Assert/assert_in_multiple_tus.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#include "Inputs/kernels_in_file2.hpp"
#include <iostream>
#include <sycl/sycl.hpp>

#ifdef DEFINE_NDEBUG_INFILE1
#define NDEBUG
#else
#undef NDEBUG
#endif

#include <cassert>

using namespace sycl;
using namespace sycl::access;

static constexpr size_t BUFFER_SIZE = 16;

int checkFunction() {
int X = calculus(0);
assert(X && "Nil in result");
return X;
}

void enqueueKernel_1_fromFile1(queue *Q) {
sycl::range<1> numOfItems{BUFFER_SIZE};
sycl::buffer<int, 1> Buf(numOfItems);

Q->submit([&](handler &CGH) {
auto Acc = Buf.template get_access<mode::read_write>(CGH);

CGH.parallel_for<class Kernel_1>(
sycl::nd_range(Buf.get_range(), sycl::range<1>(4)),
[=](sycl::id<1> wiID) {
int X = 0;
if (wiID == 5)
X = checkFunction();
Acc[wiID] = X;
});
});
}

int main(int Argc, const char *Argv[]) {

queue Q;
enqueueKernel_1_fromFile1(&Q);
enqueueKernel_2_fromFile2(&Q);
Q.wait();

std::cout << "The test ended." << std::endl;
return 0;
}
24 changes: 24 additions & 0 deletions sycl/test-e2e/Assert/assert_in_multiple_tus_one_ndebug.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// REQUIRES: linux

// https://github.com/intel/llvm/issues/7634
// UNSUPPORTED: hip

// RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl -fsycl-targets=%sycl_triple -DDEFINE_NDEBUG_INFILE2 -I %S/Inputs %S/assert_in_multiple_tus.cpp %S/Inputs/kernels_in_file2.cpp -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.cpu.txt || true
// RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.cpu.txt
// RUN: %GPU_RUN_PLACEHOLDER %t.out &> %t.gpu.txt || true
// RUN: %GPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.gpu.txt
// Shouldn't fail on ACC as fallback assert isn't enqueued there
// RUN: %ACC_RUN_PLACEHOLDER %t.out &> %t.acc.txt
// RUN: %ACC_RUN_PLACEHOLDER FileCheck %s --check-prefix=CHECK-ACC --input-file %t.acc.txt
//
// CHECK-NOT: this message from calculus
// CUDA uses block/thread vs global/local id for SYCL, also it shows the
// position of a thread within the block, not the absolute ID.
// CHECK: {{.*}}assert_in_multiple_tus.hpp:20: int checkFunction(): {{global id: \[5|block: \[1}},0,0],
// CHECK-SAME: {{.*}} [1,0,0] Assertion `X && "Nil in result"` failed.
// CHECK-NOT: this message from file2
// CHECK-NOT: The test ended.
//
// CHECK-ACC-NOT: {{.*}}assert_in_multiple_tus.hpp:20: int checkFunction(): {{.*}}
// CHECK-ACC: The test ended.
20 changes: 20 additions & 0 deletions sycl/test-e2e/Assert/assert_in_multiple_tus_one_ndebug_win.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// REQUIRES: windows
// RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl -fsycl-targets=%sycl_triple -DDEFINE_NDEBUG_INFILE2 -I %S/Inputs %S/assert_in_multiple_tus.cpp %S/Inputs/kernels_in_file2.cpp -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.txt || true
// RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt
// RUN: %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true
// RUN: %GPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt
// Shouldn't fail on ACC as fallback assert isn't enqueued there
// RUN: %ACC_RUN_PLACEHOLDER %t.out &> %t.txt || true
// RUN: %ACC_RUN_PLACEHOLDER FileCheck %s --check-prefix=CHECK-ACC --input-file %t.txt
//
// CHECK-NOT: this message from calculus
// FIXME Windows version prints '(null)' instead of '<unknown func>' once in a
// while for some insane reason.
// CHECK: {{.*}}assert_in_multiple_tus.hpp:20: {{<unknown func>|(null)}}: {{.*}} [5,0,0],
// CHECK-SAME: {{.*}} [1,0,0] Assertion `X && "Nil in result"` failed.
// CHECK-NOT: this message from file2
// CHECK-NOT: The test ended.
//
// CHECK-ACC-NOT: {{.*}}assert_in_multiple_tus.hpp:20: {{<unknown func>|(null)}}: {{.*}} [5,0,0],
// CHECK-ACC: The test ended.
21 changes: 21 additions & 0 deletions sycl/test-e2e/Assert/assert_in_multiple_tus_win.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// REQUIRES: windows
// RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl -fsycl-targets=%sycl_triple -I %S/Inputs %s %S/Inputs/kernels_in_file2.cpp -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.txt || true
// RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt
// RUN: %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true
// RUN: %GPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt
// Shouldn't fail on ACC as fallback assert isn't enqueued there
// RUN: %ACC_RUN_PLACEHOLDER %t.out &> %t.txt
// RUN: %ACC_RUN_PLACEHOLDER FileCheck %s --check-prefix=CHECK-ACC --input-file %t.txt
//
// FIXME Windows version prints '(null)' instead of '<unknown func>' once in a
// while for some insane reason.
// CHECK: {{.*}}kernels_in_file2.cpp:15: {{<unknown func>|(null)}}: {{.*}} [5,0,0], {{.*}} [1,0,0]
// CHECK-SAME: Assertion `X && "this message from calculus"` failed.
// CHECK-NOT: this message from file2
// CHECK-NOT: The test ended.
//
// CHECK-ACC-NOT: {{.*}}kernels_in_file2.cpp:15: {{<unknown func>|(null)}}: {{.*}} [5,0,0], {{.*}} [1,0,0]
// CHECK-ACC: The test ended.

#include "assert_in_multiple_tus.hpp"
22 changes: 22 additions & 0 deletions sycl/test-e2e/Assert/assert_in_one_kernel.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// REQUIRES: linux

// https://github.com/intel/llvm/issues/7634
// UNSUPPORTED: hip

// RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.cpu.txt || true
// RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.cpu.txt
// RUN: %GPU_RUN_PLACEHOLDER %t.out &> %t.gpu.txt || true
// RUN: %GPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.gpu.txt
// Shouldn't fail on ACC as fallback assert isn't enqueued there
// RUN: %ACC_RUN_PLACEHOLDER %t.out &> %t.acc.txt
// RUN: %ACC_RUN_PLACEHOLDER FileCheck %s --check-prefix=CHECK-ACC --input-file %t.acc.txt
//
// CHECK: {{.*}}assert_in_one_kernel.hpp:10: void kernelFunc(int *, int): {{.*}} [{{[0-3]}},0,0], {{.*}} [0,0,0]
// CHECK-SAME: Assertion `Buf[wiID] != 0 && "from assert statement"` failed.
// CHECK-NOT: The test ended.
//
// CHECK-ACC-NOT: {{.*}}assert_in_one_kernel.hpp:10: void kernelFunc(int *, int): {{.*}} [{{[0-3]}},0,0], {{.*}} [0,0,0]
// CHECK-ACC: The test ended.

#include "assert_in_one_kernel.hpp"
34 changes: 34 additions & 0 deletions sycl/test-e2e/Assert/assert_in_one_kernel.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#include <cassert>
#include <iostream>
#include <sycl/sycl.hpp>

using namespace sycl;
using namespace sycl::access;

void kernelFunc(int *Buf, int wiID) {
Buf[wiID] = 0;
assert(Buf[wiID] != 0 && "from assert statement");
}

void assertTest() {
std::array<int, 4> Vec = {1, 2, 3, 4};
sycl::range<1> numOfItems{Vec.size()};
sycl::buffer<int, 1> Buf(Vec.data(), numOfItems);

queue Q;
Q.submit([&](handler &CGH) {
auto Acc = Buf.template get_access<mode::read_write>(CGH);

CGH.parallel_for<class TheKernel>(
numOfItems, [=](item<1> Item) { kernelFunc(&Acc[0], Item[0]); });
});
Q.wait();
}

int main(int Argc, const char *Argv[]) {

assertTest();

std::cout << "The test ended." << std::endl;
return 0;
}
Loading