Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: no suitable user-defined conversion from "__half" to "__nv_bfloat16" exists #493

Open
xiaoshizijiayou opened this issue Oct 9, 2024 · 0 comments

Comments

@xiaoshizijiayou
Copy link

xiaoshizijiayou commented Oct 9, 2024

fastllm/src/devices/cuda/fastllm-cuda.cu(485): error: no suitable user-defined conversion from "__half" to "__nv_bfloat16" exists
b[idx] = __hmul(__hdiv(x, __hadd(__float2half(1.0), hexp(-x))), y);
拉取最新的代码,编译报这个错,之前编译的时候没遇到过,如何解决?

-DCUDA_NO_TENSOR_CORE=ON,编译的时候加上这个参数不报错了,这个参数有什么作用,请解释下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant