[Libclc-dev] [PATCH 2/3] configure: Remove cl_khr_fp64 for device that don't support doubles
Jan Vesely via Libclc-dev
libclc-dev at lists.llvm.org
Mon Feb 8 12:17:09 PST 2016
Also remove definitions if provided by clang (3.7+)
This halves the size of builtin.opt.{cedar,barts}.bc
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
configure.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/configure.py b/configure.py
index b47951e..8b005ad 100755
--- a/configure.py
+++ b/configure.py
@@ -92,16 +92,16 @@ if not cxx_compiler:
available_targets = {
'r600--' : { 'devices' :
[{'gpu' : 'cedar', 'aliases' : ['palm', 'sumo', 'sumo2', 'redwood', 'juniper'],
- 'defines' : {'LLVM3.6':['cl_khr_fp64'], 'LLVM3.7':['cl_khr_fp64']}},
+ 'defines' : {}},
{'gpu' : 'cypress', 'aliases' : ['hemlock'],
- 'defines' : {'LLVM3.6':['cl_khr_fp64'], 'LLVM3.7':['cl_khr_fp64']}},
+ 'defines' : {'LLVM3.6':['cl_khr_fp64']}},
{'gpu' : 'barts', 'aliases' : ['turks', 'caicos'],
- 'defines' : {'LLVM3.6':['cl_khr_fp64'], 'LLVM3.7':['cl_khr_fp64']}},
+ 'defines' : {}},
{'gpu' : 'cayman', 'aliases' : ['aruba'],
- 'defines' : {'LLVM3.6':['cl_khr_fp64'], 'LLVM3.7':['cl_khr_fp64']}} ]},
+ 'defines' : {'LLVM3.6':['cl_khr_fp64']}} ]},
'amdgcn--': { 'devices' :
[{'gpu' : 'tahiti', 'aliases' : ['pitcairn', 'verde', 'oland', 'hainan', 'bonaire', 'kabini', 'kaveri', 'hawaii','mullins','tonga','carrizo','iceland','fiji','stoney'],
- 'defines' : {'LLVM3.6':['cl_khr_fp64'], 'LLVM3.7':['cl_khr_fp64']}} ]},
+ 'defines' : {'LLVM3.6':['cl_khr_fp64']}} ]},
'nvptx--' : { 'devices' : [{'gpu' : '', 'aliases' : [],
'defines' : {'all' : ['cl_khr_fp64']}}]},
'nvptx64--' : { 'devices' : [{'gpu' : '', 'aliases' : [],
--
2.5.0
More information about the Libclc-dev
mailing list