Some tweaking ; added config files
This commit is contained in:
24
autotune/config.ini
Normal file
24
autotune/config.ini
Normal 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
9
autotune/config_spec.ini
Normal 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
|
@@ -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:
|
||||||
|
Reference in New Issue
Block a user