Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/sycl' into ben/explicit-update-impl
Browse files Browse the repository at this point in the history
  • Loading branch information
EwanC committed Mar 22, 2024
2 parents e4957e3 + 6246e20 commit 8ca0c00
Show file tree
Hide file tree
Showing 379 changed files with 2,443 additions and 1,012 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pr-code-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
pull_request_target:
branches:
- main
- sycl
- sycl-devops-pr/**
- sycl-rel-**

permissions:
pull-requests: write
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/sycl-linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,12 @@ jobs:
# TODO consider moving this to Dockerfile.
export LD_LIBRARY_PATH=/usr/local/cuda/compat/:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
cmake --build $GITHUB_WORKSPACE/build --target check-sycl
- name: check-sycl-unittests
if: always() && !cancelled() && contains(inputs.changes, 'sycl')
run: |
# TODO consider moving this to Dockerfile.
export LD_LIBRARY_PATH=/usr/local/cuda/compat/:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
cmake --build $GITHUB_WORKSPACE/build --target check-sycl-unittests
- name: check-llvm-spirv
if: always() && !cancelled() && contains(inputs.changes, 'llvm_spirv')
run: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/sycl-windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ jobs:
if: always() && !cancelled() && contains(inputs.changes, 'sycl')
run: |
cmake --build build --target check-sycl
- name: check-sycl-unittests
if: always() && !cancelled() && contains(inputs.changes, 'sycl')
run: |
cmake --build build --target check-sycl-unittests
- name: check-llvm-spirv
if: always() && !cancelled() && contains(inputs.changes, 'llvm_spirv')
run: |
Expand Down
4 changes: 3 additions & 1 deletion clang/include/clang/Basic/LangOptions.def
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,9 @@ LANGOPT(
"SYCL compiler assumes value fits within MAX_INT for member function of "
"get/operator[], get_id/operator[] and get_global_id/get_global_linear_id "
"in SYCL class id, iterm and nd_iterm")
LANGOPT(SYCLDisableRangeRounding, 1, 0, "Disable parallel for range rounding")
ENUM_LANGOPT(SYCLRangeRounding, SYCLRangeRoundingPreference, 2,
SYCLRangeRoundingPreference::On,
"Preference for SYCL parallel_for range rounding")
LANGOPT(SYCLEnableIntHeaderDiags, 1, 0, "Enable diagnostics that require the "
"SYCL integration header")
LANGOPT(SYCLAllowVirtualFunctions, 1, 0,
Expand Down
6 changes: 6 additions & 0 deletions clang/include/clang/Basic/LangOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@ class LangOptionsBase {
undefined
};

enum class SYCLRangeRoundingPreference {
On,
Disable,
Force,
};

enum HLSLLangStd {
HLSL_Unset = 0,
HLSL_2015 = 2015,
Expand Down
18 changes: 15 additions & 3 deletions clang/include/clang/Driver/Options.td
Original file line number Diff line number Diff line change
Expand Up @@ -3997,6 +3997,21 @@ def fsycl_host_compiler_options_EQ : Joined<["-"], "fsycl-host-compiler-options=
Visibility<[ClangOption, CLOption, DXCOption]>, HelpText<"When performing the host compilation with "
"-fsycl-host-compiler specified, use the given options during that compile. "
"Options are expected to be a quoted list of space separated options.">;
def fsycl_range_rounding_EQ : Joined<["-"], "fsycl-range-rounding=">,
Visibility<[ClangOption, CLOption, DXCOption, CC1Option]>,
Values<"on,disable,force">,
NormalizedValuesScope<"LangOptions::SYCLRangeRoundingPreference">,
NormalizedValues<["On", "Disable", "Force"]>,
MarshallingInfoEnum<LangOpts<"SYCLRangeRounding">, "On">,
HelpText<"Options for range rounding of SYCL range kernels: "
"disable (do not generate range rounded kernels) "
"force (only generate range rounded kernels) "
"on (generate range rounded kernels as well as unrounded kernels). Default is 'on'">;
def fsycl_disable_range_rounding : Flag<["-"], "fsycl-disable-range-rounding">,
Visibility<[ClangOption, CLOption, DXCOption, CC1Option]>,
Alias<fsycl_range_rounding_EQ>, AliasArgs<["disable"]>,
HelpText<"Deprecated: please use -fsycl-range-rounding=disable instead.">,
Flags<[Deprecated]>;
def fno_sycl_use_footer : Flag<["-"], "fno-sycl-use-footer">, Visibility<[ClangOption, CLOption, DXCOption]>,
HelpText<"Disable usage of the integration footer during SYCL enabled "
"compilations.">;
Expand Down Expand Up @@ -8256,9 +8271,6 @@ defm sycl_allow_func_ptr: BoolFOption<"sycl-allow-func-ptr",
def fenable_sycl_dae : Flag<["-"], "fenable-sycl-dae">,
HelpText<"Enable Dead Argument Elimination in SPIR kernels">,
MarshallingInfoFlag<LangOpts<"EnableDAEInSpirKernels">>;
def fsycl_disable_range_rounding : Flag<["-"], "fsycl-disable-range-rounding">,
HelpText<"Disable parallel for range rounding.">,
MarshallingInfoFlag<LangOpts<"SYCLDisableRangeRounding">>;
def fsycl_enable_int_header_diags: Flag<["-"], "fsycl-enable-int-header-diags">,
HelpText<"Enable diagnostics that require the SYCL integration header.">,
MarshallingInfoFlag<LangOpts<"SYCLEnableIntHeaderDiags">>;
Expand Down
Loading

0 comments on commit 8ca0c00

Please sign in to comment.