Apologies -- I accidentally pushed a commit that corrects handling the half
data type in the kernel library. I believe that my changes are correct, but
I wanted a peer review first. Should I revert the push, or do you want to
review the change on the master branch?

The main point of the change is:

OpenCL does not treat "half" as a full data type. Mostly, one can only
either load or store it from memory, not many other operations are
possible. Those that are possible are as_type, select, etc., that treat the
type opaquely.

We currently provided some kernel functions for the half data type. For
many of these, LLVM would fail to generate machine code from byte code. I
removed those functions that the standard does not require.

I provided work-arounds or disabled those that LLVM currently cannot
handle. Most notably there is select with half3. (select with half4 and
select with short3 work fine.)

With these changes, I can finally run "llc kernel*.bc" in lib/kernel/host
without crashing LLVM.

-erik

-- 
Erik Schnetter <[email protected]>
http://www.perimeterinstitute.ca/personal/eschnetter/
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
pocl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pocl-devel

Reply via email to