Some tweaking ; added config files

This commit is contained in:
Philippe Tillet
2014-09-09 13:35:05 -04:00
parent c771ccee7e
commit 0aa62ac618
3 changed files with 34 additions and 1 deletions

24
autotune/config.ini Normal file
View File

@@ -0,0 +1,24 @@
#will save the archive into /tmp/name-of-operation.dat
tmp-folder = /tmp/
[vector-axpy]
devices = 0
precision = all
size = 10000000
#~ [matrix-axpy]
#~ devices = 0
#~ precision = all
#~ size = 3072, 3072
#~ [row-wise-reduction]
#~ devices = 0
#~ precision = all
#~ layout = N, T
#~ size = 3968, 3968
[matrix-product]
devices = 0
precision = all
layout = NT
size = 1536, 1536, 1536

9
autotune/config_spec.ini Normal file
View File

@@ -0,0 +1,9 @@
devices = string_list
[vector-axpy]
precision = string_list
size = int
simd-width = int_list
local-size = int_list
num-groups = int_list
decomposition = int_list

View File

@@ -120,7 +120,7 @@ class GeneticOperators(object):
lmem_usage = template.lmem_usage(vcl.atidlas.StatementsTuple(self.statement)) lmem_usage = template.lmem_usage(vcl.atidlas.StatementsTuple(self.statement))
local_size = template.parameters.local_size_0*template.parameters.local_size_1 local_size = template.parameters.local_size_0*template.parameters.local_size_1
occupancy_record = tools.OccupancyRecord(self.device, local_size, lmem_usage, registers_usage) occupancy_record = tools.OccupancyRecord(self.device, local_size, lmem_usage, registers_usage)
if occupancy_record.occupancy < 10 : if occupancy_record.occupancy < 15 :
self.cache[tupindividual] = 10 self.cache[tupindividual] = 10
else: else:
try: try: