mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-07 03:39:04 +08:00
Fixed CUDA compilation errors
This commit is contained in:
parent
228edfe616
commit
5cb18e5b5e
@ -229,7 +229,7 @@ inline void TensorExecutor<Expression, GpuDevice, false>::run(const Expression&
|
|||||||
|
|
||||||
/*static*/
|
/*static*/
|
||||||
template<typename Expression>
|
template<typename Expression>
|
||||||
inline void TensorExecutor<Expression, GpuDevice, false>::run(const Expression& expr, const GpuDevice& device)
|
inline void TensorExecutor<Expression, GpuDevice, true>::run(const Expression& expr, const GpuDevice& device)
|
||||||
{
|
{
|
||||||
TensorEvaluator<Expression, GpuDevice> evaluator(expr, device);
|
TensorEvaluator<Expression, GpuDevice> evaluator(expr, device);
|
||||||
const bool needs_assign = evaluator.evalSubExprsIfNeeded(NULL);
|
const bool needs_assign = evaluator.evalSubExprsIfNeeded(NULL);
|
||||||
|
@ -336,6 +336,12 @@ struct FullReducer<Self, Op, ThreadPoolDevice, true> {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(EIGEN_USE_GPU) && defined(__CUDACC__)
|
||||||
|
template <int B, int N, typename S, typename R, typename I>
|
||||||
|
__global__ void FullReductionKernel(R, const S, I, typename S::CoeffReturnType*);
|
||||||
|
#endif
|
||||||
|
|
||||||
} // end namespace internal
|
} // end namespace internal
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user