[Libclc-dev] [PATCH 1/2] configure: Add amdgcn--mesa3d target

Matt Arsenault via Libclc-dev libclc-dev at lists.llvm.org
Mon Jul 25 17:02:55 PDT 2016


On 07/25/2016 05:00 PM, Tom Stellard via Libclc-dev wrote:
> ---
>   configure.py | 7 ++++++-
>   1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/configure.py b/configure.py
> index b96faee..05fb3b0 100755
> --- a/configure.py
> +++ b/configure.py
> @@ -105,7 +105,9 @@ available_targets = {
>     'nvptx64--nvidiacl' : { 'devices' : [{'gpu' : '', 'aliases' : []} ]},
>   }
>   
> -default_targets = ['nvptx--nvidiacl', 'nvptx64--nvidiacl', 'r600--', 'amdgcn--', 'amdgcn--amdhsa']
> +available_targets['amdgcn--mesa3d'] = available_targets['amdgcn--']
> +
> +default_targets = ['nvptx--nvidiacl', 'nvptx64--nvidiacl', 'r600--', 'amdgcn--', 'amdgcn--amdhsa', 'amdgcn--mesa3d']
>   
>   targets = args
>   if not targets:
> @@ -171,6 +173,9 @@ for target in targets:
>       if arch == 'amdgcn' or arch == 'r600':
>           subdirs.append('amdgpu')
>   
> +    if t_os == 'mesa3d':
> +        subdirs.append('amdgcn-amdhsa')
> +
>     incdirs = filter(os.path.isdir,
>                  [os.path.join(srcdir, subdir, 'include') for subdir in subdirs])
>     libdirs = filter(lambda d: os.path.isfile(os.path.join(d, 'SOURCES')),
I think you should use mesa for the middle part/vendor instead of 
leaving it empty


More information about the Libclc-dev mailing list