<?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 offline compiler llvm code problem in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/offline-compiler-llvm-code-problem/m-p/814815#M981</link>
    <description>in openCL SDK 1.5&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;using offline compiler compile CL kernel with -llvm option to generate llvm IR&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;then use llvm-as convert llvm IR -&amp;gt; bitcode will pop error:    (llvm version:3.1 svn)&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;DIV id="_mcePaste"&gt;llvm-as: hello.ll:39:9: error: expected type  &lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;define x86_ocl_kernelcc void @hello(i8 addrspace(1)* nocapture %string, i8 addrspace(3)* %pLocalMem, %struct.WorkDim* %pWorkDim, i64* %pWGId, %struct.PaddedDimId* %pBaseGlbId, %struct.PaddedDimId* %pLocalIds, i64* %contextpointer, i64 %iterCount, i8* %pSpecialBuf, i64* %pCurrWI) nounwind {                                     &lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;this kernel come from "The openCL programming book" sample code 3-1&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://www.fixstars.com/en/opencl/book/"&gt;http://www.fixstars.com/en/opencl/book/&lt;/A&gt;
&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;i've tried some CL kernel, and this error always occurred&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;and their's a bug in offline compiler windows version ,the "save LLVM..." option default file&lt;/DIV&gt;&lt;DIV&gt;type should be "*.ll" not "*.bc" , the offline compiler generate human readable llvm code.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 07 Feb 2012 10:56:49 GMT</pubDate>
    <dc:creator>tseng00g</dc:creator>
    <dc:date>2012-02-07T10:56:49Z</dc:date>
    <item>
      <title>offline compiler llvm code problem</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/offline-compiler-llvm-code-problem/m-p/814815#M981</link>
      <description>in openCL SDK 1.5&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;using offline compiler compile CL kernel with -llvm option to generate llvm IR&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;then use llvm-as convert llvm IR -&amp;gt; bitcode will pop error:    (llvm version:3.1 svn)&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;DIV id="_mcePaste"&gt;llvm-as: hello.ll:39:9: error: expected type  &lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;define x86_ocl_kernelcc void @hello(i8 addrspace(1)* nocapture %string, i8 addrspace(3)* %pLocalMem, %struct.WorkDim* %pWorkDim, i64* %pWGId, %struct.PaddedDimId* %pBaseGlbId, %struct.PaddedDimId* %pLocalIds, i64* %contextpointer, i64 %iterCount, i8* %pSpecialBuf, i64* %pCurrWI) nounwind {                                     &lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;this kernel come from "The openCL programming book" sample code 3-1&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://www.fixstars.com/en/opencl/book/"&gt;http://www.fixstars.com/en/opencl/book/&lt;/A&gt;
&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;i've tried some CL kernel, and this error always occurred&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;and their's a bug in offline compiler windows version ,the "save LLVM..." option default file&lt;/DIV&gt;&lt;DIV&gt;type should be "*.ll" not "*.bc" , the offline compiler generate human readable llvm code.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Feb 2012 10:56:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/offline-compiler-llvm-code-problem/m-p/814815#M981</guid>
      <dc:creator>tseng00g</dc:creator>
      <dc:date>2012-02-07T10:56:49Z</dc:date>
    </item>
    <item>
      <title>offline compiler llvm code problem</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/offline-compiler-llvm-code-problem/m-p/814816#M982</link>
      <description>I would imagine no one at intel has tested their code with version 3.1 as 3.0 was release in December which was after the latest release of Intel's OpenCL SDK and runtime.</description>
      <pubDate>Tue, 07 Feb 2012 21:37:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/offline-compiler-llvm-code-problem/m-p/814816#M982</guid>
      <dc:creator>Jim_Vaughn</dc:creator>
      <dc:date>2012-02-07T21:37:43Z</dc:date>
    </item>
    <item>
      <title>offline compiler llvm code problem</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/offline-compiler-llvm-code-problem/m-p/814817#M983</link>
      <description>oh it also happend at llvm 3.0, so i upgraded llvm at once and thought it might fixed this at 3.1.</description>
      <pubDate>Wed, 08 Feb 2012 04:50:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/offline-compiler-llvm-code-problem/m-p/814817#M983</guid>
      <dc:creator>tseng00g</dc:creator>
      <dc:date>2012-02-08T04:50:21Z</dc:date>
    </item>
    <item>
      <title>offline compiler llvm code problem</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/offline-compiler-llvm-code-problem/m-p/814818#M984</link>
      <description>Please use llvm tools coming with Intel SDK.</description>
      <pubDate>Wed, 08 Feb 2012 05:43:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/offline-compiler-llvm-code-problem/m-p/814818#M984</guid>
      <dc:creator>Evgeny_F_Intel</dc:creator>
      <dc:date>2012-02-08T05:43:55Z</dc:date>
    </item>
    <item>
      <title>offline compiler llvm code problem</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/offline-compiler-llvm-code-problem/m-p/814819#M985</link>
      <description>i found llvm tool (llc) in SDK windows version, linux version doesn't include that tool. thanks.</description>
      <pubDate>Thu, 09 Feb 2012 02:08:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/offline-compiler-llvm-code-problem/m-p/814819#M985</guid>
      <dc:creator>tseng00g</dc:creator>
      <dc:date>2012-02-09T02:08:04Z</dc:date>
    </item>
    <item>
      <title>offline compiler llvm code problem</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/offline-compiler-llvm-code-problem/m-p/814820#M986</link>
      <description>-llvm flag generates a file with extension .bc, but it is a readable file just like the .ll&lt;BR /&gt;You may try open it in a text editor and you will get the textual llvm code.&lt;BR /&gt;&lt;BR /&gt;We will consider your suggestion of changing the extension type to *.ll instead of *.bc.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Amjad</description>
      <pubDate>Thu, 09 Feb 2012 16:12:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/offline-compiler-llvm-code-problem/m-p/814820#M986</guid>
      <dc:creator>Amjad_A_Intel</dc:creator>
      <dc:date>2012-02-09T16:12:56Z</dc:date>
    </item>
  </channel>
</rss>

