Skip to content

Commit e4b900b

Browse files
Merge pull request #1338 from IntelPython/set-dependencies
Set dependencies for dpnp_algo Cython extension to account for files involved via use of include
2 parents 64093b2 + 75f7da1 commit e4b900b

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

dpnp/backend/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ endif()
9191
# SYCL related compile options
9292
string(CONCAT COMMON_COMPILE_FLAGS
9393
"-fsycl "
94-
"-fsycl-device-code-split=per_kernel "
9594
"-fno-approx-func "
9695
"-fno-finite-math-only "
9796
)
@@ -173,6 +172,7 @@ if(NOT WIN32)
173172
"-fno-delete-null-pointer-checks "
174173
"-fstack-protector-strong "
175174
"-fno-strict-overflow "
175+
"-fwrapv "
176176
)
177177
string(APPEND COMMON_LINK_FLAGS
178178
"LINKER:-z,noexecstack,-z,relro,-z,now "

setup.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
'''
126126
This variable controls setuptools execution on windows
127127
to avoid automatically search and confirm workability of the compiler
128-
If not set, error "Microsoft Visual C++ 14.0 or greater is required." appiars
128+
If not set, error "Microsoft Visual C++ 14.0 or greater is required." appears
129129
'''
130130
os.environ["DISTUTILS_USE_SDK"] = "1"
131131

@@ -145,6 +145,21 @@
145145
dpnp_algo = Extension(
146146
name="dpnp.dpnp_algo.dpnp_algo",
147147
sources=[os.path.join("dpnp", "dpnp_algo", "dpnp_algo.pyx")],
148+
depends=[
149+
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_linearalgebra.pyx"),
150+
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_manipulation.pyx"),
151+
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_counting.pyx"),
152+
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_statistics.pyx"),
153+
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_trigonometric.pyx"),
154+
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_sorting.pyx"),
155+
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_arraycreation.pyx"),
156+
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_mathematical.pyx"),
157+
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_searching.pyx"),
158+
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_indexing.pyx"),
159+
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_logic.pyx"),
160+
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_bitwise.pyx"),
161+
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_special.pyx"),
162+
],
148163
**kwargs_common)
149164

150165
dpnp_dparray = Extension(

0 commit comments

Comments
 (0)