Enhancements of the auto-tuner

This commit is contained in:
Philippe Tillet
2014-10-29 17:01:57 +01:00
parent 199badc689
commit 9803bc8c92
4 changed files with 76 additions and 69 deletions

View File

@@ -62,7 +62,7 @@ class GeneticOperators(object):
def decode(self, genome):
FetchingPolicy = atd.FetchingPolicy
fetch = [FetchingPolicy.FETCH_FROM_LOCAL, FetchingPolicy.FETCH_FROM_GLOBAL_CONTIGUOUS, FetchingPolicy.FETCH_FROM_GLOBAL_STRIDED]
fetch = [FetchingPolicy.FETCH_FROM_LOCAL, FetchingPolicy.FETCH_FROM_GLOBAL_STRIDED, FetchingPolicy.FETCH_FROM_GLOBAL_CONTIGUOUS]
decode_element = lambda x:2**int(b_gray_to_bin(''.join(x)), 2)
result = []
offset = 0