diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2016-05-13 20:49:34 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2016-05-13 20:49:34 +0200 |
commit | 120c31a30f933eea12d4dfffd4951fa22102ef5f (patch) | |
tree | 853aa6fae0522c9e92fce266c5fddb12a19dafd3 /scripts/database/database.py | |
parent | f2ba75890c522b4fe1762bfeac3e08667cf9588a (diff) |
Initial experimental version of the half-precision HAXPY routine
Diffstat (limited to 'scripts/database/database.py')
-rw-r--r-- | scripts/database/database.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/database/database.py b/scripts/database/database.py index d14e36cc..87e70fae 100644 --- a/scripts/database/database.py +++ b/scripts/database/database.py @@ -188,13 +188,20 @@ def GetFooter(): # The start of a new C++ precision entry def GetPrecision(family, precision): - precisionstring = "Single" - if precision == "64": + precisionstring = "" + if precision == "16": + precisionstring = "Half" + elif precision == "32": + precisionstring = "Single" + elif precision == "64": precisionstring = "Double" elif precision == "3232": precisionstring = "ComplexSingle" elif precision == "6464": precisionstring = "ComplexDouble" + else: + print("[ERROR] Unknown precision") + sys.exit() return("\n\nconst Database::DatabaseEntry Database::%s%s = {\n \"%s\", Precision::k%s, {\n" % (family.title(), precisionstring, family.title(), precisionstring)) |