[cfe-dev] [RFC][OpenMP][CUDA] Unified Offloading Support in Clang Driver
Samuel F Antao via cfe-dev
cfe-dev at lists.llvm.org
Thu Feb 25 11:43:08 PST 2016
Hi Dmitri,
2016-02-25 6:34 GMT-05:00 Dmitry Polukhin via cfe-dev <
cfe-dev at lists.llvm.org>:
>
> On Thu, Feb 25, 2016 at 3:01 AM, Samuel F Antao via cfe-dev <
> cfe-dev at lists.llvm.org> wrote:
>
>> OpenMP (Host IR has to be read by the device to determine which
>> declarations have to be emitted and the device binary is embedded in the
>> host binary at link phase through a proper linker script):
>>
>> Src -> Host PP -> A
>>
>> A -> HostCompile -> B
>>
>> A,B -> DeviceCompile -> C
>>
> I think even for some OpenMP targets it might be better to allow using
> device PP (and corresponding headers) due to target specific macro. For
> example, some function may have target specific version and host version
> with #ifdef's on CPU type that allows to have completely different
> implementation on host and on target.
>
I agree, the decision of using the host toolchain for a given job should be
overloaded for each toolchain and would depend on the target and the
offload kind associated.
> C -> DeviceAssembler -> D
>>
>> E -> DeviceLinker -> F
>>
> I suspect that you meant D instead of E here, isn't it?
>
Ups, your are totally correct! Thanks for detecting the issue.
Thanks again,
Samuel
>
> _______________________________________________
> cfe-dev mailing list
> 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/20160225/68058410/attachment.html>
More information about the cfe-dev
mailing list