Skip to content

Set dependencies for dpnp_algo Cython extension to account for files involved via use of include #1338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dpnp/backend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ endif()
# SYCL related compile options
string(CONCAT COMMON_COMPILE_FLAGS
"-fsycl "
"-fsycl-device-code-split=per_kernel "
"-fno-approx-func "
"-fno-finite-math-only "
)
Expand Down Expand Up @@ -173,6 +172,7 @@ if(NOT WIN32)
"-fno-delete-null-pointer-checks "
"-fstack-protector-strong "
"-fno-strict-overflow "
"-fwrapv "
)
string(APPEND COMMON_LINK_FLAGS
"LINKER:-z,noexecstack,-z,relro,-z,now "
Expand Down
17 changes: 16 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
'''
This variable controls setuptools execution on windows
to avoid automatically search and confirm workability of the compiler
If not set, error "Microsoft Visual C++ 14.0 or greater is required." appiars
If not set, error "Microsoft Visual C++ 14.0 or greater is required." appears
'''
os.environ["DISTUTILS_USE_SDK"] = "1"

Expand All @@ -145,6 +145,21 @@
dpnp_algo = Extension(
name="dpnp.dpnp_algo.dpnp_algo",
sources=[os.path.join("dpnp", "dpnp_algo", "dpnp_algo.pyx")],
depends=[
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_linearalgebra.pyx"),
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_manipulation.pyx"),
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_counting.pyx"),
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_statistics.pyx"),
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_trigonometric.pyx"),
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_sorting.pyx"),
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_arraycreation.pyx"),
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_mathematical.pyx"),
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_searching.pyx"),
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_indexing.pyx"),
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_logic.pyx"),
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_bitwise.pyx"),
os.path.join("dpnp", "dpnp_algo", "dpnp_algo_special.pyx"),
],
**kwargs_common)

dpnp_dparray = Extension(
Expand Down