mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
Fixed some compilation problems with nvcc + clang
This commit is contained in:
parent
47ca9dc809
commit
291069e885
@ -526,9 +526,9 @@ template<typename T, bool Align> EIGEN_DEVICE_FUNC inline void conditional_align
|
|||||||
template<int Alignment, typename Scalar, typename Index>
|
template<int Alignment, typename Scalar, typename Index>
|
||||||
EIGEN_DEVICE_FUNC inline Index first_aligned(const Scalar* array, Index size)
|
EIGEN_DEVICE_FUNC inline Index first_aligned(const Scalar* array, Index size)
|
||||||
{
|
{
|
||||||
static const Index ScalarSize = sizeof(Scalar);
|
const Index ScalarSize = sizeof(Scalar);
|
||||||
static const Index AlignmentSize = Alignment / ScalarSize;
|
const Index AlignmentSize = Alignment / ScalarSize;
|
||||||
static const Index AlignmentMask = AlignmentSize-1;
|
const Index AlignmentMask = AlignmentSize-1;
|
||||||
|
|
||||||
if(AlignmentSize<=1)
|
if(AlignmentSize<=1)
|
||||||
{
|
{
|
||||||
|
@ -346,7 +346,7 @@ struct InnerReducer {
|
|||||||
static const bool HasOptimizedImplementation = false;
|
static const bool HasOptimizedImplementation = false;
|
||||||
|
|
||||||
static void run(const Self&, Op&, const Device&, typename Self::CoeffReturnType*, typename Self::Index, typename Self::Index) {
|
static void run(const Self&, Op&, const Device&, typename Self::CoeffReturnType*, typename Self::Index, typename Self::Index) {
|
||||||
assert(false && "Not implemented");
|
eigen_assert(false && "Not implemented");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -356,7 +356,7 @@ struct OuterReducer {
|
|||||||
static const bool HasOptimizedImplementation = false;
|
static const bool HasOptimizedImplementation = false;
|
||||||
|
|
||||||
static void run(const Self&, Op&, const Device&, typename Self::CoeffReturnType*, typename Self::Index, typename Self::Index) {
|
static void run(const Self&, Op&, const Device&, typename Self::CoeffReturnType*, typename Self::Index, typename Self::Index) {
|
||||||
assert(false && "Not implemented");
|
eigen_assert(false && "Not implemented");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user