<?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>topic Re:Cholesky Factorization on GPU in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cholesky-Factorization-on-GPU/m-p/1640149#M36579</link>
    <description>&lt;P&gt;Could you please check the oneMKL example for Cholesky factorization located in the following folder:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;mkl/latest/share/doc/mkl/examples/examples_sycl.tgz&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The Cholesky factorization examples can be found at:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;sycl/lapack/source/potrs.cpp&lt;/P&gt;&lt;P&gt;sycl/lapack/source/potrs_usm.cpp&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you are working with a large matrix, please define the dimension as 64-bit integers and use the oneMKL 64-bit integer interface.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 30 Oct 2024 05:43:49 GMT</pubDate>
    <dc:creator>Chao_Y_Intel</dc:creator>
    <dc:date>2024-10-30T05:43:49Z</dc:date>
    <item>
      <title>Cholesky Factorization on GPU</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cholesky-Factorization-on-GPU/m-p/1638140#M36553</link>
      <description>&lt;P&gt;I am trying to compute a Cholesky factorization of a large matrix with an Intel Data Center Max 1550s GPU. The matrix size is 100,000 x 100,000. For testing, I am creating a random SPD matrix and seeing what the factorization/solve times are. The code file is attached. In the file, there is a commented out portion where it was making a random matrix. I changed it to just try a scaled Identity matrix first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To compile:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;icpx -fsycl -DGPU -o cholesky_gpu cholesky_gpu.cpp -lmkl_sycl -lmkl_intel_ilp64 -lmkl_core -lmkl_sequential -lsycl -lOpenCL&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then run:&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;./cholesky_gpu &amp;lt;N&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;where N is the matrix size. This works fine for matrices up to 40,000 or so. If I use the random matrix version, I start seeing errors like&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;Provided range is out of integer limits. Pass `-fno-sycl-id-queries-fit-in-int' to disable range check.&lt;/LI-CODE&gt;&lt;P&gt;I thought this had to do with the `range&amp;lt;2&amp;gt;(N,N)` becoming too big (I am using size_t and not int). With the scaled identity matrix, the potrf call gives an error saying the matrix is not positive definite.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me solve this issue? I am very new to SYCL, so I might be making a very silly mistake somewhere. If there is an example Cholesky code that works on an arbitrary size matrix, that would be perfect!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2024 02:43:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cholesky-Factorization-on-GPU/m-p/1638140#M36553</guid>
      <dc:creator>s769</dc:creator>
      <dc:date>2024-10-19T02:43:58Z</dc:date>
    </item>
    <item>
      <title>Re:Cholesky Factorization on GPU</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cholesky-Factorization-on-GPU/m-p/1640149#M36579</link>
      <description>&lt;P&gt;Could you please check the oneMKL example for Cholesky factorization located in the following folder:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;mkl/latest/share/doc/mkl/examples/examples_sycl.tgz&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The Cholesky factorization examples can be found at:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;sycl/lapack/source/potrs.cpp&lt;/P&gt;&lt;P&gt;sycl/lapack/source/potrs_usm.cpp&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you are working with a large matrix, please define the dimension as 64-bit integers and use the oneMKL 64-bit integer interface.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Oct 2024 05:43:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cholesky-Factorization-on-GPU/m-p/1640149#M36579</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2024-10-30T05:43:49Z</dc:date>
    </item>
  </channel>
</rss>

