From ebb698b5f2b1d8a13ccec8f392a741816d650c29 Mon Sep 17 00:00:00 2001 From: Maria Kotsifakou <kotsifa2@illinois.edu> Date: Wed, 15 Apr 2020 15:23:05 -0500 Subject: [PATCH] Replaced throw with ERROR macro - more to be replaced --- .../hpvm-tensor-rt/tensor_runtime/include/device_math.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/projects/hpvm-tensor-rt/tensor_runtime/include/device_math.h b/llvm/projects/hpvm-tensor-rt/tensor_runtime/include/device_math.h index 235ac088da..0f3cd1970e 100644 --- a/llvm/projects/hpvm-tensor-rt/tensor_runtime/include/device_math.h +++ b/llvm/projects/hpvm-tensor-rt/tensor_runtime/include/device_math.h @@ -6,6 +6,8 @@ #include <stdexcept> #include <limits> +#include "debug.h" + enum class MathOp { Hypot, Atan2, @@ -39,7 +41,7 @@ template <typename T> T reduceOpToIdentity(MathOp op) { case MathOp::Min: return std::numeric_limits<T>::max(); default: - throw std::runtime_error("Operator does not have id value"); + ERROR("Operator does not have id value\n"); } } -- GitLab