- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi i have a kernel that have several includes in it.
Is there automatic way for intel open cl sdk to build them automatically. I have not discovered any. I must add them manually in msbuild. Here is an example.
Nvidia cuda for example has inside GenDepTask that outputs dependencies from the compiler.
ioc.exe does not have anything similar, like cl /showIncludes or gcc -E options.
<ItemGroup>
<None Include="..\src\opencl\opencl_stdint.h" />
<Intel_OpenCL_Build_Rules Include="..\src\opencl\opencl_grayscale.cl">
<FileType>Document</FileType>
<AdditionalDependencies Condition="'$(Configuration)|$(Platform)'=='release|Win32'">$(ProjectDir)..\src\opencl\opencl_stdint.h;$(ProjectDir)..\src\opencl\opencl_imaging.h;$(ProjectDir)..\src\opencl\opencl_image_kernel_info.h</AdditionalDependencies>
<AdditionalDependencies Condition="'$(Configuration)|$(Platform)'=='debug|Win32'">$(ProjectDir)..\src\opencl\opencl_stdint.h;$(ProjectDir)..\src\opencl\opencl_imaging.h;$(ProjectDir)..\src\opencl\opencl_image_kernel_info.h</AdditionalDependencies>
<Include Condition="'$(Configuration)|$(Platform)'=='release|Win32'">$(ProjectDir)..\src\opencl</Include>
<Include Condition="'$(Configuration)|$(Platform)'=='debug|Win32'">$(ProjectDir)..\src\opencl</Include>
<Device Condition="'$(Configuration)|$(Platform)'=='release|Win32'">1</Device>
<Device Condition="'$(Configuration)|$(Platform)'=='debug|Win32'">1</Device>
<SPIR32 Condition="'$(Configuration)|$(Platform)'=='debug|Win32'">1</SPIR32>
<SPIR32 Condition="'$(Configuration)|$(Platform)'=='release|Win32'">1</SPIR32>
</Intel_OpenCL_Build_Rules>
</ItemGroup>
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Stefan,
This is a good point. I believe we don't have this capability right now, but it would be great to add it. I will send a request to our compiler team.
Thanks!

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page