<?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:icx compiler - wrong value passed in function argument in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icx-compiler-wrong-value-passed-in-function-argument/m-p/1674772#M4348</link>
    <description>&lt;P&gt;Thank you. I have received the reproducer! I will&amp;nbsp;look into it and get back to you shortly with an update. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Since this issue has been escalated to our support portal, I will no longer monitor this forum topic. &lt;/P&gt;&lt;P&gt;However, you will continue to receive updates from the support portal via email. &lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 13 Mar 2025 16:15:39 GMT</pubDate>
    <dc:creator>Alina_S_Intel</dc:creator>
    <dc:date>2025-03-13T16:15:39Z</dc:date>
    <item>
      <title>icx compiler - wrong value passed in function argument</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icx-compiler-wrong-value-passed-in-function-argument/m-p/1673257#M4342</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;We are using&amp;nbsp;dpcpp-2025-online suite and icx compiler to build Khronos OpenCL test suites -&amp;nbsp;&lt;A href="https://github.com/KhronosGroup/OpenCL-CTS" target="_blank" rel="noopener"&gt;https://github.com/KhronosGroup/OpenCL-CTS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In one of the project - &lt;A href="https://github.com/KhronosGroup/OpenCL-CTS/tree/main/test_conformance/gl" target="_blank" rel="noopener"&gt;https://github.com/KhronosGroup/OpenCL-CTS/tree/main/test_conformance/gl&lt;/A&gt;&amp;nbsp;i noticed specific issue which seems to be compiler issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The variable passed as function argument "GLenum target" has incorrect value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/KhronosGroup/OpenCL-CTS/blob/main/test_conformance/gl/test_image_methods.cpp#L98" target="_blank" rel="noopener"&gt;https://github.com/KhronosGroup/OpenCL-CTS/blob/main/test_conformance/gl/test_image_methods.cpp#L98&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Adding&amp;nbsp;&lt;SPAN&gt;#pragma optimize("", off) before function definition or modification to pass this "target" variable by reference (const GLenum &amp;amp;target) solves the issue.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MSVC compiler has not problem with this code as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using Visual Studio Code for Windows with setting&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"cmake.toolset"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"Intel C++ Compiler 2025"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;Can somebody looks at this issue ?&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 Mar 2025 11:13:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icx-compiler-wrong-value-passed-in-function-argument/m-p/1673257#M4342</guid>
      <dc:creator>GrzegorzW</dc:creator>
      <dc:date>2025-03-07T11:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: icx compiler - wrong value passed in function argument</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icx-compiler-wrong-value-passed-in-function-argument/m-p/1673790#M4345</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/123409"&gt;@GrzegorzW&lt;/a&gt;.,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please provide steps to reproduce the issue and the observed behavior?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 09:41:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icx-compiler-wrong-value-passed-in-function-argument/m-p/1673790#M4345</guid>
      <dc:creator>Alina_S_Intel</dc:creator>
      <dc:date>2025-03-10T09:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: icx compiler - wrong value passed in function argument</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icx-compiler-wrong-value-passed-in-function-argument/m-p/1674767#M4347</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/114694"&gt;@Alina_S_Intel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps to reproduce: MS windows + Visual studio + dcpp 2025 + Khronos repositories&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#install visuall studio&lt;BR /&gt;C:\install\vs_buildtools.exe --quiet --wait --norestart --nocache `--installPath C:\BuildTools `--add Microsoft.VisualStudio.Workload.VCTools ` --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 ` --add Microsoft.VisualStudio.Component.Windows10SDK.19041 `&lt;BR /&gt;&lt;BR /&gt;# install ninja tools ninja tools&lt;/P&gt;&lt;P&gt;#install dcpp 2025&lt;BR /&gt;dpcpp-2025-online-install.exe --silent --r yes --a --silent --action=install --eula=accept --intel-sw-improvement-program-consent=decline -p=NEED_VS2022_INTEGRATION=1&lt;/P&gt;&lt;P&gt;mkdir C:\workspace&lt;BR /&gt;cd workspace&lt;BR /&gt;#clone Khronos repositories&lt;BR /&gt;git clone &lt;A href="https://github.com/KhronosGroup/OpenCL-ICD-Loader.git" target="_blank"&gt;https://github.com/KhronosGroup/OpenCL-ICD-Loader.git&lt;/A&gt;&lt;BR /&gt;git clone &lt;A href="https://github.com/KhronosGroup/OpenCL-Headers.git" target="_blank"&gt;https://github.com/KhronosGroup/OpenCL-Headers.git&lt;/A&gt;&lt;BR /&gt;git clone &lt;A href="https://github.com/KhronosGroup/OpenCL-CTS.git" target="_blank"&gt;https://github.com/KhronosGroup/OpenCL-CTS.git&lt;/A&gt;&lt;/P&gt;&lt;P&gt;#prepare GL libs. From attachment unpack freeglut-MSVC-3.0.0-2.mp.zip and glew-2.1.0-win32.zip to extracted-glsh&lt;/P&gt;&lt;P&gt;mkdir -p OpenCL-CTS/test_conformance/gl/GL&lt;BR /&gt;mkdir -p OpenCL-CTS/lib/x64&lt;BR /&gt;mkdir -p OpenCL-CTS/dll/x64&lt;BR /&gt;mkdir -p OpenCL-CTS/lib/x86&lt;BR /&gt;mkdir -p OpenCL-CTS/dll/x86&lt;/P&gt;&lt;P&gt;cp extracted-glsh/glew-2.1.0/include/GL/* ./OpenCL-CTS/test_conformance/gl/GL/&lt;BR /&gt;cp extracted-glsh/freeglut/include/GL/* ./OpenCL-CTS/test_conformance/gl/GL/&lt;/P&gt;&lt;P&gt;cp extracted-glsh/glew-2.1.0/lib/Release/x64/glew32.lib ./OpenCL-CTS/lib/x64/&lt;BR /&gt;cp extracted-glsh/glew-2.1.0/lib/Release/Win32/glew32.lib ./OpenCL-CTS/lib/x86/&lt;/P&gt;&lt;P&gt;cp extracted-glsh/glew-2.1.0/bin/Release/x64/glew32.dll ./OpenCL-CTS/dll/x64/&lt;BR /&gt;cp extracted-glsh/glew-2.1.0/bin/Release/Win32/glew32.dll ./OpenCL-CTS/dll/x86/&lt;/P&gt;&lt;P&gt;cp extracted-glsh/freeglut/lib/x64/freeglut.lib ./OpenCL-CTS/lib/x64/&lt;BR /&gt;cp extracted-glsh/freeglut/lib/freeglut.lib ./OpenCL-CTS/lib/x86/&lt;/P&gt;&lt;P&gt;cp extracted-glsh/freeglut/bin/x64/freeglut.dll ./OpenCL-CTS/dll/x64/&lt;BR /&gt;cp extracted-glsh/freeglut/bin/freeglut.dll ./OpenCL-CTS/dll/x86/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cd C:\workspace\OpenCL-ICD-Loader&lt;BR /&gt;mkdir build&lt;BR /&gt;cd build&lt;BR /&gt;cmake -G"Ninja" -DOPENCL_ICD_LOADER_HEADERS_DIR=c:\workspace\OpenCL-Headers -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icx -DCMAKE_BUILD_TYPE=Release ..&lt;BR /&gt;ninja&lt;BR /&gt;cd C:\workspace\OpenCL-CTS\&lt;BR /&gt;mkdir build&lt;BR /&gt;cd build&lt;BR /&gt;cmake -G Ninja -DCL_INCLUDE_DIR=C:\workspace\OpenCL-Headers -DCL_LIB_DIR=C:\workspace\OpenCL-ICD-Loader\build -DOPENCL_LIBRARIES=OpenCL -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icx -DGL_IS_SUPPORTED=ON -DD3D10_IS_SUPPORTED=ON -DD3D11_IS_SUPPORTED=ON -DARCH=x86_64 -DCMAKE_BUILD_TYPE=Release -DCLConform_GL_LIBRARIES_DIR=lib\x64 ..&lt;BR /&gt;ninja&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cd C:\workspace\OpenCL-CTS\build\test_conformance\gl\bin\RelWithDebInfo&lt;/P&gt;&lt;P&gt;test_gl redirect_image_methods_multisample CL_DEVICE_TYPE_GPU&lt;/P&gt;&lt;P&gt;repro - errors (test never ends, in the loop following messages):&lt;/P&gt;&lt;P&gt;ERROR: Unable to create CL image from GL texture! (CL_INVALID_GL_OBJECT from C:\Repos\_CTS_KHR\OpenCL-CTS\test_conformance\gl\test_image_methods.cpp:178)&lt;BR /&gt;Supplied GL texture was base format 0x0000 and internal format 0x0000&lt;/P&gt;&lt;P&gt;correct results are:&lt;BR /&gt;redirect_image_methods_multisample...&lt;BR /&gt;Autodetected float-&amp;gt;half rounding mode to be rtz&lt;BR /&gt;- Creating image 10 by 10...&lt;BR /&gt;- Creating image 10 by 10...&lt;BR /&gt;- Creating image 10 by 10...&lt;BR /&gt;- Creating image 10 by 10...&lt;BR /&gt;- Creating image 10 by 10...&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 15:41:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icx-compiler-wrong-value-passed-in-function-argument/m-p/1674767#M4347</guid>
      <dc:creator>GrzegorzW</dc:creator>
      <dc:date>2025-03-13T15:41:33Z</dc:date>
    </item>
    <item>
      <title>Re:icx compiler - wrong value passed in function argument</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icx-compiler-wrong-value-passed-in-function-argument/m-p/1674772#M4348</link>
      <description>&lt;P&gt;Thank you. I have received the reproducer! I will&amp;nbsp;look into it and get back to you shortly with an update. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Since this issue has been escalated to our support portal, I will no longer monitor this forum topic. &lt;/P&gt;&lt;P&gt;However, you will continue to receive updates from the support portal via email. &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Mar 2025 16:15:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icx-compiler-wrong-value-passed-in-function-argument/m-p/1674772#M4348</guid>
      <dc:creator>Alina_S_Intel</dc:creator>
      <dc:date>2025-03-13T16:15:39Z</dc:date>
    </item>
  </channel>
</rss>

