[PATCH] [cuda] Driver changes to build and stitch together host and device-side CUDA code.

Artem Belevich tra at google.com
Mon May 11 11:51:06 PDT 2015


Oops. Hit "Sent" accidentally..

On Mon, May 11, 2015 at 11:49 AM, Artem Belevich <tra at google.com> wrote:

> Eric,
>
> Did you get a chance to take a look at cleaned up getTargetToolChain() and
> ?
>

.. and the code that uses it?
Are there any other issues I need to address?

Thanks,
--Artem


>
> On Thu, May 7, 2015 at 11:04 AM, Artem Belevich <tra at google.com> wrote:
>
>> In http://reviews.llvm.org/D9509#167188, @echristo wrote:
>>
>> > Not really happy with the getTargetToolChain changes. Can you go ahead
>> and revisit the necessity of those (and probably the naming of the
>> StringRef argument as well)?
>>
>>
>> getToolChain does two things -- calculates a triple based on default
>> triple, command line args and optional DarwinArch and then selects a
>> toolchain based on the triple. I needed toolchain selection by triple, so
>> I've extracted it into getTargetToolChain.
>>
>> Alternative approach would be to extend computeTargetTriple so that it
>> can figure out that I need to get a NVPTX triple based on DarwinArchName
>> (renamed to ArchName?). IMO it's not as clean as using
>> getTargetToolchain(Triple) considering that we already know the triple.
>>
>> I've changed the code so it no longer uses computeTargetTriple() directly
>> (and removed forward declaration), but kept getTargetToolchain().
>>
>>
>> http://reviews.llvm.org/D9509
>>
>> EMAIL PREFERENCES
>>   http://reviews.llvm.org/settings/panel/emailpreferences/
>>
>>
>>
>
>
> --
> --Artem Belevich
>



-- 
--Artem Belevich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150511/2864fc71/attachment.html>


More information about the cfe-commits mailing list