Skip to content

Commit 205aa71

Browse files
authored
[libclc] Add missing clc_lgamma_r with generic address space pointer arg (#146495) (#19255)
There is no change to amdgcn--amdhsa.bc and nvptx64--nvidiacl.bc because __opencl_c_generic_address_space is not defined for them. (cherry picked from commit b0e6faa) This PR fixes pre-commit CI error in #19231: undefined hidden symbol: __clc_lgamma_r(float, int*)
1 parent 42c6ffc commit 205aa71

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

libclc/clc/lib/generic/math/clc_lgamma_r.cl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,3 +611,10 @@ _CLC_V_V_VP_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, half, __clc_lgamma_r, half,
611611
#define __CLC_BODY <clc_lgamma_r.inc>
612612
#include <clc/math/gentype.inc>
613613
#undef __CLC_ADDRSPACE
614+
615+
#if _CLC_DISTINCT_GENERIC_AS_SUPPORTED
616+
#define __CLC_ADDRSPACE generic
617+
#define __CLC_BODY <clc_lgamma_r.inc>
618+
#include <clc/math/gentype.inc>
619+
#undef __CLC_ADDRSPACE
620+
#endif

0 commit comments

Comments
 (0)