Skip to content

Commit

Permalink
Mark the TriangularSolverMatrix "kernel" functions as EIGEN_DEVICE_FUNC
Browse files Browse the repository at this point in the history
  • Loading branch information
fwyzard committed Oct 24, 2023
1 parent 47f0a0f commit e021252
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Eigen/src/Core/products/TriangularSolverMatrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ template <typename Scalar, typename Index, int Mode, bool Conjugate, int TriStor
struct trsmKernelL {
// Generic Implementation of triangular solve for triangular matrix on left and multiple rhs.
// Handles non-packed matrices.
EIGEN_DEVICE_FUNC
static void kernel(
Index size, Index otherSize,
const Scalar* _tri, Index triStride,
Expand All @@ -31,13 +32,15 @@ template <typename Scalar, typename Index, int Mode, bool Conjugate, int TriStor
struct trsmKernelR {
// Generic Implementation of triangular solve for triangular matrix on right and multiple lhs.
// Handles non-packed matrices.
EIGEN_DEVICE_FUNC
static void kernel(
Index size, Index otherSize,
const Scalar* _tri, Index triStride,
Scalar* _other, Index otherIncr, Index otherStride);
};

template <typename Scalar, typename Index, int Mode, bool Conjugate, int TriStorageOrder,int OtherInnerStride>
EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE void trsmKernelL<Scalar, Index, Mode, Conjugate, TriStorageOrder, OtherInnerStride>::kernel(
Index size, Index otherSize,
const Scalar* _tri, Index triStride,
Expand Down Expand Up @@ -89,6 +92,7 @@ EIGEN_STRONG_INLINE void trsmKernelL<Scalar, Index, Mode, Conjugate, TriStorageO


template <typename Scalar, typename Index, int Mode, bool Conjugate, int TriStorageOrder, int OtherInnerStride>
EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE void trsmKernelR<Scalar, Index, Mode, Conjugate, TriStorageOrder, OtherInnerStride>::kernel(
Index size, Index otherSize,
const Scalar* _tri, Index triStride,
Expand Down

0 comments on commit e021252

Please sign in to comment.