Skip to content

Commit 6b5afa7

Browse files
committed
[SQUASH] Add license. Fix tests.
Signed-off-by: Konstantin S Bobrovsky <[email protected]>
1 parent 936a60b commit 6b5afa7

19 files changed

+139
-7
lines changed

sycl/test/esimd/on-device/BitonicSortK.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//==---------------- BitonicSortK.cpp - DPC++ ESIMD on-device test --------==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
18
// TODO enable on Windows
29
// REQUIRES: linux
310
// REQUIRES: gpu

sycl/test/esimd/on-device/BitonicSortKv2.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//==---------------- BitonicSortKv2.cpp - DPC++ ESIMD on-device test ------==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
18
// TODO enable on Windows
29
// REQUIRES: linux
310
// REQUIRES: gpu

sycl/test/esimd/on-device/accessor.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//==---------------- accessor.cpp - DPC++ ESIMD on-device test ------------==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
18
// TODO enable on Windows
29
// REQUIRES: linux
310
// REQUIRES: gpu

sycl/test/esimd/on-device/histogram.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//==---------------- histogram.cpp - DPC++ ESIMD on-device test -----------==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
18
// TODO enable on Windows
29
// REQUIRES: linux
310
// REQUIRES: gpu

sycl/test/esimd/on-device/histogram_2d.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//==---------------- histogram_2d.cpp - DPC++ ESIMD on-device test --------==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
18
// TODO enable on Windows
29
// REQUIRES: linux
310
// REQUIRES: gpu

sycl/test/esimd/on-device/kmeans/kmeans.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//==---------------- kmeans.cpp - DPC++ ESIMD on-device test --------------==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
18
// TODO enable on Windows
29
// REQUIRES: linux
310
// REQUIRES: gpu

sycl/test/esimd/on-device/kmeans/kmeans.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
//==---------------- kmeans.h - DPC++ ESIMD on-device test ----------------==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
19
#ifndef KMEANS_H_INCLUDED
210
#define KMEANS_H_INCLUDED
311

sycl/test/esimd/on-device/kmeans/point.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
//==---------------- point.h - DPC++ ESIMD on-device test -----------------==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
19
#ifndef POINT_H_INCLUDED
210
#define POINT_H_INCLUDED
311

sycl/test/esimd/on-device/linear/bitmap_helpers.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
// TODO: add DPC++ copyright info for open source
1+
//==---------------- bitmap_helpers.h - DPC++ ESIMD on-device test --------==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
28

39
#pragma once
410

sycl/test/esimd/on-device/linear/linear.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//==---------------- linear.cpp - DPC++ ESIMD on-device test --------------==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
18
// TODO enable on Windows
29
// REQUIRES: linux
310
// REQUIRES: gpu

sycl/test/esimd/on-device/mandelbrot/mandelbrot.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//==---------------- mandelbrot.cpp - DPC++ ESIMD on-device test ----------==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
18
// TODO enable on Windows
29
// REQUIRES: linux
310
// REQUIRES: gpu
@@ -91,7 +98,7 @@ int main(int argc, char *argv[]) {
9198
// Number of workitems in a workgroup
9299
cl::sycl::range<2> LocalRange{1, 1};
93100

94-
queue q(esimd_test::ESIMDSelector{}, createESIMDExceptionHandler());
101+
queue q(esimd_test::ESIMDSelector{}, esimd_test::createExceptionHandler());
95102

96103
auto dev = q.get_device();
97104
auto ctxt = q.get_context();
@@ -130,7 +137,7 @@ int main(int argc, char *argv[]) {
130137
fclose(dumpfile);
131138

132139
bool passed = true;
133-
if (!esimd_test_utils::cmp_binary_files<unsigned char>(out_file, argv[2],
140+
if (!esimd_test::cmp_binary_files<unsigned char>(out_file, argv[2],
134141
0)) {
135142
std::cerr << out_file << " does not match the reference file " << argv[2]
136143
<< std::endl;

sycl/test/esimd/on-device/matrix_transpose.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//==---------------- matrix_transpose.cpp - DPC++ ESIMD on-device test ----==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
18
// TODO enable on Windows
29
// REQUIRES: linux
310
// REQUIRES: gpu

sycl/test/esimd/on-device/matrix_transpose_glb.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//==--------------- matrix_transpose_glb.cpp - DPC++ ESIMD on-device test -==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
18
// TODO enable on Windows
29
// REQUIRES: linux
310
// REQUIRES: gpu
@@ -277,8 +284,7 @@ ESIMD_INLINE void transpose16(int *buf, int MZ, int block_col, int block_row) {
277284
}
278285

279286
bool runTest(unsigned MZ, unsigned block_size) {
280-
queue q(esimd_test::ESIMDSelector{}, createESIMDExceptionHandler(),
281-
property::queue::enable_profiling{});
287+
queue q(esimd_test::ESIMDSelector{}, esimd_test::createESIMDExceptionHandler(), property::queue::enable_profiling{});
282288
auto dev = q.get_device();
283289
auto ctxt = q.get_context();
284290
int *M = static_cast<int *>(malloc_shared(MZ * MZ * sizeof(int), dev, ctxt));

sycl/test/esimd/on-device/matrix_transpose_usm.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//==--------------- matrix_transpose_usm.cpp - DPC++ ESIMD on-device test -==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
18
// TODO enable on Windows
29
// REQUIRES: linux
310
// REQUIRES: gpu
@@ -318,8 +325,7 @@ ESIMD_INLINE void transpose16(int *buf, int MZ, int block_col, int block_row) {
318325
}
319326

320327
bool runTest(unsigned MZ, unsigned block_size) {
321-
queue q(esimd_test::ESIMDSelector{}, createESIMDExceptionHandler(),
322-
property::queue::enable_profiling{});
328+
queue q(esimd_test::ESIMDSelector{}, esimd_test::createESIMDExceptionHandler(), property::queue::enable_profiling{});
323329
auto dev = q.get_device();
324330
auto ctxt = q.get_context();
325331
int *M = static_cast<int *>(malloc_shared(MZ * MZ * sizeof(int), dev, ctxt));

sycl/test/esimd/on-device/slm_barrier.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//==---------------- slm_barrier.cpp - DPC++ ESIMD on-device test ---------==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
18
// TODO enable on Windows
29
// REQUIRES: linux
310
// REQUIRES: gpu

sycl/test/esimd/on-device/test_id_3d.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//==---------------- test_id_3d.cpp - DPC++ ESIMD on-device test ----------==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
18
// TODO enable on Windows
29
// REQUIRES: linux
310
// REQUIRES: gpu

sycl/test/esimd/on-device/vadd_1d.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//==---------------- vadd_1d.cpp - DPC++ ESIMD on-device test -------------==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
18
// TODO enable on Windows
29
// REQUIRES: linux
310
// REQUIRES: gpu

sycl/test/esimd/on-device/vadd_2d.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//==---------------- vadd_2d.cpp - DPC++ ESIMD on-device test -------------==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
18
// TODO enable on Windows
29
// REQUIRES: linux
310
// REQUIRES: gpu

sycl/test/esimd/on-device/vadd_usm.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//==---------------- vadd_usm.cpp - DPC++ ESIMD on-device test ------------==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
18
// TODO enable on Windows
29
// REQUIRES: linux
310
// REQUIRES: gpu

0 commit comments

Comments
 (0)