File tree Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 4040if "numpy" in sys .modules :
4141 warnings .warn ("\n DPNP: 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
4454from dpnp .dpnp_array import dpnp_array as ndarray
4555from dpnp .dpnp_flatiter import flatiter as flatiter
Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments