Skip to content

Commit 3d7fe92

Browse files
committed
Merge from 'sycl' to 'sycl-web' (15 commits)
CONFLICT (content): Merge conflict in libclc/CMakeLists.txt CONFLICT (rename/delete): libclc/opencl/lib/generic/workitem/get_num_groups.cl renamed to libclc/clc/include/clc/common/clc_step.h in HEAD, but deleted in 19964c3. CONFLICT (modify/delete): libclc/clc/include/clc/common/clc_step.h deleted in 19964c3 and modified in HEAD. Version HEAD of libclc/clc/include/clc/common/clc_step.h left in tree. CONFLICT (rename/delete): libclc/opencl/lib/generic/workitem/get_local_size.cl renamed to libclc/clc/include/clc/shared/clc_vload.h in HEAD, but deleted in 19964c3. CONFLICT (modify/delete): libclc/clc/include/clc/shared/clc_vload.h deleted in 19964c3 and modified in HEAD. Version HEAD of libclc/clc/include/clc/shared/clc_vload.h left in tree. CONFLICT (rename/delete): libclc/opencl/lib/generic/workitem/get_local_id.cl renamed to libclc/clc/include/clc/shared/clc_vstore.h in HEAD, but deleted in 19964c3. CONFLICT (modify/delete): libclc/clc/include/clc/shared/clc_vstore.h deleted in 19964c3 and modified in HEAD. Version HEAD of libclc/clc/include/clc/shared/clc_vstore.h left in tree. CONFLICT (rename/delete): libclc/opencl/lib/generic/workitem/get_group_id.cl renamed to libclc/clc/lib/generic/async/clc_prefetch.cl in HEAD, but deleted in 19964c3. CONFLICT (modify/delete): libclc/clc/lib/generic/async/clc_prefetch.cl deleted in 19964c3 and modified in HEAD. Version HEAD of libclc/clc/lib/generic/async/clc_prefetch.cl left in tree. CONFLICT (rename/delete): libclc/opencl/lib/generic/workitem/get_work_dim.cl renamed to libclc/clc/lib/generic/common/clc_step.cl in HEAD, but deleted in 19964c3. CONFLICT (modify/delete): libclc/clc/lib/generic/common/clc_step.cl deleted in 19964c3 and modified in HEAD. Version HEAD of libclc/clc/lib/generic/common/clc_step.cl left in tree. CONFLICT (rename/delete): libclc/opencl/lib/generic/workitem/get_global_offset.cl renamed to libclc/clc/lib/generic/common/clc_step.inc in HEAD, but deleted in 19964c3. CONFLICT (modify/delete): libclc/clc/lib/generic/common/clc_step.inc deleted in 19964c3 and modified in HEAD. Version HEAD of libclc/clc/lib/generic/common/clc_step.inc left in tree. CONFLICT (content): Merge conflict in libclc/opencl/lib/generic/async/prefetch.inc CONFLICT (content): Merge conflict in libclc/opencl/lib/generic/shared/vload.cl CONFLICT (content): Merge conflict in libclc/opencl/lib/generic/shared/vstore.cl
2 parents 33cc337 + 19964c3 commit 3d7fe92

File tree

55 files changed

+964
-179
lines changed

Some content is hidden

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

55 files changed

+964
-179
lines changed

.github/workflows/sycl-rel-nightly.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
steps:
2727
- uses: actions/checkout@v4
2828
with:
29-
ref: ${{ inputs.testing_branch || 'sycl-rel-6_1_0' }}
29+
ref: ${{ inputs.testing_branch || 'sycl-rel-6_2' }}
3030
- run: git show --quiet | tee -a $GITHUB_STEP_SUMMARY
3131

3232
- id: is_new_commit
@@ -46,7 +46,7 @@ jobs:
4646
build_artifact_suffix: default
4747
build_configure_extra_args: '--disable-jit --no-assertions --add_security_flags=sanitize --hip --cuda'
4848
build_image: ghcr.io/intel/llvm/ubuntu2204_build:latest
49-
build_ref: ${{ inputs.testing_branch || 'sycl-rel-6_1_0' }}
49+
build_ref: ${{ inputs.testing_branch || 'sycl-rel-6_2' }}
5050
pack_release: 'true'
5151

5252
# We upload the build for people to download/use, override its name and
@@ -94,7 +94,7 @@ jobs:
9494
target_devices: ${{ matrix.target_devices }}
9595
tests_selector: e2e
9696
extra_lit_opts: ${{ matrix.extra_lit_opts }}
97-
repo_ref: ${{ inputs.testing_branch || 'sycl-rel-6_1_0' }}
97+
repo_ref: ${{ inputs.testing_branch || 'sycl-rel-6_2' }}
9898
devops_ref: sycl
9999
sycl_toolchain_artifact: sycl_linux_default
100100
sycl_toolchain_archive: ${{ needs.ubuntu2204_build.outputs.artifact_archive_name }}
@@ -105,7 +105,7 @@ jobs:
105105
if: ${{ github.repository == 'intel/llvm' && needs.check_for_new_commits.outputs.is_new_commit != 'false' }}
106106
uses: ./.github/workflows/sycl-windows-build.yml
107107
with:
108-
ref: ${{ inputs.testing_branch || 'sycl-rel-6_1_0' }}
108+
ref: ${{ inputs.testing_branch || 'sycl-rel-6_2' }}
109109
build_configure_extra_args: '--disable-jit --no-assertions --add_security_flags=sanitize'
110110
pack_release: 'true'
111111

@@ -137,7 +137,7 @@ jobs:
137137
target_devices: level_zero:gpu
138138
sycl_toolchain_archive: ${{ needs.build-win.outputs.artifact_archive_name }}
139139
extra_lit_opts: ${{ matrix.extra_lit_opts }}
140-
repo_ref: ${{ inputs.testing_branch || 'sycl-rel-6_1_0' }}
140+
repo_ref: ${{ inputs.testing_branch || 'sycl-rel-6_2' }}
141141
devops_ref: sycl
142142

143143
cuda-aws-start:
@@ -147,7 +147,7 @@ jobs:
147147
secrets: inherit
148148
with:
149149
mode: start
150-
ref: ${{ inputs.testing_branch || 'sycl-rel-6_1_0' }}
150+
ref: ${{ inputs.testing_branch || 'sycl-rel-6_2' }}
151151

152152
cuda-run-tests:
153153
needs: [ubuntu2204_build, cuda-aws-start]
@@ -159,7 +159,7 @@ jobs:
159159
image: ghcr.io/intel/llvm/ubuntu2204_build:latest
160160
image_options: -u 1001 --gpus all --cap-add SYS_ADMIN --env NVIDIA_DISABLE_REQUIRE=1
161161
target_devices: cuda:gpu
162-
repo_ref: ${{ inputs.testing_branch || 'sycl-rel-6_1_0' }}
162+
repo_ref: ${{ inputs.testing_branch || 'sycl-rel-6_2' }}
163163
devops_ref: sycl
164164

165165
sycl_toolchain_artifact: sycl_linux_default
@@ -173,7 +173,7 @@ jobs:
173173
secrets: inherit
174174
with:
175175
mode: stop
176-
ref: ${{ inputs.testing_branch || 'sycl-rel-6_1_0' }}
176+
ref: ${{ inputs.testing_branch || 'sycl-rel-6_2' }}
177177

178178
build-sycl-cts:
179179
needs: ubuntu2204_build
@@ -185,7 +185,7 @@ jobs:
185185
cts_testing_mode: 'build-only'
186186
image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
187187
tests_selector: cts
188-
repo_ref: ${{ inputs.testing_branch || 'sycl-rel-6_1_0' }}
188+
repo_ref: ${{ inputs.testing_branch || 'sycl-rel-6_2' }}
189189
devops_ref: sycl
190190
tests_ref: 87f8677c4b67cfe56ad6f09246036f10c306c977
191191
sycl_toolchain_artifact: sycl_linux_default
@@ -217,7 +217,7 @@ jobs:
217217
image_options: ${{ matrix.image_options }}
218218
target_devices: ${{ matrix.target_devices }}
219219
tests_selector: cts
220-
repo_ref: ${{ inputs.testing_branch || 'sycl-rel-6_1_0' }}
220+
repo_ref: ${{ inputs.testing_branch || 'sycl-rel-6_2' }}
221221
devops_ref: sycl
222222
sycl_toolchain_artifact: sycl_linux_default
223223
sycl_toolchain_archive: ${{ needs.ubuntu2204_build.outputs.artifact_archive_name }}

.github/workflows/ur-build-hw.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ jobs:
164164
- name: Test adapter specific
165165
env:
166166
ZE_ENABLE_LOADER_DEBUG_TRACE: 1
167-
LIT_OPTS: "--timeout 120 --filter-out 'adapters/level_zero/memcheck.test'"
167+
LIT_OPTS: "--timeout 120"
168+
# These tests cause timeouts on CI
169+
LIT_FILTER_OUT: "(adapters/level_zero/memcheck.test|adapters/level_zero/v2/deferred_kernel_memcheck.test)"
168170
run: cmake --build build -j $(nproc) -- check-unified-runtime-adapter
169171
# Don't run adapter specific tests when building multiple adapters
170172
if: ${{ matrix.adapter.other_name == '' }}

clang/lib/CodeGen/CodeGenModule.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6902,7 +6902,8 @@ void CodeGenModule::EmitGlobalFunctionDefinition(GlobalDecl GD,
69026902
if (GD.getKernelReferenceKind() == KernelReferenceKind::Stub &&
69036903
!D->hasAttr<NoInlineAttr>() &&
69046904
!Fn->hasFnAttribute(llvm::Attribute::NoInline) &&
6905-
!D->hasAttr<OptimizeNoneAttr>() &&
6905+
!D->hasAttr<OptimizeNoneAttr>() && !LangOpts.SYCLIsNativeCPU &&
6906+
!LangOpts.SYCLIsDevice &&
69066907
!Fn->hasFnAttribute(llvm::Attribute::OptimizeNone) &&
69076908
!ShouldAddOptNone) {
69086909
Fn->addFnAttr(llvm::Attribute::AlwaysInline);

clang/lib/Sema/SemaDeclAttr.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6961,10 +6961,8 @@ ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D, const ParsedAttr &AL,
69616961
Aux && AL.existsInTarget(*Aux)))) {
69626962
if (AL.isRegularKeywordAttribute() || AL.isDeclspecAttribute()) {
69636963
S.Diag(AL.getLoc(), AL.isRegularKeywordAttribute()
6964-
? (unsigned)diag::err_keyword_not_supported_on_target
6965-
: AL.isDeclspecAttribute()
6966-
? (unsigned)diag::warn_unhandled_ms_attribute_ignored
6967-
: (unsigned)diag::warn_unknown_attribute_ignored)
6964+
? diag::err_keyword_not_supported_on_target
6965+
: diag::warn_unhandled_ms_attribute_ignored)
69686966
<< AL.getAttrName() << AL.getRange();
69696967
} else {
69706968
S.DiagnoseUnknownAttribute(AL);

clang/test/SemaSYCL/intel-fpga-local.cpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sycl::queue deviceQueue;
99
void diagnostics()
1010
{
1111
// **doublepump
12-
//expected-warning@+1 {{unknown attribute 'doublepump' ignored}}
12+
//expected-warning@+1 {{unknown attribute 'intelfpga::doublepump' ignored}}
1313
[[intelfpga::doublepump]] unsigned int doublepump_var[64];
1414

1515
//expected-error@+2{{attributes are not compatible}}
@@ -29,7 +29,7 @@ void diagnostics()
2929
unsigned int dpump_reg[64];
3030

3131
// **singlepump
32-
//expected-warning@+1 {{unknown attribute 'singlepump' ignored}}
32+
//expected-warning@+1 {{unknown attribute 'intelfpga::singlepump' ignored}}
3333
[[intelfpga::singlepump]] unsigned int singlepump_var[64];
3434

3535
//expected-error@+1{{attributes are not compatible}}
@@ -48,7 +48,7 @@ void diagnostics()
4848
unsigned int spump_reg[64];
4949

5050
// **fpga_register
51-
//expected-warning@+1 {{unknown attribute 'register' ignored}}
51+
//expected-warning@+1 {{unknown attribute 'intelfpga::register' ignored}}
5252
[[intelfpga::register]] unsigned int reg_var[64];
5353

5454
//expected-warning@+2{{attribute 'fpga_register' is already applied}}
@@ -155,7 +155,7 @@ void diagnostics()
155155
[[intel::fpga_memory]]
156156
[[intel::fpga_memory]] unsigned int mem_mem[64]; // OK
157157

158-
//expected-warning@+1 {{unknown attribute 'memory' ignored}}
158+
//expected-warning@+1 {{unknown attribute 'intelfpga::memory' ignored}}
159159
[[intelfpga::memory]] unsigned int memory_var[64];
160160

161161
// Check to see if there's a duplicate attribute with different values
@@ -189,7 +189,7 @@ void diagnostics()
189189
[[intel::fpga_memory]] unsigned int mem_mlabs_block_ram[64];
190190

191191
// **bankwidth
192-
//expected-warning@+1 {{unknown attribute 'bankwidth' ignored}}
192+
//expected-warning@+1 {{unknown attribute 'intelfpga::bankwidth' ignored}}
193193
[[intelfpga::bankwidth(4)]] unsigned int bankwidth_var[32];
194194

195195
// Checking of incompatible attributes.
@@ -200,7 +200,7 @@ void diagnostics()
200200
unsigned int bankwidth_reg[64];
201201

202202
// **max_replicates
203-
//expected-warning@+1 {{unknown attribute 'max_replicates' ignored}}
203+
//expected-warning@+1 {{unknown attribute 'intelfpga::max_replicates' ignored}}
204204
[[intelfpga::max_replicates(2)]] unsigned int max_replicates_var[64];
205205

206206
// Checking of different argument values.
@@ -223,7 +223,7 @@ void diagnostics()
223223
//expected-error@+1{{'simple_dual_port' attribute takes no arguments}}
224224
[[intel::simple_dual_port(0)]] unsigned int sdp[64];
225225

226-
//expected-warning@+1 {{unknown attribute 'simple_dual_port' ignored}}
226+
//expected-warning@+1 {{unknown attribute 'intelfpga::simple_dual_port' ignored}}
227227
[[intelfpga::simple_dual_port]] unsigned int dual_port_var[64];
228228

229229
//expected-note@+1 {{conflicting attribute is here}}
@@ -259,7 +259,7 @@ void diagnostics()
259259
[[intel::bankwidth(0)]] unsigned int bw_zero[64];
260260

261261
// **private_copies
262-
//expected-warning@+1 {{unknown attribute 'private_copies' ignored}}
262+
//expected-warning@+1 {{unknown attribute 'intelfpga::private_copies' ignored}}
263263
[[intelfpga::private_copies(8)]] unsigned int private_copies_var[64];
264264

265265
// Checking of incompatible attributes.
@@ -316,11 +316,11 @@ void diagnostics()
316316
//expected-error@+1{{requires a positive integral compile time constant expression}}
317317
[[intel::numbanks(0)]] unsigned int nb_zero[64];
318318

319-
//expected-warning@+1 {{unknown attribute 'numbanks' ignored}}
319+
//expected-warning@+1 {{unknown attribute 'intelfpga::numbanks' ignored}}
320320
[[intelfpga::numbanks(8)]] unsigned int numbanks_var[32];
321321

322322
// **merge
323-
//expected-warning@+1 {{unknown attribute 'merge' ignored}}
323+
//expected-warning@+1 {{unknown attribute 'intelfpga::merge' ignored}}
324324
[[intelfpga::merge("mrg1", "depth")]] unsigned int merge_depth_var[64];
325325

326326
//expected-error@+2{{attributes are not compatible}}
@@ -386,11 +386,11 @@ void diagnostics()
386386
//expected-error@+1{{'bank_bits' attribute requires a non-negative integral compile time constant expression}}
387387
[[intel::bank_bits(-1)]] unsigned int bb_negative_arg[4];
388388

389-
//expected-warning@+1 {{unknown attribute 'bank_bits' ignored}}
389+
//expected-warning@+1 {{unknown attribute 'intelfpga::bank_bits' ignored}}
390390
[[intelfpga::bank_bits(2, 3, 4, 5)]] unsigned int bankbits_var[64];
391391

392392
// **force_pow2_depth
393-
//expected-warning@+1 {{unknown attribute 'force_pow2_depth' ignored}}
393+
//expected-warning@+1 {{unknown attribute 'intelfpga::force_pow2_depth' ignored}}
394394
[[intelfpga::force_pow2_depth(0)]] unsigned int arr_force_p2d_0_var[64];
395395

396396
//expected-error@+1{{'force_pow2_depth' attribute requires integer constant value 0 or 1}}
@@ -423,16 +423,16 @@ void check_gnu_style() {
423423
//expected-warning@+1{{unknown attribute 'register' ignored}}
424424
int __attribute__((register)) reg;
425425

426-
//expected-warning@+1{{unknown attribute '__singlepump__' ignored}}
426+
//expected-warning@+1{{unknown attribute 'singlepump' ignored}}
427427
unsigned int __attribute__((__singlepump__)) singlepump;
428428

429-
//expected-warning@+1{{unknown attribute '__doublepump__' ignored}}
429+
//expected-warning@+1{{unknown attribute 'doublepump' ignored}}
430430
unsigned int __attribute__((__doublepump__)) doublepump;
431431

432-
//expected-warning@+1{{unknown attribute '__private_copies__' ignored}}
432+
//expected-warning@+1{{unknown attribute 'private_copies' ignored}}
433433
int __attribute__((__private_copies__(4))) private_copies;
434434

435-
//expected-warning@+1{{unknown attribute '__merge__' ignored}}
435+
//expected-warning@+1{{unknown attribute 'merge' ignored}}
436436
int __attribute__((__merge__("mrg1","depth"))) merge;
437437

438438
//expected-warning@+1{{unknown attribute 'max_replicates' ignored}}

clang/test/SemaSYCL/intel-fpga-no-global-work-offset.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
[[intel::no_global_work_offset(0, 1)]] void test1() {} // expected-error{{'no_global_work_offset' attribute takes no more than 1 argument}}
1111

12-
[[intelfpga::no_global_work_offset]] void RemovedSpell(); // expected-warning {{unknown attribute 'no_global_work_offset' ignored}}
12+
[[intelfpga::no_global_work_offset]] void RemovedSpell(); // expected-warning {{unknown attribute 'intelfpga::no_global_work_offset' ignored}}
1313

1414
// Test that checks wrong function template instantiation and ensures that the type
1515
// is checked properly when instantiating from the template definition.

clang/test/SemaSYCL/intel-max-global-work-dim-device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ using namespace sycl;
88
queue q;
99

1010
struct Func {
11-
// expected-warning@+1 {{unknown attribute 'max_global_work_dim' ignored}}
11+
// expected-warning@+1 {{unknown attribute 'intelfpga::max_global_work_dim' ignored}}
1212
[[intelfpga::max_global_work_dim(2)]] void operator()() const {}
1313
};
1414

clang/test/SemaSYCL/intel-max-work-group-size.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,6 @@ struct DAFuncObj {
141141
};
142142

143143
struct Func {
144-
// expected-warning@+1 {{unknown attribute 'max_work_group_size' ignored}}
144+
// expected-warning@+1 {{unknown attribute 'intelfpga::max_work_group_size' ignored}}
145145
[[intelfpga::max_work_group_size(1, 1, 1)]] void operator()() const {}
146146
};

clang/test/SemaSYCL/num_simd_work_items.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using namespace sycl;
88
queue q;
99

10-
// expected-warning@+1 {{unknown attribute 'num_simd_work_items' ignored}}
10+
// expected-warning@+1 {{unknown attribute 'intelfpga::num_simd_work_items' ignored}}
1111
[[intelfpga::num_simd_work_items(22)]] void RemoveSpelling();
1212

1313
// No diagnostic is emitted because the arguments match.

clang/test/SemaSYCL/scheduler_target_fmax_mhz.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Test that checks scheduler_target_fmax_mhz attribute support on Function.
44

55
// Test for removed deprecated spelling of scheduler_target_fmax_mhz attribute.
6-
// expected-warning@+1 {{unknown attribute 'scheduler_target_fmax_mhz' ignored}}
6+
// expected-warning@+1 {{unknown attribute 'intelfpga::scheduler_target_fmax_mhz' ignored}}
77
[[intelfpga::scheduler_target_fmax_mhz(2)]] void deprecate() {}
88

99
// Tests for incorrect argument values for Intel FPGA scheduler_target_fmax_mhz function attribute.

0 commit comments

Comments
 (0)