Skip to content

Commit 4f40f56

Browse files
Replaced uses of clang compiler with icx executable
1 parent e939fe4 commit 4f40f56

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Examples of building Cython extensions with DPC++ compiler, that interoperate
101101
with `dpctl` can be found in folder `cython`.
102102

103103
Each example in `cython` folder can be built using
104-
`CC=clang CXX=dpcpp python setup.py build_ext --inplace`.
104+
`CC=icx CXX=dpcpp python setup.py build_ext --inplace`.
105105
Please refer to `run.py` script in respective folders to execute extensions.
106106

107107
Running Tests

docs/docfiles/user_guides/QuickStart.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ After setting up dpctl you can try out the Python examples as follows:
208208
The dpctl repository also provides a set of examples of building Cython
209209
extensions with DPC++ compiler, that interoperate with dpctl. These examples are
210210
located under *examples/cython*. Each example in the folder can be built using
211-
``CC=clang CXX=dpcpp python setup.py build_ext --inplace``. Please refer to
211+
``CC=icx CXX=dpcpp python setup.py build_ext --inplace``. Please refer to
212212
``run.py`` script in respective folders to execute the Cython extension
213213
examples.
214214

@@ -252,7 +252,7 @@ library.
252252
-DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \
253253
-DCMAKE_PREFIX_PATH=${INSTALL_PREFIX} \
254254
-DDPCPP_INSTALL_DIR=${DPCPP_ROOT} \
255-
-DCMAKE_C_COMPILER:PATH=${DPCPP_ROOT}/bin/clang \
255+
-DCMAKE_C_COMPILER:PATH=${DPCPP_ROOT}/bin/icx \
256256
-DCMAKE_CXX_COMPILER:PATH=${DPCPP_ROOT}/bin/dpcpp \
257257
-DDPCTL_ENABLE_LO_PROGRAM_CREATION=ON \
258258
-DDPCTL_BUILD_CAPI_TESTS=ON \

dpctl-capi/cmake/modules/FindIntelSycl.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ else()
6363
endif()
6464

6565
# We will extract the version information from the compiler
66-
set(clangxx_cmd "${IntelSycl_ROOT}/bin/clang++")
66+
set(clangxx_cmd "${CMAKE_CXX_COMPILER}")
6767
set(clangxx_arg "--version")
6868

6969
# Check if dpcpp is available

dpctl-capi/dbg_build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ cmake -G Ninja ^
2626
"-DCMAKE_INSTALL_PREFIX=%INSTALL_PREFIX%" ^
2727
"-DCMAKE_PREFIX_PATH=%INSTALL_PREFIX%" ^
2828
"-DDPCPP_INSTALL_DIR=%DPCPP_HOME%" ^
29-
"-DCMAKE_C_COMPILER:PATH=%DPCPP_HOME%\bin\clang-cl.exe" ^
29+
"-DCMAKE_C_COMPILER:PATH=%DPCPP_HOME%\bin\icx.exe" ^
3030
"-DCMAKE_CXX_COMPILER:PATH=%DPCPP_HOME%\bin\dpcpp.exe" ^
3131
"-DCMAKE_LINKER:PATH=%DPCPP_HOME%\bin\lld-link.exe" ^
3232
"-DDPCTL_BUILD_CAPI_TESTS=ON" ^

dpctl-capi/dbg_build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ rm -rf ${INSTALL_PREFIX}
99

1010
cmake \
1111
-DCMAKE_BUILD_TYPE=Debug \
12-
-DCMAKE_C_COMPILER=clang \
12+
-DCMAKE_C_COMPILER=icx \
1313
-DCMAKE_CXX_COMPILER=dpcpp \
1414
-DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \
1515
-DCMAKE_PREFIX_PATH=${INSTALL_PREFIX} \

examples/cython/sycl_buffer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Example illustrates compiling SYCL extension, linking to oneMKL.
1414

1515
```
1616
# make sure oneAPI is activated, $ONEAPI_ROOT must be set
17-
CC=clang CXX=dpcpp python setup.py build_ext --inplace
17+
CC=icx CXX=dpcpp python setup.py build_ext --inplace
1818
```
1919

2020

examples/cython/usm_memory/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Make sure oneAPI is activated. Environment variable `$ONEAPI_ROOT` must be set.
88

99

1010
```
11-
$ CC=clang CXX=dpcpp LD_SHARED="dpcpp -shared" \
11+
$ CC=icx CXX=dpcpp LD_SHARED="dpcpp -shared" \
1212
CXXFLAGS=-fno-sycl-early-optimizations python setup.py build_ext --inplace
1313
```
1414

scripts/build_backend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def build_backend(
8686
"-DDPCTL_DPCPP_HOME_DIR=" + DPCPP_ROOT,
8787
"-DDPCTL_DPCPP_FROM_ONEAPI=ON",
8888
"-DCMAKE_C_COMPILER:PATH="
89-
+ os.path.join(DPCPP_ROOT, "bin", "clang"),
89+
+ os.path.join(DPCPP_ROOT, "bin", "icx"),
9090
"-DCMAKE_CXX_COMPILER:PATH="
9191
+ os.path.join(DPCPP_ROOT, "bin", "dpcpp"),
9292
]
@@ -164,7 +164,7 @@ def build_backend(
164164
"-DDPCTL_DPCPP_HOME_DIR=" + DPCPP_ROOT,
165165
"-DDPCTL_DPCPP_FROM_ONEAPI=ON",
166166
"-DCMAKE_C_COMPILER:PATH="
167-
+ os.path.join(DPCPP_ROOT, "bin", "clang-cl.exe"),
167+
+ os.path.join(DPCPP_ROOT, "bin", "icx.exe"),
168168
"-DCMAKE_CXX_COMPILER:PATH="
169169
+ os.path.join(DPCPP_ROOT, "bin", "dpcpp.exe"),
170170
]

scripts/build_for_develop.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ cmake -G Ninja ^
3131
"-DCMAKE_INSTALL_PREFIX=%INSTALL_PREFIX%" ^
3232
"-DCMAKE_PREFIX_PATH=%INSTALL_PREFIX%" ^
3333
"-DDPCPP_ROOT=%DPCPP_ROOT%" ^
34-
"-DCMAKE_C_COMPILER:PATH=%DPCPP_ROOT%\bin\clang-cl.exe" ^
34+
"-DCMAKE_C_COMPILER:PATH=%DPCPP_ROOT%\bin\icx.exe" ^
3535
"-DCMAKE_CXX_COMPILER:PATH=%DPCPP_ROOT%\bin\dpcpp.exe" ^
3636
"-DBUILD_CAPI_TESTS=%_BUILD_CAPI_TEST%" ^
3737
"%cd%\..\dpctl-capi"
@@ -57,7 +57,7 @@ xcopy dpctl-capi\include dpctl\include /E /Y
5757
REM required by _sycl_core(dpctl)
5858
set "DPCTL_SYCL_INTERFACE_LIBDIR=dpctl"
5959
set "DPCTL_SYCL_INTERFACE_INCLDIR=dpctl\include"
60-
set "CC=clang-cl.exe"
60+
set "CC=icx.exe"
6161
set "CXX=dpcpp.exe"
6262

6363
python setup.py clean --all

0 commit comments

Comments
 (0)