From 2c5446877794b7a900bb97f084f837253d78417a Mon Sep 17 00:00:00 2001 From: Christoph Groth Date: Tue, 5 Jun 2018 11:55:07 +0200 Subject: Lyness-Kaganove benchmark --- vquad/__main__.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 vquad/__main__.py (limited to 'vquad/__main__.py') diff --git a/vquad/__main__.py b/vquad/__main__.py new file mode 100644 index 0000000..280de87 --- /dev/null +++ b/vquad/__main__.py @@ -0,0 +1,19 @@ +# Copyright 2018 Christoph Groth (CEA). +# +# This file is part of Vquad. It is subject to the license terms in the file +# LICENSE.rst found in the top-level directory of this distribution. + +import sys +import traceback +from . import benchmark + +# Make sure that whenever there is an exception it is printed and an +# appropriate exit code is set. +rc = 1 +try: + benchmark.main() + rc = 0 +except (Exception, KeyboardInterrupt): + traceback.print_exc() +finally: + sys.exit(rc) -- cgit v1.2.3-74-g4815