[cfe-dev] OpenCL Changes in v3.9

Robinson, Paul via cfe-dev cfe-dev at lists.llvm.org
Thu Aug 18 11:31:29 PDT 2016


Clearly there needs to be a release note about this!
--paulr

From: cfe-dev [mailto:cfe-dev-bounces at lists.llvm.org] On Behalf Of Martin O'Riordan via cfe-dev
Sent: Thursday, August 18, 2016 9:06 AM
To: Tom Stellard
Cc: Clang Dev
Subject: Re: [cfe-dev] OpenCL Changes in v3.9

That worked perfectly, thanks Tom

On 18 August 2016 at 16:05, Martin J. O'Riordan <martin.oriordan at movidius.com<mailto:martin.oriordan at movidius.com>> wrote:
Thanks Tom, I'll try that.  I know that the OpenCL implementation has been
seeing major work, but I hadn't realised that there was something new I
would need to add to my target.

All the best,

        MartinO

-----Original Message-----
From: Tom Stellard [mailto:tom at stellard.net<mailto:tom at stellard.net>]
Sent: 18 August 2016 15:52
To: Martin J. O'Riordan
Cc: 'Clang Dev'
Subject: Re: [cfe-dev] OpenCL Changes in v3.9

On Thu, Aug 18, 2016 at 03:47:59PM +0100, Martin J. O'Riordan via cfe-dev
wrote:
> Hi,
>
>
>
> I am trying to migrate to CLang/LLVM v3.9, and I am no longer able to
> build some of my libraries.  The code have uses the following:
>
>
>
> #pragma OPENCL EXTENSION cl_clang_storage_class_specifiers : enable
>
> #pragma OPENCL EXTENSION cl_khr_fp16 : enable
>
>
>

Hi,

I think you need to implement: setSupportedOpenCLOpts() in your target's
TargetInfo implementation.

-Tom

> and these result in the following warnings:
>
>
>
> warning: unsupported OpenCL extension
> 'cl_clang_storage_class_specifiers' - ignoring [-Wignored-pragmas]
>
> warning: unsupported OpenCL extension 'cl_khr_fp16' - ignoring
> [-Wignored-pragmas]
>
>
>
> This used to work, and a consequence of these not being recognised is
> that I get subsequent errors when I try to use the feature.
>
>
>
> Is there a new way of saying this?
>
>
>
> Thanks,
>
>
>
>             MartinO
>
>
>

> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org<mailto:cfe-dev at lists.llvm.org>
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160818/f0dec54e/attachment-0001.html>


More information about the cfe-dev mailing list