Michal,
Thanks. Trying this on Intel i5-6200U. The GPU on this chip has half
precision support:
https://en.wikichip.org/wiki/intel/hd_graphics/520
Would be helpful to have this in newer versions of POCL to enable easy
data exchange.
Benson
On 08/13/2018 12:57 PM, Michal Babej wrote:
Hi,
Though current hardware I tested on does not have half2 support,
errors I get when trying to compile using:
g++ testHalf.cpp -o testHalf -lOpenCL
which hardware though ? __fp16 seems to be an ARM-only extension to C,
so it likely doesn't compile on x86-64 at all.
Anyway, host-side half support is not pocl's business. I've tried
compiling the Half.cl example on my ODROID C2, with
pocl 1.3-pre/master-0-gdf366d8 Release+Asserts, LLVM 6.0.0, SLEEF,
POCL_DEBUG, FP16
and poclcc returned:
| ERROR | Error(s) while linking:
Cannot find symbol _Z6vload2mPU8CLglobalKDh in kernel library
... which is really pocl's fault, lib/kernel/vload.cl is missing the
half implementations. Anyway fixing this is trivial (implemented
by macros) and after that, it compiles.
Since nobody (so far) has put serious effort into half support, it has
bugs like this, but trying to get it working on old pocl + old LLVM +
ARM64 is going to be much more painful.
-- mb
------------------------------------------------------------------------
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
pocl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pocl-devel