summaryrefslogtreecommitdiff
path: root/src/tuning/kernels/xdot.cpp
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2020-02-17 22:07:51 +0100
committerCedric Nugteren <web@cedricnugteren.nl>2020-02-17 22:07:51 +0100
commit49eb490ee1c60ed254eb1c501e18ebd9948e0ab5 (patch)
tree7d9b8ef587d06a242c3e88eb4e490f8736eb2c5d /src/tuning/kernels/xdot.cpp
parent8a19667e75017a255aeb6addc32815a0ec46b30f (diff)
Catches all exceptions of the tuners
Diffstat (limited to 'src/tuning/kernels/xdot.cpp')
-rw-r--r--src/tuning/kernels/xdot.cpp8
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()); }
}
// =================================================================================================