Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -310,6 +310,7 @@ void SharedArray< Element, Device, Index > :: setValue( const Element& e ) ...@@ -310,6 +310,7 @@ void SharedArray< Element, Device, Index > :: setValue( const Element& e )
template< typename Element, template< typename Element,
typename Device, typename Device,
typename Index > typename Index >
__cuda_callable__
const Element* SharedArray< Element, Device, Index > :: getData() const const Element* SharedArray< Element, Device, Index > :: getData() const
{ {
return this->data; return this->data;
...@@ -318,6 +319,7 @@ const Element* SharedArray< Element, Device, Index > :: getData() const ...@@ -318,6 +319,7 @@ const Element* SharedArray< Element, Device, Index > :: getData() const
template< typename Element, template< typename Element,
typename Device, typename Device,
typename Index > typename Index >
__cuda_callable__
Element* SharedArray< Element, Device, Index > :: getData() Element* SharedArray< Element, Device, Index > :: getData()
{ {
return this->data; return this->data;
......
...@@ -68,6 +68,7 @@ String StaticArray< 3, Element >::getType() ...@@ -68,6 +68,7 @@ String StaticArray< 3, Element >::getType()
} }
template< typename Element > template< typename Element >
__cuda_callable__
inline int StaticArray< 3, Element >::getSize() const inline int StaticArray< 3, Element >::getSize() const
{ {
return size; return size;
......
...@@ -182,6 +182,7 @@ StaticVector< Size, Real >::abs() const ...@@ -182,6 +182,7 @@ StaticVector< Size, Real >::abs() const
template< int Size, typename Real, typename Scalar > template< int Size, typename Real, typename Scalar >
__cuda_callable__
StaticVector< Size, Real > operator * ( const Scalar& c, const StaticVector< Size, Real >& u ) StaticVector< Size, Real > operator * ( const Scalar& c, const StaticVector< Size, Real >& u )
{ {
return u * c; return u * c;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment