File tree 8 files changed +33
-1
lines changed
8 files changed +33
-1
lines changed 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,6 +40,11 @@ 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
+ if (DPNP_WITH_REDIST)
45
+ set_target_properties (${_trgt} PROPERTIES INSTALL_RPATH "$ORIGIN/../../../../" )
46
+ endif ()
47
+
44
48
install (TARGETS ${_trgt} LIBRARY DESTINATION ${_dest} )
45
49
endfunction ()
46
50
Original file line number Diff line number Diff line change @@ -100,6 +100,10 @@ add_library(dpnp_backend_library INTERFACE IMPORTED GLOBAL)
100
100
target_include_directories (dpnp_backend_library BEFORE INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} /include ${CMAKE_CURRENT_SOURCE_DIR} /src)
101
101
target_link_libraries (dpnp_backend_library INTERFACE ${_trgt} )
102
102
103
+ if (DPNP_WITH_REDIST)
104
+ set_target_properties (${python_module_name} PROPERTIES INSTALL_RPATH "$ORIGIN/../../../" )
105
+ endif ()
106
+
103
107
if (DPNP_BACKEND_TESTS)
104
108
add_subdirectory (tests)
105
109
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 @@ -84,6 +84,10 @@ if (DPNP_GENERATE_COVERAGE)
84
84
target_link_options (${python_module_name} PRIVATE -fprofile-instr-generate -fcoverage-mapping)
85
85
endif ()
86
86
87
+ if (DPNP_WITH_REDIST)
88
+ set_target_properties (${python_module_name} PROPERTIES INSTALL_RPATH "$ORIGIN/../../../../../../" )
89
+ endif ()
90
+
87
91
install (TARGETS ${python_module_name}
88
92
DESTINATION "dpnp/backend/extensions/statistics"
89
93
)
Original file line number Diff line number Diff line change @@ -103,6 +103,10 @@ if (DPNP_GENERATE_COVERAGE)
103
103
target_link_options (${python_module_name} PRIVATE -fprofile-instr-generate -fcoverage-mapping)
104
104
endif ()
105
105
106
+ if (DPNP_WITH_REDIST)
107
+ set_target_properties (${python_module_name} PROPERTIES INSTALL_RPATH "$ORIGIN/../../../../../../" )
108
+ endif ()
109
+
106
110
install (TARGETS ${python_module_name}
107
111
DESTINATION "dpnp/backend/extensions/ufunc"
108
112
)
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