diff --git a/README.md b/README.md index e601f1f1488..c8b231f96b3 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,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 e580f84a8e3..2e3a83d27c0 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 a5989514f75..8c23a17e6c0 100644 --- a/setup.py +++ b/setup.py @@ -73,11 +73,8 @@ 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 +Development Status :: 4 - Beta Intended Audience :: Science/Research Intended Audience :: Developers License :: OSI Approved @@ -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"],