From 08188f3f5b81053e88fad8684431087d66a07a81 Mon Sep 17 00:00:00 2001 From: jpekkila Date: Mon, 14 Oct 2019 21:18:21 +0300 Subject: [PATCH] is_valid is now consistently overloaded (parameter passed as a reference). Older CUDA compilers complained about this. --- src/core/math_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/math_utils.h b/src/core/math_utils.h index 20d1ad0..942a520 100644 --- a/src/core/math_utils.h +++ b/src/core/math_utils.h @@ -170,7 +170,7 @@ cross(const AcReal3& a, const AcReal3& b) } static HOST_DEVICE_INLINE bool -is_valid(const AcReal a) +is_valid(const AcReal& a) { return !isnan(a) && !isinf(a); }