Skip to content
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Replaced `ci` section in `.pre-commit-config.yaml` with a new GitHub workflow with scheduled run to autoupdate the `pre-commit` configuration [#2542](https://github.com/IntelPython/dpnp/pull/2542)
* FFT module is updated to perform in-place FFT in intermediate steps of ND FFT [#2543](https://github.com/IntelPython/dpnp/pull/2543)
* Reused dpctl tensor include to enable experimental SYCL namespace for complex types [#2546](https://github.com/IntelPython/dpnp/pull/2546)
* Changed Windows-specific logic in dpnp initialization [#2553](https://github.com/IntelPython/dpnp/pull/2553)

### Deprecated

Expand Down
10 changes: 3 additions & 7 deletions dpnp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,13 @@
# where to search for DLLs towards both DPNP backend and DPCTL Sycl interface,
# otherwise DPNP import will be failing. This is because the libraries
# are not installed under any of default paths where Python is searching.
from platform import system

if system() == "Windows": # pragma: no cover
if hasattr(os, "add_dll_directory"):
os.add_dll_directory(mypath)
os.add_dll_directory(dpctlpath)

if sys.platform == "win32": # pragma: no cover
os.add_dll_directory(mypath)
os.add_dll_directory(dpctlpath)
os.environ["PATH"] = os.pathsep.join(
[os.getenv("PATH", ""), mypath, dpctlpath]
)

# For virtual environments on Windows, add folder with DPC++ libraries
# to the DLL search path
if sys.base_exec_prefix != sys.exec_prefix and os.path.isfile(
Expand Down
Loading