<?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 Relative include paths don't work in clBuildProgram in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/Relative-include-paths-don-t-work-in-clBuildProgram/m-p/997434#M2804</link>
    <description>&lt;P&gt;I am using the 2014 beta SDK. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;I would like to pass&amp;nbsp;"-I &amp;nbsp;RELATIVE\\PATH\\TO\\FILES" in as a build parameters, but this doesn't work.&lt;/P&gt;

&lt;P&gt;I have to pass the absolute path instead. So, this forces me to hard code the build path, which is annoying&lt;/P&gt;

&lt;P&gt;when I try building from a different location.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Aaron&lt;/P&gt;</description>
    <pubDate>Mon, 21 Apr 2014 14:15:15 GMT</pubDate>
    <dc:creator>ABoxe</dc:creator>
    <dc:date>2014-04-21T14:15:15Z</dc:date>
    <item>
      <title>Relative include paths don't work in clBuildProgram</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Relative-include-paths-don-t-work-in-clBuildProgram/m-p/997434#M2804</link>
      <description>&lt;P&gt;I am using the 2014 beta SDK. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;I would like to pass&amp;nbsp;"-I &amp;nbsp;RELATIVE\\PATH\\TO\\FILES" in as a build parameters, but this doesn't work.&lt;/P&gt;

&lt;P&gt;I have to pass the absolute path instead. So, this forces me to hard code the build path, which is annoying&lt;/P&gt;

&lt;P&gt;when I try building from a different location.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Aaron&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2014 14:15:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Relative-include-paths-don-t-work-in-clBuildProgram/m-p/997434#M2804</guid>
      <dc:creator>ABoxe</dc:creator>
      <dc:date>2014-04-21T14:15:15Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Relative-include-paths-don-t-work-in-clBuildProgram/m-p/997435#M2805</link>
      <description>Hi,

I can't reproduce this issue (I'm using 2013 version of the SDK though, but I don't think this is important here).
I have created a kernel file with single line:
#include "kernel.cl"
And I'm passing relative path in build options to clBuildProgram like this for example:
"-I..\\..\\FolderWithKernels"
And it works fine. So please double check that you're passing correct path.

Thanks,
Yuri</description>
      <pubDate>Tue, 22 Apr 2014 09:14:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Relative-include-paths-don-t-work-in-clBuildProgram/m-p/997435#M2805</guid>
      <dc:creator>Yuri_K_Intel</dc:creator>
      <dc:date>2014-04-22T09:14:02Z</dc:date>
    </item>
    <item>
      <title>Thanks, Yuri.  I should</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Relative-include-paths-don-t-work-in-clBuildProgram/m-p/997436#M2806</link>
      <description>&lt;P&gt;Thanks, Yuri. &amp;nbsp;I should clarify: this is only a problem when targetting my AMD GPU using the Intel SDK.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;When I target the Intel CPU, I don't even need to enter an include path.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Aaron&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2014 02:06:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Relative-include-paths-don-t-work-in-clBuildProgram/m-p/997436#M2806</guid>
      <dc:creator>ABoxe</dc:creator>
      <dc:date>2014-04-25T02:06:40Z</dc:date>
    </item>
    <item>
      <title>In this case you should ask</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Relative-include-paths-don-t-work-in-clBuildProgram/m-p/997437#M2807</link>
      <description>In this case you should ask this question on AMD forum. Since when you run the application and, as you say - target AMD GPU, you're selecting AMD platform (and the device, of course), so it's AMD runtime which builds the cl program.

Thanks,
Yuri</description>
      <pubDate>Fri, 25 Apr 2014 06:48:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Relative-include-paths-don-t-work-in-clBuildProgram/m-p/997437#M2807</guid>
      <dc:creator>Yuri_K_Intel</dc:creator>
      <dc:date>2014-04-25T06:48:00Z</dc:date>
    </item>
    <item>
      <title>OK, thanks Yuri.</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Relative-include-paths-don-t-work-in-clBuildProgram/m-p/997438#M2808</link>
      <description>&lt;P&gt;OK, thanks Yuri.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2014 23:39:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Relative-include-paths-don-t-work-in-clBuildProgram/m-p/997438#M2808</guid>
      <dc:creator>ABoxe</dc:creator>
      <dc:date>2014-04-25T23:39:16Z</dc:date>
    </item>
  </channel>
</rss>

