<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Intel® Distribution for Python*のトピックRe: About the availability of the use of GPU in Intel Numpy</title>
    <link>https://community.intel.com/t5/Intel-Distribution-for-Python/About-the-availability-of-the-use-of-GPU-in-Intel-Numpy/m-p/1311114#M1739</link>
    <description>&lt;P&gt;Hi Xuwen,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GPU support in scikit-learn is present&amp;nbsp;for DBSCAN, K-Means, Linear Regression and Logistic Regression algorithms.&lt;/P&gt;
&lt;P&gt;daal4py optimizations for GPU include KNN Classification, batch and streaming Covariance, DBSCAN, GBT Regression, K-Means, Linear &amp;amp; Logistic Regression, batch and streaming Low Order Moments, PCA, and binary SVM Classification.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example of running sklearn dbscan algorithm on gpu.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;from daal4py.sklearn import patch_sklearn
from daal4py.oneapi import sycl_context
patch_sklearn()
from sklearn.cluster import DBSCAN
X = np.array([[1., 2.], [2., 2.], [2., 3.],
      [8., 7.], [8., 8.], [25., 80.]], dtype=np.float32)

with sycl_context("gpu"):
  clustering = DBSCAN(eps=3, min_samples=2).fit(X)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For numpy with GPU support you could try out dpnp – GPU-enabled Data Parallel NumPy, a collection of many NumPy algorithms accelerated for GPUs. You can find information on&amp;nbsp;examples and usage of&amp;nbsp;dpnp by following the below link&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/IntelPython/dpnp" target="_blank" rel="noopener"&gt;https://github.com/IntelPython/dpnp&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Arun Jose&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Sep 2021 03:49:41 GMT</pubDate>
    <dc:creator>ArunJ_Intel</dc:creator>
    <dc:date>2021-09-01T03:49:41Z</dc:date>
    <item>
      <title>About the availability of the use of GPU in Intel Numpy</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/About-the-availability-of-the-use-of-GPU-in-Intel-Numpy/m-p/1311028#M1738</link>
      <description>&lt;P&gt;Hi, I am going to test the SpMV performance on the IA hardware, and want to know if Intel-NumPy/SciPy has the support for the Intel i-GPUs, besides the Intel CPUs. If true, what operations should I make to use the GPUs in the Python code, like Cupy.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 05:34:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/About-the-availability-of-the-use-of-GPU-in-Intel-Numpy/m-p/1311028#M1738</guid>
      <dc:creator>Xuwen_T_Intel</dc:creator>
      <dc:date>2021-08-31T05:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: About the availability of the use of GPU in Intel Numpy</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/About-the-availability-of-the-use-of-GPU-in-Intel-Numpy/m-p/1311114#M1739</link>
      <description>&lt;P&gt;Hi Xuwen,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GPU support in scikit-learn is present&amp;nbsp;for DBSCAN, K-Means, Linear Regression and Logistic Regression algorithms.&lt;/P&gt;
&lt;P&gt;daal4py optimizations for GPU include KNN Classification, batch and streaming Covariance, DBSCAN, GBT Regression, K-Means, Linear &amp;amp; Logistic Regression, batch and streaming Low Order Moments, PCA, and binary SVM Classification.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example of running sklearn dbscan algorithm on gpu.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;from daal4py.sklearn import patch_sklearn
from daal4py.oneapi import sycl_context
patch_sklearn()
from sklearn.cluster import DBSCAN
X = np.array([[1., 2.], [2., 2.], [2., 3.],
      [8., 7.], [8., 8.], [25., 80.]], dtype=np.float32)

with sycl_context("gpu"):
  clustering = DBSCAN(eps=3, min_samples=2).fit(X)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For numpy with GPU support you could try out dpnp – GPU-enabled Data Parallel NumPy, a collection of many NumPy algorithms accelerated for GPUs. You can find information on&amp;nbsp;examples and usage of&amp;nbsp;dpnp by following the below link&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/IntelPython/dpnp" target="_blank" rel="noopener"&gt;https://github.com/IntelPython/dpnp&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Arun Jose&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 03:49:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/About-the-availability-of-the-use-of-GPU-in-Intel-Numpy/m-p/1311114#M1739</guid>
      <dc:creator>ArunJ_Intel</dc:creator>
      <dc:date>2021-09-01T03:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: About the availability of the use of GPU in Intel Numpy</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/About-the-availability-of-the-use-of-GPU-in-Intel-Numpy/m-p/1312311#M1743</link>
      <description>&lt;P&gt;&lt;SPAN&gt;HIi Arun&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks a lot for your feedback. I have two new question about dpnp. First, does this library contain any sparse matrix-cector operations, e.g. SpMV? Second, this library is based on a C++&amp;nbsp;&lt;/SPAN&gt;library with SYCL based kernels, so do these kernels are those from oneMKL?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Xuwen&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 05:24:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/About-the-availability-of-the-use-of-GPU-in-Intel-Numpy/m-p/1312311#M1743</guid>
      <dc:creator>Xuwen_T_Intel</dc:creator>
      <dc:date>2021-09-06T05:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: About the availability of the use of GPU in Intel Numpy</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/About-the-availability-of-the-use-of-GPU-in-Intel-Numpy/m-p/1312609#M1745</link>
      <description>&lt;P&gt;Hi Xuwen,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In limitations of dpnp.meshgrid it is mentioned sparse is supported only with a value of false. I couldnt find any mention of support for sparse matrix-vector operations with dpnp. However we will check internally and provide you a definitive response regarding sparse matrix/vector operations if any present in the library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://intelpython.github.io/dpnp/reference/generated/dpnp.meshgrid.html" target="_blank" rel="noopener"&gt;https://intelpython.github.io/dpnp/reference/generated/dpnp.meshgrid.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding your second query, DPNP is a NumPy-like library accelerated with SYCL on Intel devices. It provides Python interfaces for many NumPy functions, and includes a subset of methods of :class:`dpnp.ndarray`. Under the hood it is based on native C++ and oneMKL based kernels.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/IntelPython/dpnp/blob/1b4ab46c23ae74552069b50b6babc1883388ad1e/doc/index.rst" target="_blank" rel="noopener"&gt;https://github.com/IntelPython/dpnp/blob/1b4ab46c23ae74552069b50b6babc1883388ad1e/doc/index.rst&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Arun&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 04:52:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/About-the-availability-of-the-use-of-GPU-in-Intel-Numpy/m-p/1312609#M1745</guid>
      <dc:creator>ArunJ_Intel</dc:creator>
      <dc:date>2021-09-09T04:52:57Z</dc:date>
    </item>
    <item>
      <title>Re:About the availability of the use of GPU in Intel Numpy</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/About-the-availability-of-the-use-of-GPU-in-Intel-Numpy/m-p/1317095#M1752</link>
      <description>&lt;P&gt;Hi Xuwen,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am an engineer working on your issue. Sparse functionality is supported in oneMKL (&lt;A href="https://docs.oneapi.io/versions/latest/onemkl/oneapi-mkl-sparse-gemv.html" rel="noopener noreferrer" target="_blank"&gt;https://docs.oneapi.io/versions/latest/onemkl/oneapi-mkl-sparse-gemv.html&lt;/A&gt;) to execute of SYCL devices, but not presently available in dpnp. We will file this functionality and samples supporting this for dpnp and dpctl as a feature request for a feature release of the product.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Rachel&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Sep 2021 19:59:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/About-the-availability-of-the-use-of-GPU-in-Intel-Numpy/m-p/1317095#M1752</guid>
      <dc:creator>Rachel_O_Intel</dc:creator>
      <dc:date>2021-09-24T19:59:32Z</dc:date>
    </item>
    <item>
      <title>Re:About the availability of the use of GPU in Intel Numpy</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/About-the-availability-of-the-use-of-GPU-in-Intel-Numpy/m-p/1318661#M1755</link>
      <description>&lt;P&gt;This thread is now closed. Any additional comments to this thread will be considered community only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you need any additional information, please submit a new question as this thread will no longer be monitored.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Rachel&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Oct 2021 20:35:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/About-the-availability-of-the-use-of-GPU-in-Intel-Numpy/m-p/1318661#M1755</guid>
      <dc:creator>Rachel_O_Intel</dc:creator>
      <dc:date>2021-10-01T20:35:09Z</dc:date>
    </item>
  </channel>
</rss>

