Skip to content

Commit f2fcb28

Browse files
authored
Merge branch 'master' into impl_isposinf_isneginf
2 parents 580f35f + 323ce50 commit f2fcb28

File tree

8 files changed

+224
-122
lines changed

8 files changed

+224
-122
lines changed

conda-recipe/bld.bat

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
REM A workaround for activate-dpcpp.bat issue to be addressed in 2021.4
2-
set "LIB=%BUILD_PREFIX%\Library\lib;%BUILD_PREFIX%\compiler\lib;%LIB%"
2+
SET "LIB=%BUILD_PREFIX%\Library\lib;%BUILD_PREFIX%\compiler\lib;%LIB%"
33
SET "INCLUDE=%BUILD_PREFIX%\include;%INCLUDE%"
44

5-
REM Since the 60.0.0 release, setuptools includes a local, vendored copy
6-
REM of distutils (from late copies of CPython) that is enabled by default.
7-
REM It breaks build for Windows, so use distutils from "stdlib" as before.
8-
REM @TODO: remove the setting, once transition to build backend on Windows
9-
REM to cmake is complete.
10-
SET "SETUPTOOLS_USE_DISTUTILS=stdlib"
11-
125
"%PYTHON%" setup.py clean --all
136

147
set "MKLROOT=%PREFIX%/Library"
@@ -18,10 +11,15 @@ set "DPL_ROOT_HINT=%PREFIX%/Library"
1811
set "SKBUILD_ARGS=-G Ninja -- -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_CXX_COMPILER:PATH=icx -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON"
1912
set "SKBUILD_ARGS=%SKBUILD_ARGS% -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON"
2013

14+
REM Overriding IPO is useful for building in resources constrained VMs (public CI)
15+
if DEFINED OVERRIDE_INTEL_IPO (
16+
set "SKBUILD_ARGS=%SKBUILD_ARGS% -DCMAKE_INTERPROCEDURAL_OPTIMIZATION:BOOL=FALSE"
17+
)
18+
2119
FOR %%V IN (14.0.0 14 15.0.0 15 16.0.0 16 17.0.0 17) DO @(
2220
REM set DIR_HINT if directory exists
2321
IF EXIST "%BUILD_PREFIX%\Library\lib\clang\%%V\" (
24-
SET "SYCL_INCLUDE_DIR_HINT=%BUILD_PREFIX%\Library\lib\clang\%%V"
22+
SET "SYCL_INCLUDE_DIR_HINT=%BUILD_PREFIX%\Library\lib\clang\%%V"
2523
)
2624
)
2725

@@ -40,19 +38,20 @@ if EXIST "%PLATFORM_DIR%" (
4038
)
4139

4240
if NOT "%WHEELS_OUTPUT_FOLDER%"=="" (
43-
rem Install and assemble wheel package from the build bits
44-
"%PYTHON%" setup.py install bdist_wheel %SKBUILD_ARGS%
45-
if errorlevel 1 exit 1
46-
copy dist\dpnp*.whl %WHEELS_OUTPUT_FOLDER%
47-
if errorlevel 1 exit 1
41+
rem Install and assemble wheel package from the build bits
42+
"%PYTHON%" setup.py install bdist_wheel %SKBUILD_ARGS%
43+
if errorlevel 1 exit 1
44+
copy dist\dpnp*.whl %WHEELS_OUTPUT_FOLDER%
45+
if errorlevel 1 exit 1
4846
) ELSE (
49-
rem Only install
50-
"%PYTHON%" setup.py install %SKBUILD_ARGS%
51-
if errorlevel 1 exit 1
47+
rem Only install
48+
"%PYTHON%" setup.py install %SKBUILD_ARGS%
49+
if errorlevel 1 exit 1
5250
)
5351

5452
rem copy back
5553
if EXIST "%PLATFORM_DIR%" (
56-
copy /Y "%FN%" "%PLATFORM_DIR%\%FN%"
57-
if errorlevel 1 exit 1
54+
rem copy back
55+
copy /Y "%FN%" "%PLATFORM_DIR%\%FN%"
56+
if errorlevel 1 exit 1
5857
)

conda-recipe/meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ build:
4242
include_recipe: False
4343
script_env:
4444
- WHEELS_OUTPUT_FOLDER
45+
- OVERRIDE_INTEL_IPO # [win]
4546

4647
test:
4748
requires:

0 commit comments

Comments
 (0)