Skip to content

Merge changes for nightly tests in CI #1190

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 30 commits into from
Sep 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
885f91a
dpnp_take_c uses SYCL kernel, no need to use no_sycl parameter in ada…
oleksandr-pavlyk Aug 11, 2022
7220d87
Change to DPNPC_adapter to set/use events upon which deallocation mus…
oleksandr-pavlyk Aug 11, 2022
37386bb
Used DPNPC_ptr_adapter::depends_on
oleksandr-pavlyk Aug 14, 2022
16a7632
Get rid of "Improper Null Termination" issue
antonwolfy Aug 17, 2022
d839ea1
implemented PR feedback
oleksandr-pavlyk Aug 17, 2022
cfc9b40
Merge pull request #1167 from IntelPython/fix-take
oleksandr-pavlyk Aug 18, 2022
818dc82
Reworked solution with a pointer on void
antonwolfy Aug 18, 2022
a8da387
Merge branch 'master' into antonwolfy/checkmarx_fix
antonwolfy Aug 18, 2022
b29d957
Update dpnp/backend/kernels/dpnp_krnl_random.cpp
antonwolfy Aug 18, 2022
629d0e0
Update dpnp/backend/kernels/dpnp_krnl_random.cpp
antonwolfy Aug 18, 2022
ce6d880
Merge pull request #1168 from IntelPython/antonwolfy/checkmarx_fix
antonwolfy Aug 19, 2022
2fed06a
Skip for two more tests till waiting fix (#1171)
xaleryb Aug 24, 2022
9b14f0c
dpnp_take failed on Windows due to memory corruption (#1172)
antonwolfy Aug 30, 2022
59ef493
Merge branch 'gold/2021'
antonwolfy Aug 30, 2022
c91f912
Add workflow for Win
antonwolfy Sep 8, 2022
ac0f6f6
Merge pull request #1176 from antonwolfy/build_and_upload_for_win
oleksandr-pavlyk Sep 8, 2022
31144c6
Attempt to fix workflow
oleksandr-pavlyk Sep 8, 2022
ee65713
attempt to fix upload steps of the workflow on Linux
oleksandr-pavlyk Sep 8, 2022
26d190c
Merge pull request #1177 from IntelPython/finess-conda-package
oleksandr-pavlyk Sep 8, 2022
2ea4aac
Another attempt to fix upload step of conda-package workflow
oleksandr-pavlyk Sep 9, 2022
ac79e9f
Set default shell in upload actions (#1180)
antonwolfy Sep 9, 2022
64478ae
Use pin_compatible for run-time dependency generation on numpy, restr…
oleksandr-pavlyk Sep 9, 2022
5f87d3a
Merge pull request #1178 from IntelPython/use-variant
oleksandr-pavlyk Sep 9, 2022
bd1a414
Reorder channels in conda-build (#1182)
antonwolfy Sep 10, 2022
3be4b2e
Add tests running as a part of github actions (#1184)
antonwolfy Sep 20, 2022
614c829
[Build] setuptools 63.4.1 breaks build for Windows (#1185)
antonwolfy Sep 21, 2022
e3e04c7
Add extra information on how to build dpdnp from source.
Sep 21, 2022
8b44b4a
Merge pull request #1188 from IntelPython/update/readme
oleksandr-pavlyk Sep 21, 2022
efa1a19
Fix import dpnp on Win & python 3.10 (#1189)
antonwolfy Sep 29, 2022
1d19119
Merge branch 'gold/2021' into master
antonwolfy Sep 29, 2022
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
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,35 @@ DPNP_QUEUE_GPU=1 python examples/example1.py
```

## Build from source:
Ensure you have the following prerequisite packages installed:

- `mkl-devel-dpcpp`
- `dpcpp_linux-64` or `dpcpp_win-64` (depending on your OS)
- `tbb-devel`
- `dpctl`

In addition, you need oneDPL installed on your system. There are two ways to do
so:

1. Install oneAPI and run the oneDPL activation script. E.g., on linux:

```bash
source /opt/intel/oneapi/dpl/latest/env/vars.sh
```

2. Clone dpl from https://github.com/oneapi-src/oneDPL and set the `DPL_ROOT`
environment variable to point to the `include` directory in the repository.

E.g., on linux

```bash
git clone https://github.com/oneapi-src/oneDPL
export DPL_ROOT=$(pwd)/oneDPL/include
```

After these steps, `dpnp` can be built in debug mode as follows:


```bash
git clone https://github.com/IntelPython/dpnp
cd dpnp
Expand Down
13 changes: 11 additions & 2 deletions dpnp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# *****************************************************************************
# Copyright (c) 2016-2020, Intel Corporation
# Copyright (c) 2016-2022, Intel Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -30,7 +30,16 @@
import dpctl
dpctlpath = os.path.dirname(dpctl.__file__)

os.environ["PATH"] += os.pathsep + mypath + os.pathsep + dpctlpath
# For Windows OS with Python >= 3.7, it is required to explicitly define a path
# 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':
if hasattr(os, "add_dll_directory"):
os.add_dll_directory(mypath)
os.add_dll_directory(dpctlpath)
os.environ["PATH"] = os.pathsep.join([os.getenv("PATH", ""), mypath, dpctlpath])


from dpnp.dpnp_array import dpnp_array as ndarray
Expand Down