From 0ee81e27b981c10ed0064fe58d458d674b251013 Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Wed, 20 Dec 2017 19:59:31 +0100 Subject: Added tuning results for Apple AMD Radeon Pro 580 --- scripts/database/database/bests.py | 4 ++++ scripts/database/database/clblast.py | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'scripts') 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 -- cgit v1.2.3