Skip to content

Commit

Permalink
[NFC][SYCL][Joint Matrix] Added licence header to tests (#13726)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemrad authored May 10, 2024
1 parent 0dfd5e4 commit 144d0f4
Show file tree
Hide file tree
Showing 39 changed files with 306 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sycl/test-e2e/Matrix/element_wise_all_ops_half_impl.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---element_wise_all_ops_half_impl.hpp - DPC++ joint_matrix------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#define TM 8
#define TK 16

Expand Down
8 changes: 8 additions & 0 deletions sycl/test-e2e/Matrix/element_wise_all_ops_int8_impl.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---element_wise_all_ops_int8_impl.hpp - DPC++ joint_matrix------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#define TM 8
#define TK 32

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---element_wise_all_ops_int8_packed_impl.hpp - DPC++ joint_matrix-----===//
//
// 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
//
//===----------------------------------------------------------------------===//

#define TM 8
#define TK 32

Expand Down
8 changes: 8 additions & 0 deletions sycl/test-e2e/Matrix/element_wise_all_ops_tf32_impl.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---element_wise_all_ops_tf32_impl.hpp - DPC++ joint_matrix------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#define TM 8
#define TK 8

Expand Down
8 changes: 8 additions & 0 deletions sycl/test-e2e/Matrix/element_wise_all_sizes_impl.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---element_wise_all_ops_all_sizes_impl.hpp - DPC++ joint_matrix-------===//
//
// 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
//
//===----------------------------------------------------------------------===//

static constexpr size_t M_MULTIPLIER = 16;

static float make_fp32(bfloat16 x) {
Expand Down
8 changes: 8 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_all_sizes_impl.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---joint_matrix_all_sizes_impl.hpp - DPC++ joint_matrix---------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

static constexpr size_t M_MULTIPLIER = 16;

template <typename T1, typename T2, size_t M, size_t N, size_t K,
Expand Down
8 changes: 8 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_annotated_ptr_impl.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---joint_matrix_annotated_ptr_impl.hpp - DPC++ joint_matrix-----------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#include <sycl/usm.hpp>

#define TM 8
Expand Down
7 changes: 7 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_apply_bf16_impl.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//===---joint_matrix_apply_bf16_impl.hpp - DPC++ joint_matrix--------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#define TM 8
#define TK 16
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//==-joint_matrix_bfloat16_colmajorA_colmajorB_impl.hpp- DPC++ joint_matrix-==//
//
// 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
//
//===----------------------------------------------------------------------===//

#define TM 8
#define TK 16

Expand Down
8 changes: 8 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_bfloat16_impl.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---joint_matrix_bfloat16_impl.hpp - DPC++ joint_matrix----------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#define TM 8
#define TK 16

Expand Down
8 changes: 8 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_colA_rowB_colC_impl.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---joint_matrix_colA_rowB_colC_impl.hpp - DPC++ joint_matrix----------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#include <iostream>
#include <random>
#include <sycl/usm.hpp>
Expand Down
8 changes: 8 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_gemm_cuda.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---joint_matrix_gemm_cuda.hpp - DPC++ joint_matrix--------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

// This tests the latest unified matrix extension interfaces.
// Specifying the sm version via the --cuda-gpu-arch flag is necessary
// for the Nvidia case. DPC++ JIT compilation is not
Expand Down
8 changes: 8 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_half_impl.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---joint_matrix_half_impl.hpp - DPC++ joint_matrix--------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#define TM 8
#define TK 16

Expand Down
7 changes: 7 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_hip_apply.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//===---joint_matrix_hip_apply.hpp - DPC++ joint_matrix--------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#include <sycl/sycl.hpp>

Expand Down
8 changes: 8 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_hip_copy.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---joint_matrix_hip_copy.hpp - DPC++ joint_matrix---------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#include <sycl/sycl.hpp>

#include <cstddef>
Expand Down
8 changes: 8 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_hip_fill.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---joint_matrix_hip_fill.hpp - DPC++ joint_matrix---------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#include <sycl/sycl.hpp>

#include <cstddef>
Expand Down
8 changes: 8 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_hip_gfx90a.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---joint_matrix_hip_gfx90a.cpp - DPC++ joint_matrix-------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

// RUN: %{build} -fsycl -fsycl-targets=amd_gpu_gfx90a %s -o %t.out
// RUN: %{run} %t.out

Expand Down
8 changes: 8 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_hip_half_gfx90a.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---joint_matrix_hip_half_gfx90a.cpp - DPC++ joint_matrix--------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

// RUN: %{build} -fsycl -fsycl-targets=amd_gpu_gfx90a %s -o %t.out
// RUN: %{run} %t.out

Expand Down
7 changes: 7 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_hip_mfma.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//===---joint_matrix_hip_mfma.hpp - DPC++ joint_matrix---------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#include <sycl/sycl.hpp>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===-joint_matrix_int8_colmajorA_colmajorB_impl.hpp - DPC++ joint_matrix--===//
//
// 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
//
//===----------------------------------------------------------------------===//

#define TM 8
#define TK 32

Expand Down
8 changes: 8 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_int8_vnni_impl.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---joint_matrix_int8_vnni_impl.hpp - DPC++ joint_matrix---------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#define TM 8
#define TK 32

Expand Down
8 changes: 8 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_opt_kernel_feature.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---joint_matrix_opt_kernel_feature.cpp - DPC++ joint_matrix-----------===//
//
// 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: matrix

// RUN: %{build} -o %t.out
Expand Down
8 changes: 8 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_opt_kernel_feature_impl.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---joint_matrix_opt_kernel_feature_impl.hpp - DPC++ joint_matrix------===//
//
// 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
//
//===----------------------------------------------------------------------===//

using namespace sycl;
using namespace sycl::ext::oneapi::experimental::matrix;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---joint_matrix_opt_kernel_feature_unsupported_hw_impl.cpp------------===//
//
// 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: gpu-intel-gen12, gpu

// RUN: %{build} -o %t.out
Expand Down
8 changes: 8 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_out_bounds_impl.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---joint_matrix_out_bounds_impl.hpp - DPC++ joint_matrix--------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#include <iostream>
#include <sycl/usm.hpp>

Expand Down
8 changes: 8 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_prefetch_impl.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---joint_matrix_prefetch_impl.hpp - DPC++ joint_matrix----------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#include <sycl/usm.hpp>

#define TM 8
Expand Down
8 changes: 8 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_ss_int8_impl.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---joint_matrix_ss_int8_impl.hpp - DPC++ joint_matrix-----------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#define TM 8
#define TK 32

Expand Down
8 changes: 8 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_su_int8_impl.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---joint_matrix_su_int8_impl.hpp - DPC++ joint_matrix-----------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#define TM 8
#define TK 32

Expand Down
7 changes: 7 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_tensorcores_sm70.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//===---joint_matrix_tensorcores_sm70.cpp - DPC++ joint_matrix-------------===//
//
// 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: cuda
// RUN: %{build} -Xsycl-target-backend --cuda-gpu-arch=sm_70 -o %t.out
Expand Down
7 changes: 7 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_tensorcores_sm72.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//===----joint_matrix_tensorcores_sm72.cpp - DPC++ joint_matrix------------===//
//
// 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: cuda
// RUN: %{build} -Xsycl-target-backend --cuda-gpu-arch=sm_72 -o %t.out
Expand Down
7 changes: 7 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_tensorcores_sm80.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//===---joint_matrix_tensorcores_sm80.cpp - DPC++ joint_matrix-------------===//
//
// 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: cuda
// RUN: %{build} -Xsycl-target-backend --cuda-gpu-arch=sm_80 -o %t.out
Expand Down
8 changes: 8 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_tf32_impl.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---joint_matrix_tf32_impl.hpp - DPC++ joint_matrix--------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

constexpr size_t TM = 8;
constexpr size_t TK = 8;

Expand Down
8 changes: 8 additions & 0 deletions sycl/test-e2e/Matrix/joint_matrix_transposeC_impl.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===---joint_matrix_transposeC_impl.hpp - DPC++ joint_matrix--------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#include <sycl/usm.hpp>

using namespace sycl;
Expand Down
Loading

0 comments on commit 144d0f4

Please sign in to comment.