Skip to content

Commit e7b4372

Browse files
author
Victor Lomuller
committed
Merge branch 'sycl' into work_group_static
2 parents 32589ef + 130a901 commit e7b4372

File tree

105 files changed

+486
-176
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+486
-176
lines changed

.github/workflows/release-binaries.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ jobs:
436436

437437
- name: Attest Build Provenance
438438
id: provenance
439-
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
439+
uses: actions/attest-build-provenance@ef244123eb79f2f7a7e75d99086184180e6d0018 # v1.4.4
440440
with:
441441
subject-path: ${{ needs.prepare.outputs.release-binary-filename }}
442442

.github/workflows/release-sources.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
- name: Attest Build Provenance
9393
if: github.event_name != 'pull_request'
9494
id: provenance
95-
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
95+
uses: actions/attest-build-provenance@ef244123eb79f2f7a7e75d99086184180e6d0018 # v1.4.4
9696
with:
9797
subject-path: "*.xz"
9898
- if: github.event_name != 'pull_request'

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ jobs:
5757

5858
# Upload the results to GitHub's code scanning dashboard.
5959
- name: "Upload to code-scanning"
60-
uses: github/codeql-action/upload-sarif@662472033e021d55d94146f66f6058822b0b39fd # v3.27.0
60+
uses: github/codeql-action/upload-sarif@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
6161
with:
6262
sarif_file: results.sarif

.github/workflows/sycl-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ jobs:
198198
echo "TAG=$(date +'%Y-%m-%d')-${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"
199199
fi
200200
- name: Upload binaries
201-
uses: softprops/action-gh-release@e7a8f85e1c67a31e6ed99a94b41bd0b71bbee6b8
201+
uses: softprops/action-gh-release@01570a1f39cb168c169c802c3bceb9e93fb10974
202202
with:
203203
files: |
204204
sycl_linux.tar.gz

clang/lib/Driver/ToolChains/SYCL.cpp

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,29 @@ SYCL::getDeviceLibraries(const Compilation &C, const llvm::Triple &TargetTriple,
576576
}
577577
};
578578

579+
addLibraries(SYCLDeviceWrapperLibs);
580+
if (IsSpirvAOT)
581+
addLibraries(SYCLDeviceFallbackLibs);
582+
583+
bool NativeBfloatLibs;
584+
bool NeedBfloatLibs = selectBfloatLibs(TargetTriple, C, NativeBfloatLibs);
585+
if (NeedBfloatLibs) {
586+
// Add native or fallback bfloat16 library.
587+
if (NativeBfloatLibs)
588+
addLibraries(SYCLDeviceBfloat16NativeLib);
589+
else
590+
addLibraries(SYCLDeviceBfloat16FallbackLib);
591+
}
592+
593+
// Link in ITT annotations library unless fsycl-no-instrument-device-code
594+
// is specified. This ensures that we are ABI-compatible with the
595+
// instrumented device code, which was the default not so long ago.
596+
if (Args.hasFlag(options::OPT_fsycl_instrument_device_code,
597+
options::OPT_fno_sycl_instrument_device_code, true))
598+
addLibraries(SYCLDeviceAnnotationLibs);
599+
600+
#if !defined(_WIN32)
601+
579602
auto addSingleLibrary = [&](const DeviceLibOptInfo &Lib) {
580603
if (!DeviceLibLinkInfo[Lib.DeviceLibOption])
581604
return;
@@ -636,28 +659,6 @@ SYCL::getDeviceLibraries(const Compilation &C, const llvm::Triple &TargetTriple,
636659
return JIT;
637660
};
638661

639-
addLibraries(SYCLDeviceWrapperLibs);
640-
if (IsSpirvAOT)
641-
addLibraries(SYCLDeviceFallbackLibs);
642-
643-
bool NativeBfloatLibs;
644-
bool NeedBfloatLibs = selectBfloatLibs(TargetTriple, C, NativeBfloatLibs);
645-
if (NeedBfloatLibs) {
646-
// Add native or fallback bfloat16 library.
647-
if (NativeBfloatLibs)
648-
addLibraries(SYCLDeviceBfloat16NativeLib);
649-
else
650-
addLibraries(SYCLDeviceBfloat16FallbackLib);
651-
}
652-
653-
// Link in ITT annotations library unless fsycl-no-instrument-device-code
654-
// is specified. This ensures that we are ABI-compatible with the
655-
// instrumented device code, which was the default not so long ago.
656-
if (Args.hasFlag(options::OPT_fsycl_instrument_device_code,
657-
options::OPT_fno_sycl_instrument_device_code, true))
658-
addLibraries(SYCLDeviceAnnotationLibs);
659-
660-
#if !defined(_WIN32)
661662
std::string SanitizeVal;
662663
size_t sanitizer_lib_idx = getSingleBuildTarget();
663664
if (Arg *A = Args.getLastArg(options::OPT_fsanitize_EQ,

devops/cts_exclude_filter_L0_GPU

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# CMPLRLLVM-61839
2-
multi_ptr
1+
# CMPLRTST-26179
2+
device

devops/cts_exclude_filter_OCL_CPU

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@
22
math_builtin_api
33
# https://github.com/intel/llvm/issues/13574
44
hierarchical
5-
# CMPLRLLVM-61839
6-
multi_ptr

libclc/amdgcn-amdhsa/libspirv/atomic/atomic_helpers.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ extern int __oclc_amdgpu_reflect(__constant char *);
1919
OUT_ORDER) \
2020
{ \
2121
switch (IN_SCOPE) { \
22+
case Invocation: \
2223
case Subgroup: \
2324
OUT_SCOPE = __HIP_MEMORY_SCOPE_WAVEFRONT; \
2425
break; \

libclc/ptx-nvidiacl/libspirv/atomic/atomic_cmpxchg.cl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ _CLC_OVERLOAD _CLC_DECL void __spirv_MemoryBarrier(unsigned int, unsigned int);
1616
#define __CLC_NVVM_ATOMIC_CAS_IMPL_ORDER(TYPE, TYPE_NV, TYPE_MANGLED_NV, OP, \
1717
ADDR_SPACE, ADDR_SPACE_NV, ORDER) \
1818
switch (scope) { \
19+
case Invocation: \
1920
case Subgroup: \
2021
case Workgroup: { \
2122
if (__clc_nvvm_reflect_arch() >= 600) { \
@@ -44,6 +45,7 @@ _CLC_OVERLOAD _CLC_DECL void __spirv_MemoryBarrier(unsigned int, unsigned int);
4445
#define __CLC_NVVM_ATOMIC_CAS_IMPL_ACQUIRE_FENCE( \
4546
TYPE, TYPE_NV, TYPE_MANGLED_NV, OP, ADDR_SPACE, ADDR_SPACE_NV) \
4647
switch (scope) { \
48+
case Invocation: \
4749
case Subgroup: \
4850
case Workgroup: { \
4951
if (__clc_nvvm_reflect_arch() >= 600) { \

libclc/ptx-nvidiacl/libspirv/atomic/atomic_helpers.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ _CLC_OVERLOAD _CLC_DECL void __spirv_MemoryBarrier(unsigned int, unsigned int);
1818
#define __CLC_NVVM_ATOMIC_IMPL_ORDER(TYPE, TYPE_NV, TYPE_MANGLED_NV, OP, \
1919
ADDR_SPACE, ADDR_SPACE_NV, ORDER) \
2020
switch (scope) { \
21+
case Invocation: \
2122
case Subgroup: \
2223
case Workgroup: { \
2324
if (__clc_nvvm_reflect_arch() >= 600) { \
@@ -46,6 +47,7 @@ _CLC_OVERLOAD _CLC_DECL void __spirv_MemoryBarrier(unsigned int, unsigned int);
4647
#define __CLC_NVVM_ATOMIC_IMPL_ACQUIRE_FENCE(TYPE, TYPE_NV, TYPE_MANGLED_NV, \
4748
OP, ADDR_SPACE, ADDR_SPACE_NV) \
4849
switch (scope) { \
50+
case Invocation: \
4951
case Subgroup: \
5052
case Workgroup: { \
5153
if (__clc_nvvm_reflect_arch() >= 600) { \

0 commit comments

Comments
 (0)