diff options
| author | Christoph Groth <christoph.groth@cea.fr> | 2018-06-05 11:55:07 +0200 |
|---|---|---|
| committer | Christoph Groth <christoph.groth@cea.fr> | 2018-12-20 14:52:49 +0100 |
| commit | 2c5446877794b7a900bb97f084f837253d78417a (patch) | |
| tree | 57a0819d6f6ca8398fdd7fae832e1439349767d8 /vquad/__main__.py | |
| parent | 2a35d8d25092cd402c6db518474c3760ed10f285 (diff) | |
Lyness-Kaganove benchmark
Diffstat (limited to 'vquad/__main__.py')
| -rw-r--r-- | vquad/__main__.py | 19 |
1 files changed, 19 insertions, 0 deletions
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) |
