Skip to content

Commit 1e5d85d

Browse files
authored
[CI] Rename compiler variables (#18338)
We have `cxx` and `cxx_compiler`, very similar names so it can be confusing. `cxx` is used to build the project, while `cxx_compiler` is the compiler produced so renaming the latter to `sycl_compiler`. Additionally aligning the Windows with the Linux build job by renaming `compiler` to `cxx`. Addresses comments from #18322
1 parent d96db8e commit 1e5d85d

File tree

6 files changed

+19
-18
lines changed

6 files changed

+19
-18
lines changed

.github/workflows/sycl-linux-build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ jobs:
300300
testing_mode: build-only
301301
target_devices: all
302302
binaries_artifact: ${{ inputs.e2e_binaries_artifact }}
303-
cxx_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++
303+
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++
304304
extra_lit_opts: --param sycl_build_targets="spir;nvidia;amd"
305305

306306
- name: Remove E2E tests before spirv-backend run
@@ -315,5 +315,5 @@ jobs:
315315
testing_mode: build-only
316316
target_devices: all
317317
binaries_artifact: ${{ inputs.e2e_binaries_artifact }}_spirv_backend
318-
cxx_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++
318+
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++
319319
extra_lit_opts: --param spirv-backend=True

.github/workflows/sycl-post-commit.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
&& github.repository == 'intel/llvm'
103103
uses: ./.github/workflows/sycl-windows-build.yml
104104
with:
105-
compiler: icx
105+
cxx: icx
106106
build_configure_extra_args: -DCMAKE_C_FLAGS="/fp:precise /clang:-Wno-nonportable-include-path /clang:-Wno-cast-function-type-mismatch" -DCMAKE_CXX_FLAGS="/fp:precise /clang:-Wno-nonportable-include-path /clang:-Wno-cast-function-type-mismatch" -DCMAKE_EXE_LINKER_FLAGS=/manifest:no -DCMAKE_MODULE_LINKER_FLAGS=/manifest:no -DCMAKE_SHARED_LINKER_FLAGS=/manifest:no
107107
build_cache_suffix: icx
108108

@@ -119,7 +119,7 @@ jobs:
119119
runner: '["Windows","gen12"]'
120120
target_devices: "level_zero:gpu"
121121
sycl_toolchain_archive: ${{ needs.build-win.outputs.artifact_archive_name }}
122-
compiler: icx
122+
cxx: icx
123123

124124
macos_default:
125125
name: macOS

.github/workflows/sycl-windows-build.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ on:
2828
e2e_binaries_artifact:
2929
type: string
3030
required: false
31-
compiler:
31+
cxx:
3232
type: string
3333
required: false
3434
default: "cl"
@@ -67,7 +67,7 @@ on:
6767
type: choice
6868
options:
6969
- 3
70-
compiler:
70+
cxx:
7171
type: choice
7272
options:
7373
- cl
@@ -104,7 +104,7 @@ jobs:
104104
arch: amd64
105105
- name: Setup oneAPI env
106106
uses: ./devops/actions/setup_windows_oneapi_env
107-
if: ${{ always() && !cancelled() && inputs.compiler == 'icx' }}
107+
if: ${{ always() && !cancelled() && inputs.cxx == 'icx' }}
108108
- name: Set env
109109
run: |
110110
git config --system core.longpaths true
@@ -132,8 +132,8 @@ jobs:
132132
IF NOT EXIST D:\github\_work\cache\${{inputs.build_cache_suffix}} MKDIR D:\github\_work\cache\${{inputs.build_cache_suffix}}
133133
python.exe src/buildbot/configure.py -o build ^
134134
--ci-defaults %ARGS% ^
135-
"-DCMAKE_C_COMPILER=${{inputs.compiler}}" ^
136-
"-DCMAKE_CXX_COMPILER=${{inputs.compiler}}" ^
135+
"-DCMAKE_C_COMPILER=${{inputs.cxx}}" ^
136+
"-DCMAKE_CXX_COMPILER=${{inputs.cxx}}" ^
137137
"-DCMAKE_INSTALL_PREFIX=%GITHUB_WORKSPACE%\install" ^
138138
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache ^
139139
-DCMAKE_C_COMPILER_LAUNCHER=ccache ^
@@ -244,6 +244,7 @@ jobs:
244244
target_devices: all
245245
binaries_artifact: ${{ inputs.e2e_binaries_artifact }}
246246
extra_lit_opts: --param sycl_build_targets="spir"
247+
cxx: ${{ inputs.cxx }}
247248

248249
- name: Detect hung tests
249250
if: always()

.github/workflows/sycl-windows-run-tests.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ on:
5858
default: '{}'
5959
required: False
6060

61-
compiler:
61+
cxx:
6262
type: string
6363
required: false
6464
default: "cl"
@@ -117,7 +117,7 @@ jobs:
117117
arch: amd64
118118
- name: Setup oneAPI env
119119
uses: ./devops/actions/setup_windows_oneapi_env
120-
if: ${{ always() && !cancelled() && inputs.compiler == 'icx' }}
120+
if: ${{ always() && !cancelled() && inputs.cxx == 'icx' }}
121121
- name: Set env
122122
run: |
123123
git config --system core.longpaths true
@@ -164,7 +164,7 @@ jobs:
164164
target_devices: ${{ inputs.target_devices }}
165165
extra_lit_opts: ${{ inputs.extra_lit_opts }}
166166
retention-days: ${{ inputs.artifact_retention_days }}
167-
compiler: ${{ inputs.compiler }}
167+
cxx: ${{ inputs.cxx }}
168168

169169
- name: Run SYCL CTS Tests
170170
if: inputs.tests_selector == 'cts'

devops/actions/run-tests/e2e/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ inputs:
1515
required: false
1616
retention-days:
1717
required: false
18-
cxx_compiler:
18+
sycl_compiler:
1919
required: false
2020

2121

@@ -57,7 +57,7 @@ runs:
5757
if: inputs.testing_mode != 'run-only'
5858
shell: bash
5959
run: |
60-
cmake -GNinja -B./build-e2e -S./llvm/sycl/test-e2e -DCMAKE_CXX_COMPILER="${{ inputs.cxx_compiler || '$(which clang++)'}}" -DLLVM_LIT="$PWD/llvm/llvm/utils/lit/lit.py" ${{ steps.cmake_opts.outputs.opts }}
60+
cmake -GNinja -B./build-e2e -S./llvm/sycl/test-e2e -DCMAKE_CXX_COMPILER="${{ inputs.sycl_compiler || '$(which clang++)'}}" -DLLVM_LIT="$PWD/llvm/llvm/utils/lit/lit.py" ${{ steps.cmake_opts.outputs.opts }}
6161
- name: SYCL End-to-end tests
6262
shell: bash {0}
6363
env:

devops/actions/run-tests/windows/e2e/action.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ inputs:
1515
required: false
1616
retention-days:
1717
required: false
18-
cxx_compiler:
18+
sycl_compiler:
1919
required: false
20-
compiler:
20+
cxx:
2121
required: false
2222
default: "cl"
2323

@@ -63,7 +63,7 @@ runs:
6363
- name: Configure E2E tests
6464
shell: bash
6565
run: |
66-
cmake -GNinja -B build-e2e -S./llvm/sycl/test-e2e -DCMAKE_CXX_COMPILER="${{ inputs.cxx_compiler || '$(which clang++).exe' }}" -DLEVEL_ZERO_LIBS_DIR="D:\\github\\level-zero_win-sdk\\lib" -DLEVEL_ZERO_INCLUDE="D:\\github\\level-zero_win-sdk\\include" -DLLVM_LIT="..\\llvm\\llvm\\utils\\lit\\lit.py" ${{ steps.cmake_opts.outputs.opts }}
66+
cmake -GNinja -B build-e2e -S./llvm/sycl/test-e2e -DCMAKE_CXX_COMPILER="${{ inputs.sycl_compiler || '$(which clang++).exe' }}" -DLEVEL_ZERO_LIBS_DIR="D:\\github\\level-zero_win-sdk\\lib" -DLEVEL_ZERO_INCLUDE="D:\\github\\level-zero_win-sdk\\include" -DLLVM_LIT="..\\llvm\\llvm\\utils\\lit\\lit.py" ${{ steps.cmake_opts.outputs.opts }}
6767
6868
- name: Keep track of files after configuring E2E step
6969
if: ${{ always() && !cancelled() && inputs.binaries_artifact != '' && inputs.testing_mode != 'run-only'}}
@@ -76,7 +76,7 @@ runs:
7676
LIT_OPTS: -v --no-progress-bar --show-unsupported --show-pass --show-xfail --max-time ${{ inputs.e2e_testing_mode == 'run-only' && 1200 || 3600 }} --time-tests --param print_features=True --param test-mode=${{ inputs.testing_mode }} --param sycl_devices=${{ inputs.target_devices }} ${{ inputs.extra_lit_opts }}
7777
run: |
7878
# Run E2E tests.
79-
if [[ ${{ inputs.compiler }} == 'icx' ]]; then
79+
if [[ ${{ inputs.cxx }} == 'icx' ]]; then
8080
export LIT_FILTER_OUT="compile_on_win_with_mdd"
8181
fi
8282
cmake --build build-e2e --target check-sycl-e2e > e2e.log 2>&1

0 commit comments

Comments
 (0)