[PATCH 1/1] Provide vstore_half helper to workaround clc restrictions

clang won't accept half precision loads and stores without cl_khr_fp16 since r281904
Tested on clover carrizo and iceland

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>

Tested-by: Michel Dänzer <michel.daenzer@amd.com>

clang won't accept half precision loads and stores without cl_khr_fp16 since r281904
Tested on clover carrizo and iceland

What is the problem here? Are half vload/vstore allowed without cl_khr_fp16?

-Tom

>
> clang won't accept half precision loads and stores without
> cl_khr_fp16 since r281904
> Tested on clover carrizo and iceland
>

What is the problem here? Are half vload/vstore allowed without
cl_khr_fp16?

vload_half, vstore_half are allowed without the extension (and include
scalar variant).
vstoreN(half), vloadN(half) need the extension.

Jan

> >
> > clang won't accept half precision loads and stores without
> > cl_khr_fp16 since r281904
> > Tested on clover carrizo and iceland
> >
>
> What is the problem here? Are half vload/vstore allowed without
> cl_khr_fp16?

vload_half, vstore_half are allowed without the extension (and include
scalar variant).
vstoreN(half), vloadN(half) need the extension.

OK. LGTM.