Skip to content

Commit 0c866e8

Browse files
author
Leonid Pauzin
authored
[SYCL][FPGA] Enable RuntimeAlignedINTEL SPIR-V extension (#4267)
1 parent 6a055ec commit 0c866e8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8711,7 +8711,8 @@ void SPIRVTranslator::ConstructJob(Compilation &C, const JobAction &JA,
87118711
",+SPV_INTEL_long_constant_composite"
87128712
",+SPV_INTEL_fpga_invocation_pipelining_attributes"
87138713
",+SPV_INTEL_fpga_dsp_control"
8714-
",+SPV_INTEL_arithmetic_fence";
8714+
",+SPV_INTEL_arithmetic_fence"
8715+
",+SPV_INTEL_runtime_aligned";
87158716
ExtArg = ExtArg + DefaultExtArg + INTELExtArg;
87168717
if (!C.getDriver().isFPGAEmulationMode())
87178718
// Enable SPV_INTEL_usm_storage_classes only for FPGA hardware,

clang/test/Driver/sycl-spirv-ext.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
// CHECK-DEFAULT-SAME:,+SPV_INTEL_fpga_invocation_pipelining_attributes
5050
// CHECK-DEFAULT-SAME:,+SPV_INTEL_fpga_dsp_control
5151
// CHECK-DEFAULT-SAME:,+SPV_INTEL_arithmetic_fence
52+
// CHECK-DEFAULT-SAME:,+SPV_INTEL_runtime_aligned
5253
// CHECK-DEFAULT-SAME:,+SPV_INTEL_token_type"
5354
// CHECK-FPGA-HW: llvm-spirv{{.*}}"-spirv-ext=-all
5455
// CHECK-FPGA-HW-SAME:,+SPV_EXT_shader_atomic_float_add
@@ -74,4 +75,5 @@
7475
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_fpga_invocation_pipelining_attributes
7576
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_fpga_dsp_control
7677
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_arithmetic_fence
78+
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_runtime_aligned
7779
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_usm_storage_classes"

0 commit comments

Comments
 (0)