File tree Expand file tree Collapse file tree 4 files changed +25
-5
lines changed Expand file tree Collapse file tree 4 files changed +25
-5
lines changed Original file line number Diff line number Diff line change 2020 import os
2121 import sys
2222 import site
23+ current_path = os .path .dirname (__file__ )
2324 path_to_env = site .getsitepackages ()[0 ]
2425 path_to_libs = os .path .join (path_to_env , "Library" , "bin" )
26+ path_to_oneapi_backend = os .path .join (current_path , "oneapi" )
2527 if sys .version_info .minor >= 8 :
28+ if 'DALROOT' in os .environ :
29+ dal_root_redist = os .path .join (os .environ ['DALROOT' ], "redist" , "intel64" )
30+ if os .path .exists (dal_root_redist ):
31+ os .add_dll_directory (dal_root_redist )
32+ os .environ ['PATH' ] = dal_root_redist + os .pathsep + os .environ ['PATH' ]
2633 os .add_dll_directory (path_to_libs )
27- os .environ ['PATH' ] += os .pathsep + path_to_libs
34+ os .add_dll_directory (path_to_oneapi_backend )
35+ os .environ ['PATH' ] = path_to_libs + os .pathsep + os .environ ['PATH' ]
2836
2937try :
3038 from daal4py ._daal4py import *
Original file line number Diff line number Diff line change 2525
2626 sitepackages_path = sysconfig .get_paths ()['purelib' ]
2727 installed_package_path = os .path .join (sitepackages_path , 'daal4py' , 'oneapi' )
28-
2928 if sys .version_info .minor >= 8 :
29+ if 'DPCPPROOT' in os .environ :
30+ dpcpp_rt_root_bin = os .path .join (os .environ ['DPCPPROOT' ], "windows" , "bin" )
31+ dpcpp_rt_root_redist = os .path .join (os .environ ['DPCPPROOT' ], "windows" ,
32+ "redist" , "intel64_win" , "compiler" )
33+ if os .path .exists (dpcpp_rt_root_bin ):
34+ os .add_dll_directory (dpcpp_rt_root_bin )
35+ if os .path .exists (dpcpp_rt_root_redist ):
36+ os .add_dll_directory (dpcpp_rt_root_redist )
3037 os .add_dll_directory (current_path )
3138 if os .path .exists (installed_package_path ):
3239 os .add_dll_directory (installed_package_path )
Original file line number Diff line number Diff line change 2222 path_to_env = site .getsitepackages ()[0 ]
2323 path_to_libs = os .path .join (path_to_env , "Library" , "bin" )
2424 if sys .version_info .minor >= 8 :
25+ if 'DALROOT' in os .environ :
26+ dal_root_redist = os .path .join (os .environ ['DALROOT' ], "redist" , "intel64" )
27+ if os .path .exists (dal_root_redist ):
28+ os .add_dll_directory (dal_root_redist )
2529 os .add_dll_directory (path_to_libs )
26- os .environ ['PATH' ] += os .pathsep + path_to_libs
30+ os .environ ['PATH' ] = path_to_libs + os .pathsep + os . environ [ 'PATH' ]
2731
2832try :
2933 import onedal ._onedal_py_dpc as _backend
Original file line number Diff line number Diff line change 11pytest==6.2.5
2- scikit-learn==1.0 ; python_version >= '3.7'
2+ scikit-learn==1.0.2 ; python_version >= '3.7'
33scikit-learn==0.24 ; python_version == '3.6'
44pandas==1.1.5 ; python_version <= '3.6'
5- pandas==1.2.2 ; python_version >= '3.7'
5+ pandas==1.2.2 ; python_version >= '3.7' and python_version < "3.10"
6+ pandas==1.4.0 ; python_version >= '3.10'
You can’t perform that action at this time.
0 commit comments