[Libclc-dev] [PATCH 3/3] Use amdgcn triple for SI+ GPUs

Aaron Watry awatry at gmail.com
Wed Dec 24 07:19:08 PST 2014


LGTM.

--Aaron
On Dec 23, 2014 12:54 PM, "Tom Stellard" <thomas.stellard at amd.com> wrote:

> ---
>  configure.py | 11 +++++++----
>  1 file changed, 7 insertions(+), 4 deletions(-)
>
> diff --git a/configure.py b/configure.py
> index d962244..602165b 100755
> --- a/configure.py
> +++ b/configure.py
> @@ -89,15 +89,16 @@ available_targets = {
>                 [{'gpu' : 'cedar',   'aliases' : ['palm', 'sumo', 'sumo2',
> 'redwood', 'juniper']},
>                  {'gpu' : 'cypress', 'aliases' : ['hemlock']},
>                  {'gpu' : 'barts',   'aliases' : ['turks', 'caicos']},
> -                {'gpu' : 'cayman',  'aliases' : ['aruba']},
> -                {'gpu' : 'tahiti',  'aliases' : ['pitcairn', 'verde',
> 'oland', 'hainan', 'bonaire', 'kabini', 'kaveri', 'hawaii','mullins']}]},
> -  'nvptx--'   : { 'devices' : [{'gpu' : '', 'aliases' : []}] },
> +                {'gpu' : 'cayman',  'aliases' : ['aruba']}]},
> +  'amdgcn--': { 'devices' :
> +                [{'gpu' : 'tahiti',  'aliases' : ['pitcairn', 'verde',
> 'oland', 'hainan', 'bonaire', 'kabini', 'kaveri', 'hawaii','mullins']}]},
> +  'nvptx--'   : { 'devices' : [{'gpu' : '', 'aliases' : []}]},
>    'nvptx64--'   : { 'devices' : [{'gpu' : '', 'aliases' : []}] },
>    'nvptx--nvidiacl'   : { 'devices' : [{'gpu' : '', 'aliases' : []}] },
>    'nvptx64--nvidiacl' : { 'devices' : [{'gpu' : '', 'aliases' : []}] }
>  }
>
> -default_targets = ['nvptx--nvidiacl', 'nvptx64--nvidiacl', 'r600--']
> +default_targets = ['nvptx--nvidiacl', 'nvptx64--nvidiacl', 'r600--',
> 'amdgcn--']
>
>  targets = args
>  if not targets:
> @@ -150,6 +151,8 @@ for target in targets:
>      subdirs.append("%s-%s-%s" % (arch, t_vendor, t_os))
>      subdirs.append("%s-%s" % (arch, t_os))
>      subdirs.append(arch)
> +    if arch == 'amdgcn':
> +        subdirs.append('r600')
>
>    incdirs = filter(os.path.isdir,
>                 [os.path.join(srcdir, subdir, 'include') for subdir in
> subdirs])
> --
> 1.8.5.5
>
>
> _______________________________________________
> Libclc-dev mailing list
> Libclc-dev at pcc.me.uk
> http://www.pcc.me.uk/cgi-bin/mailman/listinfo/libclc-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/libclc-dev/attachments/20141224/fa799704/attachment.html>


More information about the Libclc-dev mailing list