【发布时间】:2019-11-24 14:09:53
【问题描述】:
在 ubuntu 14.04(相当旧的配置)上使用 gcc 4.8.4 在 cuda 7.5 上编译程序时,我收到此错误
error: identifier "__shfl_down" is undefined
detected during instantiation of "T gmx_shfl_down_sync(unsigned int, T, unsigned int, int) [with T=float]"
哪个指向
template <typename T>
static __forceinline__ __device__
T gmx_shfl_down_sync(const unsigned int activeMask,
const T var,
unsigned int offset,
int width = warp_size)
{
#if GMX_CUDA_VERSION < 9000
GMX_UNUSED_VALUE(activeMask);
return __shfl_down(var, offset, width);
#else
return __shfl_down_sync(activeMask, var, offset, width);
#endif
}
有没有办法解决这个问题?我看到旧 cuda 版本的这个问题,但还没有看到明确的答案。
【问题讨论】: