Commit 65a99e33 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Added missing __cuda_callable__ marks

Curiously clang complained about it, but nvcc didn't.
parent 235fea3b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
+1 −0
Original line number Diff line number Diff line
@@ -68,6 +68,7 @@ String StaticArray< 3, Element >::getType()
}

template< typename Element >
__cuda_callable__
inline int StaticArray< 3, Element >::getSize() const
{
   return size;
+1 −0
Original line number Diff line number Diff line
@@ -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;