编译调用了CUDA的程序时发生下面这样的报错:
error: more than one conversion function from "__half" to a built-in type applies:
function "__half::operator float() const"
/usr/local/cuda/targets/x86_64-linux/include/cuda_fp16.hpp(204): here
function "__half::operator short() const"
/usr/local/cuda/targets/x86_64-linux/include/cuda_fp16.hpp(222): here
function "__half::operator unsigned short() const"
/usr/local/cuda/targets/x86_64-linux/include/cuda_fp16.hpp(225): here
function "__half::operator int() const"
/usr/local/cuda/targets/x86_64-linux/include/cuda_fp16.hpp(228): here
function "__half::operator unsigned int() const"
/usr/local/cuda/targets/x86_64-linux/include/cuda_fp16.hpp(231): here
function "__half::operator long long() const"

最低0.47元/天 解锁文章
2227

被折叠的 条评论
为什么被折叠?



