[Piglit] [PATCH] Fix cllinkprogram build kernal faill for llvm3.7+
Serge Martin
edb+piglit at sigluy.net
Fri Jan 29 10:00:48 PST 2016
On Wednesday 27 January 2016 00:26:30 Meng Mengmeng wrote:
> Clang now does not support funciton declration like:
> int get_number();
> And it does not support impilict spir-function call.
This is strange it seems to work fine here.
Do you try with this patch : cl: improve clLinkProgram
(https://patchwork.freedesktop.org/patch/60994/), that languish since October
>
> Signed-off-by: Meng Mengmeng <mengmeng.meng at intel.com>
> ---
> tests/cl/api/link-program.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/tests/cl/api/link-program.c b/tests/cl/api/link-program.c
> index e98f428..d9abe27 100644
> --- a/tests/cl/api/link-program.c
> +++ b/tests/cl/api/link-program.c
> @@ -51,10 +51,10 @@ PIGLIT_CL_API_TEST_CONFIG_END
>
>
> const char* strings[] = {
> - "int get_number() { return 42; }",
> - "int get_number();\n",
> - "kernel void test_kernel() { int i = get_number(); }",
> - "int get_number() { return 0; }"
> + "int get_number(void) { return 42; }",
> + "int get_number(void);\n",
> + "int get_number(void);\nkernel void test_kernel(void) { int i =
> get_number(); }", + "int get_number(void) { return 0; }"
> };
>
> #if defined(CL_VERSION_1_2)
More information about the Piglit
mailing list