<?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 2022 Visual Studio IPP setvars.bat error: oneAPI toolkits no longer supports 32-bit libraries in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/2022-Visual-Studio-IPP-setvars-bat-error-oneAPI-toolkits-no/m-p/1657734#M28980</link>
    <description>&lt;P&gt;Windows 11&lt;/P&gt;&lt;P&gt;IPP 2025&lt;/P&gt;&lt;P&gt;Visual Studio 2022&lt;/P&gt;&lt;P&gt;Visual Studio Code 1.92.3&lt;/P&gt;&lt;P&gt;When I run the IPP setvars.bat Developer Powershell in Visual Studio 2022 with this command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;`cmd.exe "/K" '"C:\Program Files (x86)\Intel\oneAPI\setvars.bat" &amp;amp;&amp;amp; powershell'`&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get an error stating&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ERROR: The oneAPI toolkits no longer support 32-bit libraries, starting with the 2025.0 toolkit release. See the oneAPI release notes for more details.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I figured out that this error occurs in this setvars.bat code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;rem ===========================================================================
rem Override default 64-bit target if 32-bit Visual Studio env already exists.
rem Primarily affects "classic" compilers and some libraries (e.g., IPP, MKL).
if defined VSCMD_VER (
  echo: VSCMD_VER is defined. 
  if /i [%VSCMD_ARG_TGT_ARCH%] == [x86] (
    echo :: ERROR: The oneAPI toolkits no longer support 32-bit libraries, starting with the 2025.0 toolkit release. See the oneAPI release notes for more details.
    echo: Error came from %VSCMD_ARG_TGT_ARCH%
    call :Usage
    goto :eofCleanup
  ) else (
    set TARGET_ARCH=intel64
  )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I printed&amp;nbsp;&lt;SPAN&gt;VSCMD_ARG_TGT_ARCH&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;and it is "x86"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But when I ran commands to check of the powershell is 32 or 64 bit, I get the following on both Visual Studio and VS Code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;gt; [System.IntPtr]::Size
8
&amp;gt; $PSHOME
C:\Windows\System32\WindowsPowerShell\v1.0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to google, the two above outputs say that the powershell is 64 bit.&lt;/P&gt;&lt;P&gt;In VS Code, the setvars.bat cmd completes without error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So is this bug in setvars.bat?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jan 2025 01:31:01 GMT</pubDate>
    <dc:creator>eddie_patton</dc:creator>
    <dc:date>2025-01-17T01:31:01Z</dc:date>
    <item>
      <title>2022 Visual Studio IPP setvars.bat error: oneAPI toolkits no longer supports 32-bit libraries</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/2022-Visual-Studio-IPP-setvars-bat-error-oneAPI-toolkits-no/m-p/1657734#M28980</link>
      <description>&lt;P&gt;Windows 11&lt;/P&gt;&lt;P&gt;IPP 2025&lt;/P&gt;&lt;P&gt;Visual Studio 2022&lt;/P&gt;&lt;P&gt;Visual Studio Code 1.92.3&lt;/P&gt;&lt;P&gt;When I run the IPP setvars.bat Developer Powershell in Visual Studio 2022 with this command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;`cmd.exe "/K" '"C:\Program Files (x86)\Intel\oneAPI\setvars.bat" &amp;amp;&amp;amp; powershell'`&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get an error stating&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ERROR: The oneAPI toolkits no longer support 32-bit libraries, starting with the 2025.0 toolkit release. See the oneAPI release notes for more details.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I figured out that this error occurs in this setvars.bat code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;rem ===========================================================================
rem Override default 64-bit target if 32-bit Visual Studio env already exists.
rem Primarily affects "classic" compilers and some libraries (e.g., IPP, MKL).
if defined VSCMD_VER (
  echo: VSCMD_VER is defined. 
  if /i [%VSCMD_ARG_TGT_ARCH%] == [x86] (
    echo :: ERROR: The oneAPI toolkits no longer support 32-bit libraries, starting with the 2025.0 toolkit release. See the oneAPI release notes for more details.
    echo: Error came from %VSCMD_ARG_TGT_ARCH%
    call :Usage
    goto :eofCleanup
  ) else (
    set TARGET_ARCH=intel64
  )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I printed&amp;nbsp;&lt;SPAN&gt;VSCMD_ARG_TGT_ARCH&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;and it is "x86"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But when I ran commands to check of the powershell is 32 or 64 bit, I get the following on both Visual Studio and VS Code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;gt; [System.IntPtr]::Size
8
&amp;gt; $PSHOME
C:\Windows\System32\WindowsPowerShell\v1.0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to google, the two above outputs say that the powershell is 64 bit.&lt;/P&gt;&lt;P&gt;In VS Code, the setvars.bat cmd completes without error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So is this bug in setvars.bat?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2025 01:31:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/2022-Visual-Studio-IPP-setvars-bat-error-oneAPI-toolkits-no/m-p/1657734#M28980</guid>
      <dc:creator>eddie_patton</dc:creator>
      <dc:date>2025-01-17T01:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: 2022 Visual Studio IPP setvars.bat error: oneAPI toolkits no longer supports 32-bit libraries</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/2022-Visual-Studio-IPP-setvars-bat-error-oneAPI-toolkits-no/m-p/1658665#M28981</link>
      <description>&lt;P&gt;Have you checked&amp;nbsp;VSCMD_ARG_TGT_ARCH value? It should be x64 for 64-bit&lt;/P&gt;
&lt;P&gt;x86: Indicates that the target architecture is 32-bit x86.&lt;BR /&gt;x64: Indicates that the target architecture is 64-bit x64.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build&amp;gt;vcvarsall.bat x64
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.12.3
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'

C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build&amp;gt;devenv

C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build&amp;gt;echo %VSCMD_ARG_TGT_ARCH%
x64
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="line-numbers language-markup"&gt;&lt;CODE&gt;C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build&amp;gt;echo %VSCMD_ARG_TGT_ARCH%
x64

C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build&amp;gt;"C:\Program Files (x86)\Intel\oneAPI\setvars.bat" &amp;amp;&amp;amp; powershell
:: initializing oneAPI environment...
   Initializing Visual Studio command-line environment...
   Visual Studio version 17.12.3 environment configured.
   "C:\Program Files\Microsoft Visual Studio\2022\Professional\"
   Visual Studio command-line environment initialized for: 'x64'
:  compiler -- latest
:  debugger -- latest
:  dev-utilities -- latest
:  dnnl -- latest
:  dpcpp-ct -- latest
:  dpl -- latest
:  ipp -- latest
:  ippcp -- latest
:  mkl -- latest
:  mpi -- latest
:  ocloc -- latest
:  pti -- latest
:  tbb -- latest
:  umf -- latest
:  vtune -- latest
:: oneAPI environment initialized ::
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

PS C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 12:18:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/2022-Visual-Studio-IPP-setvars-bat-error-oneAPI-toolkits-no/m-p/1658665#M28981</guid>
      <dc:creator>Ruqiu_C_Intel</dc:creator>
      <dc:date>2025-01-20T12:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: 2022 Visual Studio IPP setvars.bat error: oneAPI toolkits no longer supports 32-bit libraries</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/2022-Visual-Studio-IPP-setvars-bat-error-oneAPI-toolkits-no/m-p/1660143#M28990</link>
      <description>&lt;P&gt;That helped. I opened the command line window using Tools -&amp;gt; Command Line -&amp;gt; Developer Command Line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I specified x64,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build&amp;gt;vcvarsall.bat x64
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.9.5
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'

C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build&amp;gt;echo %VSCMD_ARG_TGT_ARCH%
x64&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then when running the command below, I got the same output as you.&amp;nbsp;&lt;BR /&gt;"C:\Program Files (x86)\Intel\oneAPI\setvars.bat" &amp;amp;&amp;amp; powershell&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 16:55:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/2022-Visual-Studio-IPP-setvars-bat-error-oneAPI-toolkits-no/m-p/1660143#M28990</guid>
      <dc:creator>eddie_patton</dc:creator>
      <dc:date>2025-01-24T16:55:38Z</dc:date>
    </item>
  </channel>
</rss>

