-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Open
Labels
backend:AMDGPUclang:headersHeaders provided by Clang, e.g. for intrinsicsHeaders provided by Clang, e.g. for intrinsicsfloating-pointFloating-point mathFloating-point math
Description
https://godbolt.org/z/nTfccd1Tr
after 5f1d383
currently HIP expf function is implemented as __builtin_expf
. When -fmath-errno
is specified, __builtin_expf
is emitted as a call of external lib function expf
by clang codegen. Since ROCm device libs does not implement expf
. This results in undefined symbol.
Before 5f1d383, HIP expf function is implemented by __ocml_exp_f32
, therefore did not have such issue.
I kind of think it is not good to go back to __ocml_exp_f32
since it does not handle errno any way. I think probably we should just do not pass -fmath-errno
to clang -cc1 for amdgpu since we do not support it.
Metadata
Metadata
Assignees
Labels
backend:AMDGPUclang:headersHeaders provided by Clang, e.g. for intrinsicsHeaders provided by Clang, e.g. for intrinsicsfloating-pointFloating-point mathFloating-point math