diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-11-13 21:11:31 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-11-13 21:11:31 +0100 |
commit | 03ebf14b97707f425519f46c3bb514f8ef5c93ad (patch) | |
tree | 220921c7d7a170faac6ed585395a640f34ce64f6 /src/utilities/clblast_exceptions.cpp | |
parent | 4bac1287f2d49bece72822bf6032e4da56a2dd2d (diff) |
Made the exception dispatch function optionally silent
Diffstat (limited to 'src/utilities/clblast_exceptions.cpp')
-rw-r--r-- | src/utilities/clblast_exceptions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utilities/clblast_exceptions.cpp b/src/utilities/clblast_exceptions.cpp index 32526215..8038805d 100644 --- a/src/utilities/clblast_exceptions.cpp +++ b/src/utilities/clblast_exceptions.cpp @@ -45,7 +45,7 @@ RuntimeErrorCode::RuntimeErrorCode(StatusCode status, const std::string &subreas // ================================================================================================= -StatusCode DispatchException() +StatusCode DispatchException(const bool silent) { const char *message = nullptr; StatusCode status; @@ -66,7 +66,7 @@ StatusCode DispatchException() status = StatusCode::kUnknownError; } - if (message) { + if (message && !silent) { fprintf(stderr, "CLBlast: %s\n", message); } return status; |