- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm trying to port an OpenCL kernel that contains C++ template declarations. The compilation of the kernel code (with clCreateProgramWithSource) fails because it does not recognise the "template" symbol.
Is there a way around this?
I'm using the latest Intel OpenCL SDK on a machine equipped with Xeon Phi, and the example codes run just fine.
Many thanks.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Yuri and thank you for your response.
I missed the OpenCL section, apologies.
Your guess is accurate, the code was developed against AMD APP SDK. My hope was that the Intel OpenCL SDK had an extension for C++ template support similar to the AMDs. Your suggestion of getting rid of the template definitions is not practically feasible in my case because there are too many templates and the kernel code size is substantial. (perhaps only with some compiler aided approach it could be done).
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aram & Yuri,
I moved this thread to the OpenCL SDK forum. If you think this is inappropriate, please let me know.
Regards
--
Taylor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank about that Taylor. If you can please delete this thread too https://software.intel.com/en-us/forums/topic/520206
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page