[libclc] libclc: increase fp16 support (PR #98149)

2024-07-22 Thread Romaric Jodin via cfe-commits
rjodinchr wrote: @mgorny thank you for the report. It should be fixed with: https://github.com/llvm/llvm-project/pull/99841 https://github.com/llvm/llvm-project/pull/98149 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-20 Thread Michał Górny via cfe-commits
mgorny wrote: This change seems to have caused test regression. This is Gentoo Linux amd64, tried LLVM 72d8c2737bb557af9d0c735b9fa30b1b03485627 and 18.1.8. To reproduce, I've done: ``` cmake -G Ninja "${llvm_project}"/libclc -DLIBCLC_TARGETS_TO_BUILD="spirv-mesa3d-;spirv64-mesa3d-;r600--;amdg

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-18 Thread Romaric Jodin via cfe-commits
rjodinchr wrote: This PR should fix the build issue: https://github.com/llvm/llvm-project/pull/99481 https://github.com/llvm/llvm-project/pull/98149 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-18 Thread Romaric Jodin via cfe-commits
rjodinchr wrote: I am able to reproduce it, working on it right now https://github.com/llvm/llvm-project/pull/98149 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `libclc` at step 6 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/3385 Here is the relevant pi

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-18 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck closed https://github.com/llvm/llvm-project/pull/98149 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-18 Thread Romaric Jodin via cfe-commits
rjodinchr wrote: > @rjodinchr I was about to merge and noticed your email is hidden. I just > wanted to check with you whether you want to make it public, as per the > discussion > https://discourse.llvm.org/t/hidden-emails-on-github-should-we-do-something-about-it/74223/67. > AFAICT there's

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-18 Thread Fraser Cormack via cfe-commits
frasercrmck wrote: @rjodinchr I was about to merge and noticed your email is hidden. I just wanted to check with you whether you want to make it public, as per the discussion https://discourse.llvm.org/t/hidden-emails-on-github-should-we-do-something-about-it/74223/67. AFAICT there's still no

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-18 Thread Fraser Cormack via cfe-commits
frasercrmck wrote: > Also, just leave that thought here: A next step might be to use `native` > functions instead (when available). They should provide enough precision for > half, but be more performance. Also as the accuracy is undefined for those > functions, maybe it should be an opt-in op

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-17 Thread Romaric Jodin via cfe-commits
rjodinchr wrote: Also, just leave that thought here: A next step might be to use `native` functions instead (when available). They should provide enough precision for half, but be more performance. Also as the accuracy is undefined for those functions, maybe it should be an opt-in option in th

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-17 Thread Romaric Jodin via cfe-commits
https://github.com/rjodinchr updated https://github.com/llvm/llvm-project/pull/98149 >From 449321d1d22c39201e132cbd8b5846cbe12dbe39 Mon Sep 17 00:00:00 2001 From: Romaric Jodin Date: Tue, 9 Jul 2024 14:22:26 +0200 Subject: [PATCH] libclc: increase fp16 support Increase fp16 support to allow cl

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-17 Thread Romaric Jodin via cfe-commits
@@ -181,3 +181,15 @@ _CLC_OVERLOAD _CLC_DEF double atan(double x) _CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, double, atan, double); #endif // cl_khr_fp64 + +#ifdef cl_khr_fp16 rjodinchr wrote: Alright, just found that it is due to includes order in `atan.cl

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-17 Thread Romaric Jodin via cfe-commits
@@ -181,3 +181,15 @@ _CLC_OVERLOAD _CLC_DEF double atan(double x) _CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, double, atan, double); #endif // cl_khr_fp64 + +#ifdef cl_khr_fp16 rjodinchr wrote: I agree, but I had some weird compilation errors. Does it work o

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-17 Thread Fraser Cormack via cfe-commits
@@ -181,3 +181,15 @@ _CLC_OVERLOAD _CLC_DEF double atan(double x) _CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, double, atan, double); #endif // cl_khr_fp64 + +#ifdef cl_khr_fp16 frasercrmck wrote: Can this be `_CLC_DEFINE_UNARY_BUILTIN_FP16(atan)`? https://g

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-17 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck edited https://github.com/llvm/llvm-project/pull/98149 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-17 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck approved this pull request. LGTM, thanks https://github.com/llvm/llvm-project/pull/98149 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-10 Thread Fraser Cormack via cfe-commits
frasercrmck wrote: > @frasercrmck Could you review it please? Sure, will do, thanks for this. We've done something similar downstream so I can hopefully verify against what we've done. https://github.com/llvm/llvm-project/pull/98149 ___ cfe-commits m

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-09 Thread Romaric Jodin via cfe-commits
rjodinchr wrote: @frasercrmck Could you review it please? https://github.com/llvm/llvm-project/pull/98149 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-09 Thread via cfe-commits
https://github.com/alan-baker approved this pull request. Looks reasonable to me. https://github.com/llvm/llvm-project/pull/98149 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-09 Thread Romaric Jodin via cfe-commits
https://github.com/rjodinchr updated https://github.com/llvm/llvm-project/pull/98149 >From a387a97cc6ed89c65a9a80bc030e705ec864bf36 Mon Sep 17 00:00:00 2001 From: Romaric Jodin Date: Tue, 9 Jul 2024 14:22:26 +0200 Subject: [PATCH] libclc: increase fp16 support Increase fp16 support to allow cl

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-09 Thread Romaric Jodin via cfe-commits
https://github.com/rjodinchr updated https://github.com/llvm/llvm-project/pull/98149 >From c03c6e3a746fe6bfaf164151278db3cd32111f19 Mon Sep 17 00:00:00 2001 From: Romaric Jodin Date: Tue, 9 Jul 2024 14:22:26 +0200 Subject: [PATCH] libclc: increase fp16 support Increase fp16 support to allow cl

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-09 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 402eca265f7162e26b8b74d18297fd76c9f100de 4524f49360c28c6c024a9d13664773024ae053ad --

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-09 Thread via cfe-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r 402eca265f7162e26b8b74d18297fd76c9f100de...4524f49360c28c6c024a9d13664773024ae053ad libcl

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-09 Thread Romaric Jodin via cfe-commits
rjodinchr wrote: @alan-baker @kpet , could you please review? https://github.com/llvm/llvm-project/pull/98149 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-09 Thread Romaric Jodin via cfe-commits
rjodinchr wrote: Those implementations have been tested using 1 Intel and 1 AMD devices (with clvk/clspv) https://github.com/llvm/llvm-project/pull/98149 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-09 Thread Romaric Jodin via cfe-commits
https://github.com/rjodinchr created https://github.com/llvm/llvm-project/pull/98149 Increase fp16 support to allow clspv to continue to be OpenCL compliant following the update of the OpenCL-CTS adding more testing on math functions and conversions with half. Math functions are implemented b