Skip to content

Commit 470faf7

Browse files
committed
Use icpx instead of dpcpp due to deprecation
1 parent ebe4f2a commit 470faf7

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

.github/workflows/build-sphinx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
- name: Build library
8686
run: |
8787
python setup.py build_clib
88-
CC=dpcpp python setup.py build_ext --inplace
88+
CC=icpx python setup.py build_ext --inplace
8989
python setup.py develop
9090
9191
- name: Build docs

0.build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ python setup.py clean
1010
python setup.py build_clib
1111

1212
# inplace build
13-
CC=dpcpp python setup.py build_ext --inplace
13+
CC=icpx python setup.py build_ext --inplace
1414

1515
# development build. Root privileges needed
1616
# python setup.py develop
1717

1818
echo
1919
echo =========example3==============
20-
dpcpp -g -fPIC dpnp/backend/examples/example3.cpp -Idpnp -Idpnp/backend/include -Ldpnp -Wl,-rpath='$ORIGIN'/dpnp -ldpnp_backend_c -o example3
20+
icpx -fsycl -g -fPIC dpnp/backend/examples/example3.cpp -Idpnp -Idpnp/backend/include -Ldpnp -Wl,-rpath='$ORIGIN'/dpnp -ldpnp_backend_c -o example3
2121
# LD_DEBUG=libs,bindings,symbols ./example3
2222
./example3
2323

dpnp/backend/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ string(CONCAT COMMON_LINK_FLAGS
9999
"-fsycl-device-code-split=per_kernel "
100100
)
101101
if(UNIX)
102-
set(CMAKE_CXX_COMPILER "dpcpp")
102+
set(CMAKE_CXX_COMPILER "icpx")
103103
# add_compile_options(-fPIC)
104104
elseif(WIN32)
105-
set(CMAKE_CXX_COMPILER "dpcpp")
105+
set(CMAKE_CXX_COMPILER "icx")
106106
# set(CMAKE_SHARED_LINKER_FLAGS_INIT "-fuse-ld=lld-link")
107107
# set(CMAKE_LINKER "lld-link")
108108
# include (Platform/Windows-Clang)

scripts/azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
conda activate CondaCodeCov
6363
echo ============================================ build DPNP ============================================
6464
python setup.py build_clib
65-
CC=dpcpp python setup.py build_ext --inplace
65+
CC=icpx python setup.py build_ext --inplace
6666
echo ============================================ run code coverage =====================================
6767
export OCL_ICD_FILENAMES=libintelocl.so
6868
pytest --cov-report xml:coverage.xml --cov-report term-missing --cov=dpnp

utils/command_build_clib.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
Set compiler for the project
6262
"""
6363
# default variables (for Linux)
64-
_project_compiler = "dpcpp"
65-
_project_linker = "dpcpp"
64+
_project_compiler = "icpx"
65+
_project_linker = "icpx"
6666
_project_cmplr_flag_sycl_devel = ["-fsycl-device-code-split=per_kernel", "-fno-approx-func"]
6767
_project_cmplr_flag_sycl = ["-fsycl"]
6868
_project_cmplr_flag_stdcpp_static = [] # This brakes TBB ["-static-libstdc++", "-static-libgcc"]
@@ -116,7 +116,6 @@
116116
if IS_WIN:
117117
_project_compiler = "dpcpp"
118118
_project_linker = "lld-link"
119-
_project_cmplr_flag_sycl = []
120119
_project_cmplr_flag_stdcpp_static = []
121120
_project_cmplr_flag_compatibility = []
122121
_project_cmplr_flag_lib = ["/DLL"]

0 commit comments

Comments
 (0)