Skip to content

Commit 89f2d42

Browse files
authored
Merge branch 'master' into impl_fft
2 parents e899139 + c78f28a commit 89f2d42

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
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:

tests/test_random_state.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ def get_default_floating():
3535

3636

3737
class TestNormal:
38+
# TODO: Temporary skip due to incorrect results in public CI
39+
# (ARM architecture) with the new MKL package 2024.2.0 (SAT-7080)
40+
@pytest.mark.skipif(is_cpu_device(), reason="SAT-7080")
3841
@pytest.mark.parametrize(
3942
"dtype",
4043
[dpnp.float32, dpnp.float64, dpnp.float, None],
@@ -605,6 +608,9 @@ def test_invalid_usm_type(self, usm_type):
605608

606609

607610
class TestRandN:
611+
# TODO: Temporary skip due to incorrect results in public CI
612+
# (ARM architecture) with the new MKL package 2024.2.0 (SAT-7080)
613+
@pytest.mark.skipif(is_cpu_device(), reason="SAT-7080")
608614
@pytest.mark.parametrize(
609615
"usm_type",
610616
["host", "device", "shared"],

0 commit comments

Comments
 (0)