Skip to content

Commit b0e6faa

Browse files
authored
[libclc] Add missing clc_lgamma_r with generic address space pointer arg (#146495)
There is no change to amdgcn--amdhsa.bc and nvptx64--nvidiacl.bc because __opencl_c_generic_address_space is not defined for them.
1 parent 93fe52f commit b0e6faa

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)