diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-12-20 19:59:31 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-12-20 19:59:31 +0100 |
commit | 0ee81e27b981c10ed0064fe58d458d674b251013 (patch) | |
tree | b62e3327dcf9023c4c546fce2cd1756c8a94dd21 /scripts/database | |
parent | c6806662509575fd33de9f7d75f0d8df5f874473 (diff) |
Added tuning results for Apple AMD Radeon Pro 580
Diffstat (limited to 'scripts/database')
-rw-r--r-- | scripts/database/database/bests.py | 4 | ||||
-rw-r--r-- | scripts/database/database/clblast.py | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/scripts/database/database/bests.py b/scripts/database/database/bests.py index 8ea8b48a..67db65c5 100644 --- a/scripts/database/database/bests.py +++ b/scripts/database/database/bests.py @@ -7,6 +7,8 @@ import sys +import clblast + def get_best_results(database): """Retrieves the results with the lowest execution times""" @@ -18,6 +20,8 @@ def get_best_results(database): for attribute in section.keys(): if attribute != "results": section_best[attribute] = section[attribute] + if section_best["clblast_device_architecture"] == "" and section_best["clblast_device_vendor"] in clblast.VENDORS_WITH_ARCHITECTURE: + section_best["clblast_device_architecture"] = clblast.DEVICE_ARCHITECTURE_DEFAULT # Find the best result parameters_best = None diff --git a/scripts/database/database/clblast.py b/scripts/database/database/clblast.py index 29778ecb..40e67b55 100644 --- a/scripts/database/database/clblast.py +++ b/scripts/database/database/clblast.py @@ -28,6 +28,8 @@ ARGUMENT_ATTRIBUTES = ["arg_m", "arg_n", "arg_k", "arg_alpha", "arg_beta", ATTRIBUTES = DEVICE_ATTRIBUTES + DEVICE_TYPE_ATTRIBUTES + KERNEL_ATTRIBUTES + ARGUMENT_ATTRIBUTES GROUP_ATTRIBUTES = DEVICE_TYPE_ATTRIBUTES + KERNEL_ATTRIBUTES + ["kernel"] + ARGUMENT_ATTRIBUTES +# Other constants +VENDORS_WITH_ARCHITECTURE = ["AMD", "NVIDIA"] def precision_to_string(precision): """Translates a precision number (represented as Python string) into a descriptive string""" @@ -184,6 +186,8 @@ def print_cpp_database(database, output_dir): # Loops over every architecture of this vendor-type combination architectures = sorted(set([s["clblast_device_architecture"] for s in type_database])) + if vendor in VENDORS_WITH_ARCHITECTURE: + architectures = [a for a in architectures if a != ""] for architecture in architectures: architecture_database = [s for s in type_database if s["clblast_device_architecture"] == architecture] architecture_string = DEVICE_ARCHITECTURE_DEFAULT if architecture == "" else architecture |