diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2020-02-17 22:07:51 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2020-02-17 22:07:51 +0100 |
commit | 49eb490ee1c60ed254eb1c501e18ebd9948e0ab5 (patch) | |
tree | 7d9b8ef587d06a242c3e88eb4e490f8736eb2c5d /src/tuning/kernels/xdot.cpp | |
parent | 8a19667e75017a255aeb6addc32815a0ec46b30f (diff) |
Catches all exceptions of the tuners
Diffstat (limited to 'src/tuning/kernels/xdot.cpp')
-rw-r--r-- | src/tuning/kernels/xdot.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tuning/kernels/xdot.cpp b/src/tuning/kernels/xdot.cpp index a481f23b..bdd93067 100644 --- a/src/tuning/kernels/xdot.cpp +++ b/src/tuning/kernels/xdot.cpp @@ -34,9 +34,11 @@ void StartVariation(int argc, char *argv[]) { // Main function (not within the clblast namespace) int main(int argc, char *argv[]) { - StartVariation<1>(argc, argv); - StartVariation<2>(argc, argv); - return 0; + try { + StartVariation<1>(argc, argv); + StartVariation<2>(argc, argv); + return 0; + } catch (...) { return static_cast<int>(clblast::DispatchException()); } } // ================================================================================================= |