Add VTKM_EXEC_CONT to make_VecC

I forgot to add the VTKM_EXEC_CONT modifier to the make_VecC methods,
and that causes them to fail on CUDA devices.

I wish the compiler would have said something. I was calling one of them
from a VTKM_EXEC method.
This commit is contained in:
Kenneth Moreland 2016-12-08 17:24:07 -07:00
parent 16970b571e
commit eb7ea79241

@ -1204,6 +1204,8 @@ private:
/// Creates a \c VecC from an input array.
///
template<typename T>
VTKM_EXEC_CONT
static inline
vtkm::VecC<T> make_VecC(T *array, vtkm::IdComponent size)
{
return vtkm::VecC<T>(array, size);
@ -1212,6 +1214,8 @@ vtkm::VecC<T> make_VecC(T *array, vtkm::IdComponent size)
/// Creates a \c VecCConst from a constant input array.
///
template<typename T>
VTKM_EXEC_CONT
static inline
vtkm::VecCConst<T> make_VecC(const T *array, vtkm::IdComponent size)
{
return vtkm::VecCConst<T>(array, size);