mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-06 19:29:08 +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*/
|
||||
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);
|
||||
const bool needs_assign = evaluator.evalSubExprsIfNeeded(NULL);
|
||||
|
@ -336,6 +336,12 @@ struct FullReducer<Self, Op, ThreadPoolDevice, true> {
|
||||
};
|
||||
#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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user