From 38b48b53c0cf043e1afcf8286262bb96209d40e0 Mon Sep 17 00:00:00 2001 From: densmirn <53897164+densmirn@users.noreply.github.com> Date: Fri, 19 Feb 2021 21:58:10 +0300 Subject: [PATCH 1/4] Fix bandit issues part 1 (#608) (#613) --- utils/command_build_clib.py | 1 - 1 file changed, 1 deletion(-) diff --git a/utils/command_build_clib.py b/utils/command_build_clib.py index bfcd3b217079..c67af6af9557 100644 --- a/utils/command_build_clib.py +++ b/utils/command_build_clib.py @@ -269,7 +269,6 @@ def build_libraries(self, libraries): link_command += " " + ".lib ".join(libraries) + ".lib" # libraries link_command += " /OUT:" + c_library_filename # output file name link_command += " " + " ".join(extra_link_postargs) - print(link_command) os.system(link_command) else: self.compiler.link_shared_lib(objects, From 35e65b3fbd8a0435da6f7b557bfc212195067dc5 Mon Sep 17 00:00:00 2001 From: densmirn <53897164+densmirn@users.noreply.github.com> Date: Fri, 26 Feb 2021 19:10:19 +0300 Subject: [PATCH 2/4] Support MLK 2021.2.0 (#625) --- conda-recipe/meta.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml index 102a1971461a..62a8e5c169da 100644 --- a/conda-recipe/meta.yaml +++ b/conda-recipe/meta.yaml @@ -21,6 +21,7 @@ requirements: - dpctl >=0.5.0a0 - dpcpp_cpp_rt >=2021.1.1 - mkl >=2021.1.1 + - mkl-dpcpp >=2021.1.1 build: number: {{ GIT_DESCRIBE_NUMBER }} From 1d07bc9f86920944faf4ebe64831da21ad0104ab Mon Sep 17 00:00:00 2001 From: Vyacheslav-Smirnov <51660067+Vyacheslav-Smirnov@users.noreply.github.com> Date: Fri, 19 Mar 2021 15:44:57 +0300 Subject: [PATCH 3/4] Update package wheel (#555) * Update packages wheel deps * Do not search deps via setuptools * Fix build: no search for dpes via setuptools * Add set -ex to build.sh * Revert changes to meta.yaml, build.sh and install_requires in setup.py * Remove author_email * Add correct license description * Add How to for install dpnp wheel package * Add RPATH for wheels; update readme --- README.md | 19 +++++++++++++++++++ conda-recipe/build.sh | 4 ++++ setup.py | 7 ++----- 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9844f73f0aa1..08a6a99827c7 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,25 @@ cd dpnp ./0.build.sh ``` +## Install Wheel Package from Pypi +Install DPNP +```cmd +python -m pip install --index-url https://pypi.anaconda.org/intel/simple -extra-index-url https://pypi.org/simple dpnp +``` +Note: DPNP wheel package is placed on Pypi, but some of its dependencies (like Intel numpy) are in Anaconda Cloud. +That is why install command requires additional intel Pypi channel from Anaconda Cloud. + +Set path to Performance Libraries in case of using venv or system Python: +```cmd +export LD_LIBRARY_PATH=/lib +``` + +It is also required to set following environment variables: +```cmd +export OCL_ICD_FILENAMES_RESET=1 +export OCL_ICD_FILENAMES=libintelocl.so +``` + ## Run test ```bash . ./0.env.sh diff --git a/conda-recipe/build.sh b/conda-recipe/build.sh index e580f84a8e33..2e3a83d27c03 100644 --- a/conda-recipe/build.sh +++ b/conda-recipe/build.sh @@ -25,6 +25,10 @@ if [ -n "${TBBROOT}" ]; then . ${TBBROOT}/env/vars.sh fi +# Set RPATH for wheels +export CFLAGS="-Wl,-rpath,\$ORIGIN/../dpctl,-rpath,\$ORIGIN $CFLAGS" +export LDFLAGS="-Wl,-rpath,\$ORIGIN/../dpctl,-rpath,\$ORIGIN $LDFLAGS" + $PYTHON setup.py build_clib $PYTHON setup.py build_ext install diff --git a/setup.py b/setup.py index a5989514f75b..b61af56cbf94 100644 --- a/setup.py +++ b/setup.py @@ -73,9 +73,6 @@ with open('README.md') as f: __readme_file__ = f.read() -with open('LICENSE.txt') as f: - __license_file__ = f.read() - CLASSIFIERS = """\ Development Status :: 0 - Alpha Intended Audience :: Science/Research @@ -183,13 +180,13 @@ version=__version__, description="NumPy-like API accelerated with SYCL", long_description=__readme_file__, + long_description_content_type="text/markdown", author="Intel Corporation", - author_email="Intel Corporation", maintainer="Intel Corp.", maintainer_email="scripting@intel.com", url="https://intelpython.github.io/dpnp/", download_url="https://github.com/IntelPython/dpnp", - license=__license_file__, + license='BSD', classifiers=[_f for _f in CLASSIFIERS.split('\n') if _f], keywords="sycl numpy python3 intel mkl oneapi gpu dpcpp pstl", platforms=["Linux", "Windows"], From 4f4f9fd92cac64bf3972ddf78aa1c4bba930b2a1 Mon Sep 17 00:00:00 2001 From: Vyacheslav Smirnov Date: Mon, 22 Mar 2021 19:04:54 +0300 Subject: [PATCH 4/4] Update development status --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b61af56cbf94..8c23a17e6c0b 100644 --- a/setup.py +++ b/setup.py @@ -74,7 +74,7 @@ __readme_file__ = f.read() CLASSIFIERS = """\ -Development Status :: 0 - Alpha +Development Status :: 4 - Beta Intended Audience :: Science/Research Intended Audience :: Developers License :: OSI Approved