File tree Expand file tree Collapse file tree 11 files changed +38
-9
lines changed Expand file tree Collapse file tree 11 files changed +38
-9
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ This is a bug-fix release.
17
17
### Fixed
18
18
19
19
* Resolved an issue with Compute Follows Data inconsistency in ` dpnp.extract ` function [ #2172 ] ( https://github.com/IntelPython/dpnp/pull/2172 )
20
+ * Resolves an import error when using ` dpnp ` in virtual environment on Linux [ #2199 ] ( https://github.com/IntelPython/dpnp/pull/2199 )
20
21
* Resolved a compilation error when building with DPC++ 2025.1 compiler [ #2211 ] ( https://github.com/IntelPython/dpnp/pull/2211 )
21
22
22
-
23
23
## [ 0.16.0] - 10/14/2024
24
24
25
25
This release reaches an important milestone by making offloading fully asynchronous. Calls to ` dpnp ` submit tasks for execution to DPC++ runtime and return without waiting for execution of these tasks to finish. The sequential semantics a user comes to expect from execution of Python script is preserved though.
Original file line number Diff line number Diff line change @@ -6,8 +6,9 @@ project(dpnp
6
6
DESCRIPTION "NumPy-like API accelerated by SYCL."
7
7
)
8
8
9
- option (DPNP_GENERATE_COVERAGE "Enable build DPNP with coverage instrumentation" FALSE )
10
- option (DPNP_BACKEND_TESTS "Enable building of DPNP backend test suite" FALSE )
9
+ option (DPNP_GENERATE_COVERAGE "Enable build DPNP with coverage instrumentation" OFF )
10
+ option (DPNP_BACKEND_TESTS "Enable building of DPNP backend test suite" OFF )
11
+ option (DPNP_WITH_REDIST "Build DPNP assuming DPC++ redistributable is installed into Python prefix" OFF )
11
12
12
13
set (CMAKE_CXX_STANDARD 17 )
13
14
set (CMAKE_CXX_STANDARD_REQUIRED True )
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ if DEFINED OVERRIDE_INTEL_IPO (
16
16
set " SKBUILD_ARGS = %SKBUILD_ARGS% -DCMAKE_INTERPROCEDURAL_OPTIMIZATION:BOOL=FALSE"
17
17
)
18
18
19
- FOR %%V IN (14 .0.0 14 15 .0.0 15 16 .0.0 16 17.0.0 17 ) DO @ (
19
+ FOR %%V IN (17 .0.0 17 18 .0.0 18 19 .0.0 19 ) DO @ (
20
20
REM set DIR_HINT if directory exists
21
21
IF EXIST " %BUILD_PREFIX% \Library\lib\clang\%%V \" (
22
22
SET " SYCL_INCLUDE_DIR_HINT = %BUILD_PREFIX% \Library\lib\clang\%%V "
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
# This is necessary to help DPC++ find Intel libraries such as SVML, IRNG, etc in build prefix
4
- export LD_LIBRARY_PATH =" $LD_LIBRARY_PATH :${BUILD_PREFIX} /lib"
4
+ export LIBRARY_PATH =" $LIBRARY_PATH :${BUILD_PREFIX} /lib"
5
5
6
6
# Intel LLVM must cooperate with compiler and sysroot from conda
7
7
echo " --gcc-toolchain=${BUILD_PREFIX} --sysroot=${BUILD_PREFIX} /${HOST} /sysroot -target ${HOST} " > icpx_for_conda.cfg
@@ -18,6 +18,7 @@ export DPL_ROOT_HINT=$PREFIX
18
18
export MKL_ROOT_HINT=$PREFIX
19
19
SKBUILD_ARGS=(-- " -DCMAKE_C_COMPILER:PATH=icx" " -DCMAKE_CXX_COMPILER:PATH=icpx" " -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON" )
20
20
SKBUILD_ARGS=(" ${SKBUILD_ARGS[@]} " " -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON" )
21
+ SKBUILD_ARGS=(" ${SKBUILD_ARGS[@]} " " -DDPNP_WITH_REDIST:BOOL=ON" )
21
22
22
23
# Build wheel package
23
24
WHEELS_BUILD_ARGS=(" -p" " manylinux_2_28_x86_64" )
Original file line number Diff line number Diff line change 1
1
function (build_dpnp_cython_ext _trgt _src _dest )
2
2
set (options SYCL )
3
- cmake_parse_arguments (BUILD_DPNP_EXT "${options} " "" "" ${ARGN} )
4
3
add_cython_target (${_trgt} ${_src} CXX OUTPUT_VAR _generated_src )
5
4
message (STATUS "Using ${_trgt} " )
6
5
@@ -41,15 +40,19 @@ function(build_dpnp_cython_ext _trgt _src _dest)
41
40
VERBATIM COMMENT "Copying Cython-generated source for target ${_trgt} to dpnp source layout"
42
41
)
43
42
endif ()
43
+
44
+ set (_rpath_value "$ORIGIN/.." )
45
+ if (DPNP_WITH_REDIST )
46
+ set (_rpath_value "${_rpath_value} :$ORIGIN/../../../../" )
47
+ endif ()
48
+ set_target_properties (${_trgt} PROPERTIES INSTALL_RPATH ${_rpath_value} )
49
+
44
50
install (TARGETS ${_trgt} LIBRARY DESTINATION ${_dest} )
45
51
endfunction ()
46
52
47
53
function (build_dpnp_cython_ext_with_backend _trgt _src _dest )
48
54
build_dpnp_cython_ext (${_trgt} ${_src} ${_dest} )
49
55
target_link_libraries (${_trgt} PRIVATE dpnp_backend_library )
50
- if (UNIX )
51
- set_target_properties (${_trgt} PROPERTIES INSTALL_RPATH "$ORIGIN/.." )
52
- endif ()
53
56
endfunction ()
54
57
55
58
add_subdirectory (backend )
Original file line number Diff line number Diff line change @@ -102,6 +102,10 @@ add_library(dpnp_backend_library INTERFACE IMPORTED GLOBAL)
102
102
target_include_directories (dpnp_backend_library BEFORE INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} /include ${CMAKE_CURRENT_SOURCE_DIR} /src )
103
103
target_link_libraries (dpnp_backend_library INTERFACE ${_trgt} )
104
104
105
+ if (DPNP_WITH_REDIST )
106
+ set_target_properties (${python_module_name} PROPERTIES INSTALL_RPATH "$ORIGIN/../../../" )
107
+ endif ()
108
+
105
109
if (DPNP_BACKEND_TESTS )
106
110
add_subdirectory (tests )
107
111
endif ()
Original file line number Diff line number Diff line change @@ -93,6 +93,10 @@ else()
93
93
target_link_libraries (${python_module_name} PUBLIC MKL::MKL_SYCL::BLAS )
94
94
endif ()
95
95
96
+ if (DPNP_WITH_REDIST )
97
+ set_target_properties (${python_module_name} PROPERTIES INSTALL_RPATH "$ORIGIN/../../../../../../" )
98
+ endif ()
99
+
96
100
install (TARGETS ${python_module_name}
97
101
DESTINATION "dpnp/backend/extensions/blas"
98
102
)
Original file line number Diff line number Diff line change @@ -89,6 +89,10 @@ else()
89
89
target_link_libraries (${python_module_name} PUBLIC MKL::MKL_SYCL::DFT )
90
90
endif ()
91
91
92
+ if (DPNP_WITH_REDIST )
93
+ set_target_properties (${python_module_name} PROPERTIES INSTALL_RPATH "$ORIGIN/../../../../../../" )
94
+ endif ()
95
+
92
96
install (TARGETS ${python_module_name}
93
97
DESTINATION "dpnp/backend/extensions/fft"
94
98
)
Original file line number Diff line number Diff line change @@ -107,6 +107,10 @@ else()
107
107
target_link_libraries (${python_module_name} PUBLIC MKL::MKL_SYCL::LAPACK )
108
108
endif ()
109
109
110
+ if (DPNP_WITH_REDIST )
111
+ set_target_properties (${python_module_name} PROPERTIES INSTALL_RPATH "$ORIGIN/../../../../../../" )
112
+ endif ()
113
+
110
114
install (TARGETS ${python_module_name}
111
115
DESTINATION "dpnp/backend/extensions/lapack"
112
116
)
Original file line number Diff line number Diff line change @@ -97,6 +97,10 @@ if (DPNP_GENERATE_COVERAGE)
97
97
target_link_options (${python_module_name} PRIVATE -fprofile-instr-generate -fcoverage-mapping )
98
98
endif ()
99
99
100
+ if (DPNP_WITH_REDIST )
101
+ set_target_properties (${python_module_name} PROPERTIES INSTALL_RPATH "$ORIGIN/../../../../../../" )
102
+ endif ()
103
+
100
104
install (TARGETS ${python_module_name}
101
105
DESTINATION "dpnp/backend/extensions/ufunc"
102
106
)
Original file line number Diff line number Diff line change @@ -120,6 +120,10 @@ else()
120
120
target_link_libraries (${python_module_name} PUBLIC MKL::MKL_SYCL::VM )
121
121
endif ()
122
122
123
+ if (DPNP_WITH_REDIST )
124
+ set_target_properties (${python_module_name} PROPERTIES INSTALL_RPATH "$ORIGIN/../../../../../../" )
125
+ endif ()
126
+
123
127
install (TARGETS ${python_module_name}
124
128
DESTINATION "dpnp/backend/extensions/vm"
125
129
)
You can’t perform that action at this time.
0 commit comments