diff --git a/src/TNL/Containers/SharedArray_impl.h b/src/TNL/Containers/SharedArray_impl.h index afac706c2a6d6a280c1bca4fa5979964a24e19b8..558552a803baee2f454f617538d8a8b2d892d08f 100644 --- a/src/TNL/Containers/SharedArray_impl.h +++ b/src/TNL/Containers/SharedArray_impl.h @@ -310,6 +310,7 @@ void SharedArray< Element, Device, Index > :: setValue( const Element& e ) template< typename Element, typename Device, typename Index > +__cuda_callable__ const Element* SharedArray< Element, Device, Index > :: getData() const { return this->data; @@ -318,6 +319,7 @@ const Element* SharedArray< Element, Device, Index > :: getData() const template< typename Element, typename Device, typename Index > +__cuda_callable__ Element* SharedArray< Element, Device, Index > :: getData() { return this->data; diff --git a/src/TNL/Containers/StaticArray3D_impl.h b/src/TNL/Containers/StaticArray3D_impl.h index 8878ef34b077bbba94746a18ae34a05c6ea563c5..a246b2e3e6e2e1a26bca5c7c922a0b0371fb3dc1 100644 --- a/src/TNL/Containers/StaticArray3D_impl.h +++ b/src/TNL/Containers/StaticArray3D_impl.h @@ -68,6 +68,7 @@ String StaticArray< 3, Element >::getType() } template< typename Element > +__cuda_callable__ inline int StaticArray< 3, Element >::getSize() const { return size; diff --git a/src/TNL/Containers/StaticVector_impl.h b/src/TNL/Containers/StaticVector_impl.h index 72b76bd29d62aa7881d237c5f3a80d5ac1be3503..32b8f4b95ece7bdc9c6e0a435c072e17e58e8979 100644 --- a/src/TNL/Containers/StaticVector_impl.h +++ b/src/TNL/Containers/StaticVector_impl.h @@ -182,6 +182,7 @@ StaticVector< Size, Real >::abs() const template< int Size, typename Real, typename Scalar > +__cuda_callable__ StaticVector< Size, Real > operator * ( const Scalar& c, const StaticVector< Size, Real >& u ) { return u * c;