[libclc] r225296 - Use amdgcn triple for SI+ GPUs
Tom Stellard
thomas.stellard at amd.com
Tue Jan 6 12:42:13 PST 2015
Author: tstellar
Date: Tue Jan 6 14:42:12 2015
New Revision: 225296
URL: http://llvm.org/viewvc/llvm-project?rev=225296&view=rev
Log:
Use amdgcn triple for SI+ GPUs
Modified:
libclc/trunk/configure.py
Modified: libclc/trunk/configure.py
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/configure.py?rev=225296&r1=225295&r2=225296&view=diff
==============================================================================
--- libclc/trunk/configure.py (original)
+++ libclc/trunk/configure.py Tue Jan 6 14:42:12 2015
@@ -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])
More information about the cfe-commits
mailing list