Skip to content

Commit a963646

Browse files
windows build (#1051)
1 parent 4a2204a commit a963646

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

conda-recipe/bld.bat

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
REM A workaround for activate-dpcpp.bat issue to be addressed in 2021.4
2+
SET "INCLUDE=%BUILD_PREFIX%\include;%INCLUDE%"
3+
4+
IF DEFINED DPLROOT (
5+
ECHO "Sourcing DPLROOT"
6+
SET "INCLUDE=%DPLROOT%\include;%INCLUDE%"
7+
)
8+
9+
%PYTHON% setup.py build_clib
10+
%PYTHON% setup.py build_ext install

dpnp/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@
4040
if "numpy" in sys.modules:
4141
warnings.warn("\nDPNP: Module NumPy found. Please load DPNP module before NumPy.\n")
4242

43+
44+
import os
45+
mypath = os.path.dirname(os.path.realpath(__file__))
46+
47+
import dpctl
48+
dpctlpath = os.path.dirname(dpctl.__file__)
49+
50+
os.environ["PATH"] += os.pathsep + mypath + os.pathsep + dpctlpath
51+
52+
4353
# from dpnp.dparray import dparray as ndarray
4454
from dpnp.dpnp_array import dpnp_array as ndarray
4555
from dpnp.dpnp_flatiter import flatiter as flatiter

dpnp/backend/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,10 @@ elseif(WIN32)
230230
# -DMKL_ILP64 -I"%MKLROOT%\include"
231231
# mkl_sycl_dll.lib mkl_intel_ilp64_dll.lib mkl_sequential_dll.lib mkl_core_dll.lib sycl.lib OpenCL.lib
232232
set(DPNP_MATHLIB_DEP_LIBS
233-
mkl_sycl # _dll
234-
mkl_intel_ilp64 # _dll
235-
mkl_sequential # _dll
236-
mkl_core # _dll
233+
mkl_sycl_dll
234+
mkl_intel_ilp64_dll
235+
mkl_sequential_dll
236+
mkl_core_dll
237237
sycl
238238
OpenCL
239239
CACHE STRING "Set of libraries to link")

0 commit comments

Comments
 (0)