<?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 Trouble installing Intel extension for PyTorch in GPU Compute Software</title>
    <link>https://community.intel.com/t5/GPU-Compute-Software/Trouble-installing-Intel-extension-for-PyTorch/m-p/1593002#M1394</link>
    <description>&lt;P&gt;I am using the following directions in the hope of getting GPU working with PyTorch on Windows 11:&amp;nbsp;&lt;A href="https://intel.github.io/intel-extension-for-pytorch/#installation?platform=gpu&amp;amp;version=v2.1.20%2bxpu&amp;amp;os=windows&amp;amp;package=pip" target="_blank" rel="noopener"&gt;https://intel.github.io/intel-extension-for-pytorch/#installation?platform=gpu&amp;amp;version=v2.1.20%2bxpu&amp;amp;os=windows&amp;amp;package=pip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try the sanity test,&lt;/P&gt;&lt;PRE&gt;call "C:\Program Files (x86)\Intel\oneAPI\compiler\latest\env\vars.bat"&lt;/PRE&gt;&lt;P&gt;it returns,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;:: WARNING: Visual Studio was not found in the standard installation location:
   "C:\Program Files\Microsoft Visual Studio\&amp;lt;Year&amp;gt;\&amp;lt;Edition&amp;gt;" or
   "C:\Program Files (x86)\Microsoft Visual Studio\&amp;lt;Year&amp;gt;\&amp;lt;Edition&amp;gt;"
   Set the VS2019INSTALLDIR or VS2022INSTALLDIR
   environment variable to point to your install location and try again.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I do have the environment set as when I enter&lt;/P&gt;&lt;PRE&gt;echo %VS2022INSTALLDIR% &lt;/PRE&gt;&lt;P&gt;I get&lt;/P&gt;&lt;PRE&gt;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE&lt;/PRE&gt;&lt;P&gt;If I proceed with the sanity test, the next line works, but then I fail again here:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;python -c "import torch; import intel_extension_for_pytorch as ipex; print(torch.__version__); print(ipex.__version__); [print(f'[{i}]: {torch.xpu.get_device_properties(i)}') for i in range(torch.xpu.device_count())];"&lt;/PRE&gt;&lt;P&gt;with the following response:&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Traceback (most recent call last):
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;
  File "C:\Users\[USER]\anaconda3\envs\gpu\Lib\site-packages\torch\__init__.py", line 139, in &amp;lt;module&amp;gt;
    raise err
OSError: [WinError 126] The specified module could not be found. Error loading "C:\Users\[USER]\anaconda3\envs\gpu\Lib\site-packages\torch\lib\backend_with_compiler.dll" or one of its dependencies.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help troubleshooting would be much appreciated! Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2024 16:20:06 GMT</pubDate>
    <dc:creator>atkat12</dc:creator>
    <dc:date>2024-04-26T16:20:06Z</dc:date>
    <item>
      <title>Trouble installing Intel extension for PyTorch</title>
      <link>https://community.intel.com/t5/GPU-Compute-Software/Trouble-installing-Intel-extension-for-PyTorch/m-p/1593002#M1394</link>
      <description>&lt;P&gt;I am using the following directions in the hope of getting GPU working with PyTorch on Windows 11:&amp;nbsp;&lt;A href="https://intel.github.io/intel-extension-for-pytorch/#installation?platform=gpu&amp;amp;version=v2.1.20%2bxpu&amp;amp;os=windows&amp;amp;package=pip" target="_blank" rel="noopener"&gt;https://intel.github.io/intel-extension-for-pytorch/#installation?platform=gpu&amp;amp;version=v2.1.20%2bxpu&amp;amp;os=windows&amp;amp;package=pip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try the sanity test,&lt;/P&gt;&lt;PRE&gt;call "C:\Program Files (x86)\Intel\oneAPI\compiler\latest\env\vars.bat"&lt;/PRE&gt;&lt;P&gt;it returns,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;:: WARNING: Visual Studio was not found in the standard installation location:
   "C:\Program Files\Microsoft Visual Studio\&amp;lt;Year&amp;gt;\&amp;lt;Edition&amp;gt;" or
   "C:\Program Files (x86)\Microsoft Visual Studio\&amp;lt;Year&amp;gt;\&amp;lt;Edition&amp;gt;"
   Set the VS2019INSTALLDIR or VS2022INSTALLDIR
   environment variable to point to your install location and try again.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I do have the environment set as when I enter&lt;/P&gt;&lt;PRE&gt;echo %VS2022INSTALLDIR% &lt;/PRE&gt;&lt;P&gt;I get&lt;/P&gt;&lt;PRE&gt;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE&lt;/PRE&gt;&lt;P&gt;If I proceed with the sanity test, the next line works, but then I fail again here:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;python -c "import torch; import intel_extension_for_pytorch as ipex; print(torch.__version__); print(ipex.__version__); [print(f'[{i}]: {torch.xpu.get_device_properties(i)}') for i in range(torch.xpu.device_count())];"&lt;/PRE&gt;&lt;P&gt;with the following response:&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Traceback (most recent call last):
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;
  File "C:\Users\[USER]\anaconda3\envs\gpu\Lib\site-packages\torch\__init__.py", line 139, in &amp;lt;module&amp;gt;
    raise err
OSError: [WinError 126] The specified module could not be found. Error loading "C:\Users\[USER]\anaconda3\envs\gpu\Lib\site-packages\torch\lib\backend_with_compiler.dll" or one of its dependencies.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help troubleshooting would be much appreciated! Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 16:20:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/GPU-Compute-Software/Trouble-installing-Intel-extension-for-PyTorch/m-p/1593002#M1394</guid>
      <dc:creator>atkat12</dc:creator>
      <dc:date>2024-04-26T16:20:06Z</dc:date>
    </item>
    <item>
      <title>Re:Trouble installing Intel extension for PyTorch</title>
      <link>https://community.intel.com/t5/GPU-Compute-Software/Trouble-installing-Intel-extension-for-PyTorch/m-p/1593543#M1396</link>
      <description>&lt;P&gt;Hi Katherine, could you please share the below details for further investigation:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is the installer an online or an offline package?&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Version of Microsoft Visual Studio installed along with it's build version&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Installation Log files.&amp;nbsp;&amp;nbsp;&lt;UL&gt;&lt;LI&gt;The default path for a log file for a oneAPI installation is:&amp;nbsp;C:\Program&amp;nbsp;Files&amp;nbsp;(x86)\Intel\oneAPI\logs&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Is python 3 installed in your system?&lt;/LI&gt;&lt;LI&gt;Exact Intel® oneAPI Product name?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Apr 2024 15:51:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/GPU-Compute-Software/Trouble-installing-Intel-extension-for-PyTorch/m-p/1593543#M1396</guid>
      <dc:creator>Vipin_S_Intel</dc:creator>
      <dc:date>2024-04-29T15:51:28Z</dc:date>
    </item>
    <item>
      <title>Re:Trouble installing Intel extension for PyTorch</title>
      <link>https://community.intel.com/t5/GPU-Compute-Software/Trouble-installing-Intel-extension-for-PyTorch/m-p/1594541#M1403</link>
      <description>&lt;P&gt;Hi Katherine, unfortunately, we were unable to hear back from you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you have any further queries, please post a new question, as this thread will no longer be monitored by Intel®.&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 May 2024 20:47:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/GPU-Compute-Software/Trouble-installing-Intel-extension-for-PyTorch/m-p/1594541#M1403</guid>
      <dc:creator>Vipin_S_Intel</dc:creator>
      <dc:date>2024-05-02T20:47:44Z</dc:date>
    </item>
  </channel>
</rss>

