Skip to content

Commit 3fe5562

Browse files
authored
Merge pull request #2285 from IntelPython/maint/add-more-pre-commit-hooks
[MAINT] Add additional `pre-commit` hooks
2 parents c261730 + 34d247a commit 3fe5562

48 files changed

Lines changed: 316 additions & 225 deletions

Some content is hidden

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

.git-blame-ignore-revs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,9 @@ b37657e6ad9af16eaec2982d8e2397acd2af2881
1717

1818
# Add cython-lint to pre-commit config
1919
0ce1aef210ffb88b7d2ea3a89e861486498f652f
20+
21+
# Add new linters and rules to pre-commit
22+
5cf074899f226726d07026db9899bb7632d8c1de
23+
24+
# Transition from clang-format 18 to clang-format 22
25+
759dcdc80d0d99790205e87bdd7c5d4f2e93a1ff

.github/workflows/conda-package.yml

Lines changed: 98 additions & 104 deletions
Large diffs are not rendered by default.

.github/workflows/generate-coverage.yaml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626

2727
- name: Add Intel repository
2828
run: |
29-
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
30-
cat GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
31-
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
32-
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
29+
wget -qO- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
30+
| gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
31+
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" \
32+
| sudo tee /etc/apt/sources.list.d/oneAPI.list
3333
sudo apt update
3434
3535
- name: Install latest Intel OneAPI
@@ -112,15 +112,17 @@ jobs:
112112
shell: bash -l {0}
113113
run: |
114114
echo "Processing c-api-coverage"
115-
export DPCTL_LCOV_FN=$(find _skbuild -name dpctl.lcov)
116-
grep "/tmp" $DPCTL_LCOV_FN
115+
DPCTL_LCOV_FN=$(find _skbuild -name dpctl.lcov)
116+
export DPCTL_LCOV_FN
117+
grep "/tmp" "$DPCTL_LCOV_FN"
117118
coveralls-lcov -v -n \
118-
$DPCTL_LCOV_FN > dpctl-c-api-coverage.json
119+
"$DPCTL_LCOV_FN" > dpctl-c-api-coverage.json
119120
echo "Processing pytest-coverage"
120-
export DPCTL_PYTEST_LCOV=$(find . -name dpctl_pytest.lcov)
121-
grep "/tmp" $DPCTL_PYTEST_LCOV
121+
DPCTL_PYTEST_LCOV=$(find . -name dpctl_pytest.lcov)
122+
export DPCTL_PYTEST_LCOV
123+
grep "/tmp" "$DPCTL_PYTEST_LCOV"
122124
coveralls-lcov -v -n \
123-
$DPCTL_PYTEST_LCOV > pytest-dpctl-c-api-coverage.json
125+
"$DPCTL_PYTEST_LCOV" > pytest-dpctl-c-api-coverage.json
124126
echo "Merging JSON files"
125127
python -c "import json; \
126128
fh1 = open('dpctl-c-api-coverage.json', 'r'); \
@@ -133,7 +135,7 @@ jobs:
133135
# merge combined file with coverage data and upload
134136
ls -lh dpctl-c-api-coverage.json pytest-dpctl-c-api-coverage.json \
135137
combined-dpctl-c-api-coverage.json \
136-
$(find _skbuild -name dpctl.lcov) $(find . -name dpctl_pytest.lcov)
138+
"$DPCTL_LCOV_FN" "$DPCTL_PYTEST_LCOV"
137139
echo "Merging combined files with coverage data"
138140
coveralls --service=github --merge=combined-dpctl-c-api-coverage.json
139141
env:

.github/workflows/generate-docs.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
- name: Add Intel repository
2525
if: ${{ !github.event.pull_request || github.event.action != 'closed' }}
2626
run: |
27-
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
28-
cat GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
29-
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
30-
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
27+
wget -qO- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
28+
| gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
29+
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" \
30+
| sudo tee /etc/apt/sources.list.d/oneAPI.list
3131
sudo apt update
3232
- name: Install Intel OneAPI
3333
if: ${{ !github.event.pull_request || github.event.action != 'closed' }}
@@ -75,7 +75,7 @@ jobs:
7575
source /opt/intel/oneapi/setvars.sh
7676
wget https://github.com/vovkos/doxyrest/releases/download/doxyrest-2.1.2/doxyrest-2.1.2-linux-amd64.tar.xz
7777
tar xf doxyrest-2.1.2-linux-amd64.tar.xz
78-
python scripts/gen_docs.py --doxyrest-root=`pwd`/doxyrest-2.1.2-linux-amd64 --verbose --multiversion --clean || exit 1
78+
python scripts/gen_docs.py --doxyrest-root="$(pwd)/doxyrest-2.1.2-linux-amd64" --verbose --multiversion --clean || exit 1
7979
python -c "import dpctl; print(dpctl.__version__)" || exit 1
8080
mv "$(find _skbuild -type d -path "*/cmake-install/docs/docs" | head -n 1)" ~/docs
8181
git clean -dfx
@@ -87,9 +87,9 @@ jobs:
8787
git remote add tokened_docs https://IntelPython:${{ secrets.GITHUB_TOKEN }}@github.com/IntelPython/dpctl.git
8888
git fetch tokened_docs
8989
git checkout --track tokened_docs/gh-pages
90-
echo `pwd`
90+
pwd
9191
cd master
92-
git rm -rf *
92+
git rm -rf ./*
9393
mv ~/docs/* . || exit 1
9494
git add .
9595
git config --global user.name 'github-actions[doc-deploy-bot]'
@@ -112,10 +112,10 @@ jobs:
112112
git remote add tokened_docs https://IntelPython:${{ secrets.GITHUB_TOKEN }}@github.com/IntelPython/dpctl.git
113113
git fetch tokened_docs
114114
git checkout --track tokened_docs/gh-pages
115-
echo `pwd`
116-
[ -d pulls/${PR_NUM} ] && git rm -rf pulls/${PR_NUM}
117-
mkdir -p pulls/${PR_NUM}
118-
cd pulls/${PR_NUM}
115+
pwd
116+
[ -d "pulls/${PR_NUM}" ] && git rm -rf "pulls/${PR_NUM}"
117+
mkdir -p "pulls/${PR_NUM}"
118+
cd "pulls/${PR_NUM}"
119119
mv ~/docs/* .
120120
git add .
121121
git config --global user.name 'github-actions[doc-deploy-bot]'
@@ -131,10 +131,10 @@ jobs:
131131
git remote add tokened_docs https://IntelPython:${{ secrets.GITHUB_TOKEN }}@github.com/IntelPython/dpctl.git
132132
git fetch tokened_docs
133133
git checkout --track tokened_docs/gh-pages
134-
echo `pwd`
134+
pwd
135135
ls
136136
[ -d pulls ] && ls pulls && echo "This is pull/${PR_NUM}"
137-
[ -d pulls/${PR_NUM} ] && git rm -rf pulls/${PR_NUM}
137+
[ -d "pulls/${PR_NUM}" ] && git rm -rf "pulls/${PR_NUM}"
138138
git config --global user.name 'github-actions[doc-deploy-bot]'
139139
git config --global user.email 'github-actions[doc-deploy-bot]@users.noreply.github.com'
140140
git commit -m "Removing docs for closed pull request ${PR_NUM}"

.github/workflows/os-llvm-sycl-build.yml

Lines changed: 28 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -59,28 +59,35 @@ jobs:
5959
cd sycl_bundle
6060
if [[ "${USE_LATEST_SYCLOS:-0}" -eq "1" ]]; then
6161
# get list of shas and tags from remote, filter nightly tags and reverse order
62-
export LLVM_TAGS=$(git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' https://github.com/intel/llvm.git | \
62+
LLVM_TAGS=$(git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' https://github.com/intel/llvm.git | \
6363
grep 'refs/tags/nightly-' | awk '{a[i++]=$0} END {for (j=i-1; j>=0;) print a[j--] }')
64+
export LLVM_TAGS
6465
# initialize
6566
unset DEPLOY_NIGHTLY_TAG
6667
unset DEPLOY_NIGHTLY_TAG_SHA
6768
6869
# go through tags and find the most recent one where nighly build binary is available
6970
while IFS= read -r NEXT_LLVM_TAG; do
70-
export NEXT_LLVM_TAG_SHA=$(echo ${NEXT_LLVM_TAG} | awk '{print $1}')
71-
export NEXT_NIGHTLY_TAG=$(python3 -c "import sys, urllib.parse as ul; print (ul.quote_plus(sys.argv[1]))" \
72-
$(echo ${NEXT_LLVM_TAG} | awk '{gsub(/^refs\/tags\//, "", $2)} {print $2}'))
73-
if [[ `wget -S --spider ${DOWNLOAD_URL_PREFIX}/${NEXT_NIGHTLY_TAG}/${ARTIFACT_NAME}.tar.gz 2>&1 | grep 'HTTP/1.1 200 OK'` ]];
71+
NEXT_LLVM_TAG_SHA=$(echo "${NEXT_LLVM_TAG}" | awk '{print $1}')
72+
export NEXT_LLVM_TAG_SHA
73+
NEXT_NIGHTLY_TAG=$(python3 -c "import sys, urllib.parse as ul; print(ul.quote_plus(sys.argv[1]))" \
74+
"$(echo "${NEXT_LLVM_TAG}" | awk '{gsub(/^refs\/tags\//, "", $2)} {print $2}')")
75+
export NEXT_NIGHTLY_TAG
76+
if wget -S --spider "${DOWNLOAD_URL_PREFIX}/${NEXT_NIGHTLY_TAG}/${ARTIFACT_NAME}.tar.gz" 2>&1 | grep -q 'HTTP/1.1 200 OK';
7477
then
75-
export DEPLOY_NIGHTLY_TAG=${NEXT_NIGHTLY_TAG}
76-
export DEPLOY_LLVM_TAG_SHA=${NEXT_LLVM_TAG_SHA}
78+
DEPLOY_NIGHTLY_TAG="${NEXT_NIGHTLY_TAG}"
79+
export DEPLOY_NIGHTLY_TAG
80+
DEPLOY_LLVM_TAG_SHA="${NEXT_LLVM_TAG_SHA}"
81+
export DEPLOY_LLVM_TAG_SHA
7782
break
7883
fi
7984
done <<< "${LLVM_TAGS}"
8085
else
8186
# Use latest known to work tag instead
82-
export DEPLOY_NIGHTLY_TAG="sycl-nightly%2F20230606"
83-
export DEPLOY_LLVM_TAG_SHA=f44d0133d4b0077298f034697a1f3818ff1d6134
87+
DEPLOY_NIGHTLY_TAG="sycl-nightly%2F20230606"
88+
export DEPLOY_NIGHTLY_TAG
89+
DEPLOY_LLVM_TAG_SHA=f44d0133d4b0077298f034697a1f3818ff1d6134
90+
export DEPLOY_LLVM_TAG_SHA
8491
fi
8592
8693
[[ -n "${DEPLOY_NIGHTLY_TAG}" ]] || exit 1
@@ -90,16 +97,20 @@ jobs:
9097
if [[ -f bundle_id.txt && ( "$(cat bundle_id.txt)" == "${DEPLOY_LLVM_TAG_SHA}" ) ]]; then
9198
echo "Using cached download of ${DEPLOY_LLVM_TAG_SHA}"
9299
else
93-
rm -rf ${ARTIFACT_NAME}.tar.gz
94-
wget ${DOWNLOAD_URL_PREFIX}/${DEPLOY_NIGHTLY_TAG}/${ARTIFACT_NAME}.tar.gz && echo ${DEPLOY_LLVM_TAG_SHA} > bundle_id.txt || rm -rf bundle_id.txt
95-
[ -f ${OCLCPUEXP_FN} ] || wget ${DOWNLOAD_URL_PREFIX}/${DRIVER_PATH}/${OCLCPUEXP_FN} || rm -rf bundle_id.txt
96-
[ -f ${TBB_FN} ] || wget ${TBB_URL}/${TBB_FN} || rm -rf bundle_id.txt
100+
rm -rf "${ARTIFACT_NAME}.tar.gz"
101+
if wget "${DOWNLOAD_URL_PREFIX}/${DEPLOY_NIGHTLY_TAG}/${ARTIFACT_NAME}.tar.gz"; then
102+
echo "${DEPLOY_LLVM_TAG_SHA}" > bundle_id.txt
103+
else
104+
rm -rf bundle_id.txt
105+
fi
106+
[ -f "${OCLCPUEXP_FN}" ] || wget "${DOWNLOAD_URL_PREFIX}/${DRIVER_PATH}/${OCLCPUEXP_FN}" || rm -rf bundle_id.txt
107+
[ -f "${TBB_FN}" ] || wget "${TBB_URL}/${TBB_FN}" || rm -rf bundle_id.txt
97108
rm -rf dpcpp_compiler
98109
mkdir -p dpcpp_compiler
99-
tar xf ${ARTIFACT_NAME}.tar.gz -C dpcpp_compiler
110+
tar xf "${ARTIFACT_NAME}.tar.gz" -C dpcpp_compiler
100111
mkdir -p oclcpuexp
101-
[ -d oclcpuexp/x64 ] || tar xf ${OCLCPUEXP_FN} -C oclcpuexp
102-
[ -d ${TBB_INSTALL_DIR}/lib ] || tar xf ${TBB_FN}
112+
[ -d oclcpuexp/x64 ] || tar xf "${OCLCPUEXP_FN}" -C oclcpuexp
113+
[ -d "${TBB_INSTALL_DIR}/lib" ] || tar xf "${TBB_FN}"
103114
cp oclcpuexp/x64/libOpenCL.so* dpcpp_compiler/lib/
104115
fi
105116
@@ -152,7 +163,7 @@ jobs:
152163
run: |
153164
source set_allvars.sh
154165
python scripts/build_locally.py --c-compiler=clang --cxx-compiler=clang++ \
155-
--compiler-root=${SYCL_BUNDLE_FOLDER}/dpcpp_compiler/bin || exit 1
166+
--compiler-root="${SYCL_BUNDLE_FOLDER}/dpcpp_compiler/bin" || exit 1
156167
157168
- name: Run lsplatforms
158169
shell: bash -l {0}

.github/workflows/pre-commit.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,20 @@ permissions: read-all
99

1010
jobs:
1111
pre-commit:
12+
name: pre-commit
13+
1214
runs-on: ubuntu-24.04
1315
timeout-minutes: 30
16+
1417
steps:
1518
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1619
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
1720
with:
18-
python-version: '3.12'
21+
python-version: '3.14'
22+
- name: Install from PyPI
23+
shell: bash -l {0}
24+
run: |
25+
pip install codespell pylint
1926
- name: Version of clang-format
2027
run: |
2128
clang-format --version

.github/workflows/run-tests-from-dppy-bits.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,39 +35,39 @@ jobs:
3535
steps:
3636
- name: Construct channels line
3737
run: |
38-
echo "CHANNELS=-c ${{ env.INTEL_CHANNEL }} -c conda-forge --override-channels" >> $GITHUB_ENV
38+
echo "CHANNELS=-c ${{ env.INTEL_CHANNEL }} -c conda-forge --override-channels" >> "$GITHUB_ENV"
3939
4040
- name: Display channels line
4141
run: |
42-
echo ${{ env.CHANNELS }}
42+
echo "${{ env.CHANNELS }}"
4343
4444
- name: Set pkgs_dirs
4545
run: |
4646
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
4747
4848
- name: Install dpctl
4949
run: |
50-
conda create -n ${{ env.TEST_ENV_NAME }} -c dppy/label/dev ${{ env.CHANNELS }} dpctl pytest pytest-cov cython setuptools c-compiler cxx-compiler
50+
conda create -n "${{ env.TEST_ENV_NAME }}" -c dppy/label/dev "${{ env.CHANNELS }}" dpctl pytest pytest-cov cython setuptools c-compiler cxx-compiler
5151
5252
- name: Smoke test
5353
run: |
54-
. $CONDA/etc/profile.d/conda.sh
55-
conda activate ${{ env.TEST_ENV_NAME }}
54+
. "$CONDA/etc/profile.d/conda.sh"
55+
conda activate "${{ env.TEST_ENV_NAME }}"
5656
python -m dpctl -f
5757
5858
- name: Create test temp dir
5959
# create temporary empty folder to runs tests from
6060
# https://github.com/pytest-dev/pytest/issues/11904
61-
run: mkdir -p ${GITHUB_WORKSPACE}/test_tmp
61+
run: mkdir -p "${GITHUB_WORKSPACE}/test_tmp"
6262

6363
- name: Run tests
6464
working-directory: ${{ github.workspace }}/test_tmp
6565
env:
6666
SYCL_CACHE_PERSISTENT: 1
6767
run: |
68-
. $CONDA/etc/profile.d/conda.sh
69-
conda activate ${{ env.TEST_ENV_NAME }}
70-
python -m pytest -v --pyargs $MODULE_NAME
68+
. "$CONDA/etc/profile.d/conda.sh"
69+
conda activate "${{ env.TEST_ENV_NAME }}"
70+
python -m pytest -v --pyargs "${{ env.MODULE_NAME }}"
7171
7272
7373
test_windows:
@@ -94,7 +94,7 @@ jobs:
9494
9595
- name: Display channels line
9696
run: |
97-
echo ${{ env.CHANNELS }}
97+
echo "${{ env.CHANNELS }}"
9898
9999
- uses: conda-incubator/setup-miniconda@8ee1f361103df19b6f8c8655fd3967a8ecb162d5 # v4.0.1
100100
with:

.pre-commit-config.yaml

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
3+
exclude: "docs/_legacy/"
34
repos:
45
- repo: https://github.com/PyCQA/bandit
56
rev: '1.9.4'
@@ -10,8 +11,48 @@ repos:
1011
- repo: https://github.com/pre-commit/pre-commit-hooks
1112
rev: v6.0.0
1213
hooks:
14+
# Git
15+
- id: check-added-large-files
16+
- id: no-commit-to-branch
17+
name: "ensure no direct commit to master/maintenance branches"
18+
args: [--branch, "master", --pattern, "maintenance/.*"]
19+
- id: check-case-conflict
20+
- id: check-illegal-windows-names
21+
- id: check-ast
22+
- id: check-builtin-literals
23+
- id: check-case-conflict
24+
- id: check-executables-have-shebangs
25+
- id: check-merge-conflict
26+
- id: check-shebang-scripts-are-executable
27+
- id: check-symlinks
28+
- id: check-toml
29+
- id: debug-statements
30+
- id: destroyed-symlinks
1331
- id: end-of-file-fixer
32+
- id: fix-byte-order-marker
33+
- id: mixed-line-ending
1434
- id: trailing-whitespace
35+
- repo: https://github.com/pre-commit/pygrep-hooks
36+
rev: v1.10.0
37+
hooks:
38+
- id: python-check-blanket-noqa
39+
- id: python-check-blanket-type-ignore
40+
- id: python-check-mock-methods
41+
- id: python-no-eval
42+
- id: python-no-log-warn
43+
- id: python-use-type-annotations
44+
- id: rst-backticks
45+
- id: rst-directive-colons
46+
- id: rst-inline-touching-normal
47+
- id: text-unicode-replacement-char
48+
- repo: https://github.com/codespell-project/codespell
49+
rev: v2.4.1
50+
hooks:
51+
- id: codespell
52+
args: ["-L", "ba,som,xWindows"] # ignore some variable names
53+
additional_dependencies:
54+
- tomli
55+
exclude: "docs/doxyrest-config.lua.in"
1556
- repo: https://github.com/psf/black
1657
rev: 26.3.1
1758
hooks:
@@ -32,8 +73,8 @@ repos:
3273
rev: 7.3.0
3374
hooks:
3475
- id: flake8
35-
- repo: https://github.com/pocc/pre-commit-hooks
36-
rev: v1.3.5
76+
- repo: https://github.com/pre-commit/mirrors-clang-format
77+
rev: v22.1.3
3778
hooks:
3879
- id: clang-format
3980
args: ["-i"]
@@ -47,3 +88,19 @@ repos:
4788
hooks:
4889
- id: cython-lint
4990
- id: double-quote-cython-strings
91+
92+
- repo: https://github.com/jumanjihouse/pre-commit-hooks
93+
rev: 3.0.0
94+
hooks:
95+
- id: shellcheck
96+
97+
- repo: https://github.com/gitleaks/gitleaks
98+
rev: v8.30.0
99+
hooks:
100+
- id: gitleaks
101+
102+
- repo: https://github.com/rhysd/actionlint
103+
rev: v1.7.11
104+
hooks:
105+
- id: actionlint
106+
args: ["-ignore", "SC2317"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ To get the library from the latest oneAPI release, follow the
5757
instructions from Intel(R) [oneAPI installation
5858
guide](https://www.intel.com/content/www/us/en/developer/articles/guide/installation-guide-for-oneapi-toolkits.html).
5959

60-
> **NOTE:** You need to install the Intel(R) oneAPI AI Analytics Tookit to get
60+
> **NOTE:** You need to install the Intel(R) oneAPI AI Analytics Toolkit to get
6161
>IDP and `dpctl`.
6262
6363

cmake/IntelSYCLConfig.cmake

100755100644
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
IntelSYCLConfig
1919
-------
2020
21-
Library to verify SYCL compatability of CMAKE_CXX_COMPILER
21+
Library to verify SYCL compatibility of CMAKE_CXX_COMPILER
2222
and passes relevant compiler flags.
2323
2424
Result Variables
@@ -290,7 +290,7 @@ if(nosycllang)
290290
set(IntelSYCL_NOT_FOUND_MESSAGE "${SYCL_REASON_FAILURE}")
291291
endif()
292292

293-
# Placeholder for identifying various implemenations of SYCL compilers.
293+
# Placeholder for identifying various implementations of SYCL compilers.
294294
# for now, set to the CMAKE_CXX_COMPILER_ID
295295
set(SYCL_IMPLEMENTATION_ID "${CMAKE_CXX_COMPILER_ID}")
296296

0 commit comments

Comments
 (0)