<?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 OpenCL.lib missing clCreateProgramWithIL? in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-lib-missing-clCreateProgramWithIL/m-p/1177610#M6661</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am currently testing out some OpenCL features using SPIR-V and the llvm Clang compiler. Currently I'm trying out the example &lt;A href="https://software.intel.com/en-us/articles/using-spir-for-fun-and-profit-with-intel-opencl-code-builder#14_sample_download"&gt;Using SPIR for fun and profit with Intel OpenCL Code Builder&lt;/A&gt;&amp;nbsp;and I'm running into problems when trying to run the built executable. I'm running on a windows 10 machine in visual studio 2017, my target device is an Intel i7 - 8700. I've already installed the Intel OpenCL code builder studio tools and have successfully run multiple OpenCL projects already. My build targets x64.&lt;/P&gt;&lt;P&gt;The above example builds just fine but when I go to run the executable an error dialog box appears stating: "The procedure entry point clCreateProgramWithIL could not be located in the dynamic link library" followed by the path to my executable. I opened the OpenCL.lib that I'm targeting in the project and can see that clCreateProgramWithIL is listed along with other entry points in the library. To further investigate using the program &lt;A href="http://dependencywalker.com/"&gt;Dependency Walker&lt;/A&gt;&amp;nbsp;I targeted the built executable and can see that the clCreateProgramWithIL is listed as an "Unresolved C Function" I've included a snippet of the program window below.&lt;/P&gt;&lt;P&gt;Is this something missing from the OpenCL.lib build from Intel? I've already run multiple OpenCL projects and haven't had any problems thus far. Any help would be extremely appreciated!&lt;/P&gt;&lt;P&gt;Thank you for your time!&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2019 18:29:05 GMT</pubDate>
    <dc:creator>CFabe1</dc:creator>
    <dc:date>2019-10-10T18:29:05Z</dc:date>
    <item>
      <title>OpenCL.lib missing clCreateProgramWithIL?</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-lib-missing-clCreateProgramWithIL/m-p/1177610#M6661</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am currently testing out some OpenCL features using SPIR-V and the llvm Clang compiler. Currently I'm trying out the example &lt;A href="https://software.intel.com/en-us/articles/using-spir-for-fun-and-profit-with-intel-opencl-code-builder#14_sample_download"&gt;Using SPIR for fun and profit with Intel OpenCL Code Builder&lt;/A&gt;&amp;nbsp;and I'm running into problems when trying to run the built executable. I'm running on a windows 10 machine in visual studio 2017, my target device is an Intel i7 - 8700. I've already installed the Intel OpenCL code builder studio tools and have successfully run multiple OpenCL projects already. My build targets x64.&lt;/P&gt;&lt;P&gt;The above example builds just fine but when I go to run the executable an error dialog box appears stating: "The procedure entry point clCreateProgramWithIL could not be located in the dynamic link library" followed by the path to my executable. I opened the OpenCL.lib that I'm targeting in the project and can see that clCreateProgramWithIL is listed along with other entry points in the library. To further investigate using the program &lt;A href="http://dependencywalker.com/"&gt;Dependency Walker&lt;/A&gt;&amp;nbsp;I targeted the built executable and can see that the clCreateProgramWithIL is listed as an "Unresolved C Function" I've included a snippet of the program window below.&lt;/P&gt;&lt;P&gt;Is this something missing from the OpenCL.lib build from Intel? I've already run multiple OpenCL projects and haven't had any problems thus far. Any help would be extremely appreciated!&lt;/P&gt;&lt;P&gt;Thank you for your time!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 18:29:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-lib-missing-clCreateProgramWithIL/m-p/1177610#M6661</guid>
      <dc:creator>CFabe1</dc:creator>
      <dc:date>2019-10-10T18:29:05Z</dc:date>
    </item>
    <item>
      <title>Hello Faber,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-lib-missing-clCreateProgramWithIL/m-p/1177611#M6662</link>
      <description>&lt;P&gt;Hello Faber,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems like&amp;nbsp;OpenCL.lib on your machine doesn't support OpenCL 2.0.&lt;/P&gt;&lt;P&gt;For potential fix, you can download and install latest version of OpenCL SDK with ISS 2019 package.&lt;/P&gt;&lt;P&gt;What version of OpenCL SDK is installed on your machine?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sergey&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 09:00:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-lib-missing-clCreateProgramWithIL/m-p/1177611#M6662</guid>
      <dc:creator>Sergey_I_Intel1</dc:creator>
      <dc:date>2019-10-14T09:00:06Z</dc:date>
    </item>
    <item>
      <title>Hi Clayton,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-lib-missing-clCreateProgramWithIL/m-p/1177612#M6663</link>
      <description>&lt;P&gt;Hi Clayton,&lt;/P&gt;&lt;P&gt;From your error message:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;when I go to run the executable an error dialog box appears stating: "The procedure entry point clCreateProgramWithIL could not be located in the dynamic link library" followed by the path to my executable.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It sounds like the issue is with your ICD loader DLL (OpenCL.dll) and not the lib you are linking with (OpenCL.lib).&amp;nbsp; Do you know where your ICD loader DLL is coming from?&amp;nbsp; I believe all of the Intel OpenCL implementations should be shipping an OpenCL 2.1 or newer ICD loader, which is what you'd need to use the clCreateProgramWithIL API.&lt;/P&gt;&lt;P&gt;The ICD loader DLL is usually in c:\windows\system32 and c:\windows\syswow64.&amp;nbsp; Can you check to see if your ICD loader DLL is there, and if it is, what version you have?&amp;nbsp; If it says it is an OpenCL 2.1 or newer DLL, can you check that it is is exporting the clCreateProgramWithIL API, using something like&amp;nbsp;"dumpbin /exports"?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 06:10:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-lib-missing-clCreateProgramWithIL/m-p/1177612#M6663</guid>
      <dc:creator>Ben_A_Intel</dc:creator>
      <dc:date>2019-10-15T06:10:00Z</dc:date>
    </item>
  </channel>
</rss>

