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

Tom Stellard via Libclc-dev libclc-dev at lists.llvm.org
Mon Jul 25 17:00:53 PDT 2016


---
 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')),
-- 
2.7.4



More information about the Libclc-dev mailing list