is_valid is now consistently overloaded (parameter passed as a reference). Older CUDA compilers complained about this.

This commit is contained in:
jpekkila
2019-10-14 21:18:21 +03:00
parent b667735906
commit 08188f3f5b

View File

@@ -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);
}