Skip to content

Commit 6b16fbc

Browse files
author
iclsrc
committed
Merge from 'sycl' to 'sycl-web'
2 parents 139b7d1 + 1927d21 commit 6b16fbc

34 files changed

+342
-975
lines changed

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ opencl/ @intel/llvm-reviewers-runtime
1818
# OpenCL "offline" compiler
1919
opencl/opencl-aot/ @intel/dpcpp-tools-reviewers
2020

21+
# libclc library
22+
libclc/ @intel/llvm-reviewers-cuda
23+
2124
# Device library
2225
libdevice/ @intel/llvm-reviewers-runtime
2326

.github/workflows/sycl_nightly.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,3 @@ jobs:
6060
tags: |
6161
ghcr.io/${{ github.repository }}/sycl_ubuntu2004_nightly:no-drivers-${{ github.sha }}
6262
ghcr.io/${{ github.repository }}/sycl_ubuntu2004_nightly:no-drivers
63-
ubuntu2004_build_test_new_pm:
64-
# Default Linux building and LIT testing using new Pass Manager by default
65-
if: github.repository == 'intel/llvm'
66-
uses: ./.github/workflows/sycl_linux_build_and_test.yml
67-
with:
68-
build_cache_root: "/__w/"
69-
build_cache_suffix: new_pm
70-
build_artifact_suffix: new_pm
71-
build_configure_extra_args: '--hip --cuda --cmake-opt=-DLLVM_ENABLE_NEW_PASS_MANAGER=ON'
72-
lts_config: "hip_amdgpu;ocl_x64"

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3299,6 +3299,10 @@ def err_attribute_argument_is_zero : Error<
32993299
def warn_attribute_argument_n_negative : Warning<
33003300
"%0 attribute parameter %1 is negative and will be ignored">,
33013301
InGroup<CudaCompat>;
3302+
def warn_reqd_sub_group_attribute_cuda_n_32
3303+
: Warning<"attribute argument %0 is invalid and will be ignored; CUDA "
3304+
"requires sub_group size 32">,
3305+
InGroup<CudaCompat>;
33023306
def err_property_function_in_objc_container : Error<
33033307
"use of Objective-C property in function nested in Objective-C "
33043308
"container not supported, move function outside its container">;

clang/lib/Sema/SemaDeclAttr.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3894,6 +3894,10 @@ void Sema::AddIntelReqdSubGroupSize(Decl *D, const AttributeCommonInfo &CI,
38943894
<< CI << /*positive*/ 0;
38953895
return;
38963896
}
3897+
if (Context.getTargetInfo().getTriple().isNVPTX() && ArgVal != 32) {
3898+
Diag(E->getExprLoc(), diag::warn_reqd_sub_group_attribute_cuda_n_32)
3899+
<< ArgVal.getSExtValue();
3900+
}
38973901

38983902
// Check to see if there's a duplicate attribute with different values
38993903
// already applied to the declaration.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// RUN: %clang_cc1 -fsycl-is-device -triple nvptx -internal-isystem %S/Inputs -std=c++2b -verify %s
2+
//
3+
// This tests that a warning is returned when a sub group size other than 32 is
4+
// requested in the CUDA backend via the reqd_sub_group_size() kernel attribute.
5+
#include "sycl.hpp"
6+
7+
int main() {
8+
9+
sycl::queue Q;
10+
11+
Q.submit([&](sycl::handler &h) {
12+
h.single_task<class invalid_kernel>([=] [[sycl::reqd_sub_group_size(8)]] {}); // expected-warning {{attribute argument 8 is invalid and will be ignored; CUDA requires sub_group size 32}}
13+
});
14+
15+
Q.submit([&](sycl::handler &h) {
16+
h.single_task<class valid_kernel>([=] [[sycl::reqd_sub_group_size(32)]] {});
17+
});
18+
19+
return 0;
20+
}

devops/dependencies.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@
4242
},
4343
"linux_staging": {
4444
"compute_runtime": {
45-
"github_tag": "22.15.22905",
46-
"version": "22.15.22905",
47-
"url": "https://github.com/intel/compute-runtime/releases/tag/22.15.22905",
45+
"github_tag": "22.21.23269",
46+
"version": "22.21.23269",
47+
"url": "https://github.com/intel/compute-runtime/releases/tag/22.21.23269",
4848
"root": "{DEPS_ROOT}/opencl/runtime/linux/oclgpu"
4949
},
5050
"igc": {
51-
"github_tag": "igc-1.0.10840",
52-
"version": "1.0.10840",
53-
"url": "https://github.com/intel/intel-graphics-compiler/releases/tag/igc-1.0.10840",
51+
"github_tag": "igc-1.0.11279",
52+
"version": "1.0.11279",
53+
"url": "https://github.com/intel/intel-graphics-compiler/releases/tag/igc-1.0.11279",
5454
"root": "{DEPS_ROOT}/opencl/runtime/linux/oclgpu"
5555
},
5656
"cm": {
@@ -109,4 +109,4 @@
109109
"root": "{ARCHIVE_ROOT}/comp/oclfpga/win"
110110
}
111111
}
112-
}
112+
}

llvm-spirv/.github/workflows/check-code-style.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ name: Check code style
1111
on:
1212
pull_request:
1313
branches:
14-
- master
14+
- main
1515
- llvm_release_*
1616
paths-ignore: # no need to check formatting for:
1717
- 'docs/**' # documentation
@@ -63,7 +63,8 @@ jobs:
6363
sudo apt-get update
6464
sudo apt-get install -yqq \
6565
clang-format-${{ env.LLVM_VERSION }} clang-tidy-${{ env.LLVM_VERSION }} \
66-
llvm-${{ env.LLVM_VERSION }}-dev libomp-${{ env.LLVM_VERSION }}-dev
66+
llvm-${{ env.LLVM_VERSION }}-dev libomp-${{ env.LLVM_VERSION }}-dev \
67+
mlir-${{ env.LLVM_VERSION }}-tools \
6768
6869
- name: Generate compile command database
6970
if: ${{ steps.gather-list-of-changes.outputs.HAS_CHANGES }}

llvm-spirv/.github/workflows/check-in-tree-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name: In-tree build & tests
99
on:
1010
push:
1111
branches:
12-
- master
12+
- main
1313
- llvm_release_*
1414
paths-ignore: # no need to check build for:
1515
- 'docs/**' # documentation
@@ -18,7 +18,7 @@ on:
1818
- '**/check-out-of-tree-build.yml' # check-out-of-tree-build workflow
1919
pull_request:
2020
branches:
21-
- master
21+
- main
2222
- llvm_release_*
2323
paths-ignore: # no need to check build for:
2424
- 'docs/**' # documentation

llvm-spirv/.github/workflows/check-out-of-tree-build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name: Out-of-tree build & tests
99
on:
1010
push:
1111
branches:
12-
- master
12+
- main
1313
- llvm_release_*
1414
paths-ignore: # no need to check build for:
1515
- 'docs/**' # documentation
@@ -18,7 +18,7 @@ on:
1818
- '**/check-in-tree-build.yml' # check-in-tree-build workflow
1919
pull_request:
2020
branches:
21-
- master
21+
- main
2222
- llvm_release_*
2323
paths-ignore: # no need to check build for:
2424
- 'docs/**' # documentation
@@ -52,6 +52,7 @@ jobs:
5252
llvm-${{ env.LLVM_VERSION }}-dev \
5353
libomp-${{ env.LLVM_VERSION }}-dev \
5454
llvm-${{ env.LLVM_VERSION }}-tools \
55+
mlir-${{ env.LLVM_VERSION }}-tools \
5556
spirv-tools
5657
# Linux systems in GitHub Actions already have older versions of clang
5758
# pre-installed. Make sure to override these with the relevant version.

llvm-spirv/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,6 @@ it can be merged:
106106
[json grammar file]: https://github.com/KhronosGroup/SPIRV-Headers/blob/master/include/spirv/unified1/spirv.core.grammar.json
107107
[instructions]: https://github.com/KhronosGroup/SPIRV-Headers#generating-headers-from-the-json-grammar-for-the-spir-v-core-instruction-set
108108
[SPIR-V Headers repository]: https://github.com/KhronosGroup/SPIRV-Headers
109-
[internal SPIR-V header file]: https://github.com/KhronosGroup/SPIRV-LLVM-Translator/blob/master/lib/SPIRV/libSPIRV/spirv_internal.hpp
109+
[internal SPIR-V header file]: https://github.com/KhronosGroup/SPIRV-LLVM-Translator/blob/main/lib/SPIRV/libSPIRV/spirv_internal.hpp
110110
[Contributor License Agreement]: https://cla-assistant.io/KhronosGroup/SPIRV-LLVM-Translator
111111
[Travis CI testing]: https://travis-ci.org/KhronosGroup/SPIRV-LLVM-Translator

0 commit comments

Comments
 (0)