Commit 59b03472 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Added __cuda_callable__ to MemoryOperations for Host to avoid nvcc warnings

parent b47b3742
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -82,10 +82,12 @@ template<>
struct MemoryOperations< Devices::Host >
{
   template< typename Element >
   __cuda_callable__ // only to avoid nvcc warning
   static void setElement( Element* data,
                           const Element& value );

   template< typename Element >
   __cuda_callable__ // only to avoid nvcc warning
   static Element getElement( const Element* data );

   template< typename Element, typename Index >
+2 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ namespace TNL {
namespace Algorithms {

template< typename Element >
__cuda_callable__ // only to avoid nvcc warning
void
MemoryOperations< Devices::Host >::
setElement( Element* data,
@@ -32,6 +33,7 @@ setElement( Element* data,
}

template< typename Element >
__cuda_callable__ // only to avoid nvcc warning
Element
MemoryOperations< Devices::Host >::
getElement( const Element* data )