From 43533ef1b605924e2bdc6ee4b36021b1c6a6b49b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Oberhuber?= <oberhuber.tomas@gmail.com>
Date: Sat, 11 Jan 2020 13:52:16 +0100
Subject: [PATCH] Making MatrixView::getValues() __cuda_callable__.

---
 src/TNL/Matrices/MatrixView.h   | 2 ++
 src/TNL/Matrices/MatrixView.hpp | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/src/TNL/Matrices/MatrixView.h b/src/TNL/Matrices/MatrixView.h
index b8adfd791c..467d023496 100644
--- a/src/TNL/Matrices/MatrixView.h
+++ b/src/TNL/Matrices/MatrixView.h
@@ -85,8 +85,10 @@ public:
    virtual Real getElement( const IndexType row,
                             const IndexType column ) const = 0;
 
+   __cuda_callable__
    const ValuesView& getValues() const;
 
+   __cuda_callable__
    ValuesView& getValues();
 
    /**
diff --git a/src/TNL/Matrices/MatrixView.hpp b/src/TNL/Matrices/MatrixView.hpp
index b2739ae1dc..275a228704 100644
--- a/src/TNL/Matrices/MatrixView.hpp
+++ b/src/TNL/Matrices/MatrixView.hpp
@@ -102,6 +102,7 @@ Index MatrixView< Real, Device, Index >::getColumns() const
 template< typename Real,
           typename Device,
           typename Index >
+__cuda_callable__
 const typename MatrixView< Real, Device, Index >::ValuesView&
 MatrixView< Real, Device, Index >::
 getValues() const
@@ -112,6 +113,7 @@ getValues() const
 template< typename Real,
           typename Device,
           typename Index >
+__cuda_callable__
 typename MatrixView< Real, Device, Index >::ValuesView& 
 MatrixView< Real, Device, Index >::
 getValues()
-- 
GitLab