Skip to content

Commit a681b6f

Browse files
author
Vahid Tavanashad
committed
add CC=icx to recipe
1 parent 025903f commit a681b6f

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

.github/workflows/build_pip.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
pip install --no-cache-dir numpy ${{ matrix.use_pre }}
5353
echo "CONDA_PREFFIX is '${CONDA_PREFIX}'"
5454
export MKLROOT=${CONDA_PREFIX}
55-
CC=icx pip install . --no-build-isolation --no-deps --verbose
55+
pip install . --no-build-isolation --no-deps --verbose
5656
pip install --no-cache-dir pytest
5757
pip list
5858
# mkl_umath cannot be installed in editable mode, we need

conda-recipe-cf/bld.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ set "INCLUDE=%BUILD_PREFIX%\include;%INCLUDE%"
55
"%PYTHON%" setup.py clean --all
66
set "SKBUILD_ARGS=-G Ninja -- -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON"
77

8+
set "CC=icx"
9+
810
FOR %%V IN (14.0.0 14 15.0.0 15 16.0.0 16 17.0.0 17) DO @(
911
REM set DIR_HINT if directory exists
1012
IF EXIST "%BUILD_PREFIX%\Library\lib\clang\%%V\" (

conda-recipe-cf/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ export ICXCFG="$(pwd)/icx_for_conda.cfg"
88
read -r GLIBC_MAJOR GLIBC_MINOR <<< "$(conda list '^sysroot_linux-64$' \
99
| tail -n 1 | awk '{print $2}' | grep -oP '\d+' | head -n 2 | tr '\n' ' ')"
1010

11+
export CC=icx
12+
1113
export CMAKE_GENERATOR="Ninja"
1214
SKBUILD_ARGS="-- -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON"
1315

conda-recipe/bld.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ set "INCLUDE=%BUILD_PREFIX%\include;%INCLUDE%"
55
"%PYTHON%" setup.py clean --all
66
set "SKBUILD_ARGS=-G Ninja -- -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON"
77

8+
set "CC=icx"
9+
810
if NOT "%WHEELS_OUTPUT_FOLDER%"=="" (
911
rem Install and assemble wheel package from the build bits
1012
"%PYTHON%" setup.py install bdist_wheel %SKBUILD_ARGS%

conda-recipe/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ export ICXCFG="$(pwd)/icx_for_conda.cfg"
88
read -r GLIBC_MAJOR GLIBC_MINOR <<< "$(conda list '^sysroot_linux-64$' \
99
| tail -n 1 | awk '{print $2}' | grep -oP '\d+' | head -n 2 | tr '\n' ' ')"
1010

11+
export CC=icx
12+
1113
export CMAKE_GENERATOR="Ninja"
1214
SKBUILD_ARGS="-- -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON"
1315

0 commit comments

Comments
 (0)