Skip to content

Commit 2af5e6c

Browse files
authored
[SYCL][LIBCLC] Add sqrt for doubles for amdgcn-amdhsa (#4223)
1 parent a98fd64 commit 2af5e6c

File tree

1 file changed

+5
-0
lines changed
  • libclc/amdgcn-amdhsa/libspirv/math

1 file changed

+5
-0
lines changed

libclc/amdgcn-amdhsa/libspirv/math/sqrt.cl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,8 @@ _CLC_OVERLOAD _CLC_DECL _CLC_CONSTFN __clc_fp32_t
1212
__spirv_ocl_sqrt(__clc_fp32_t In) {
1313
return __builtin_amdgcn_sqrtf(In);
1414
}
15+
16+
_CLC_OVERLOAD _CLC_DECL _CLC_CONSTFN __clc_fp64_t
17+
__spirv_ocl_sqrt(__clc_fp64_t In) {
18+
return __builtin_amdgcn_sqrt(In);
19+
}

0 commit comments

Comments
 (0)