[Haskell-cafe] ghc on xeon phi?

Brandon Allbery allbery.b at gmail.com
Tue Feb 21 08:56:32 UTC 2017


On Tue, Feb 21, 2017 at 3:35 AM, Erik de Castro Lopo <mle+hs at mega-nerd.com>
wrote:

> It may however (as the SO response suggests) be possible to generate
> C code from GHC and compile that C code with with a C compiler that
> can generate Xeon Phi binaries.
>

ghc hasn't generated C code for a while, aside from unregisterised.

It's not truly a different architecture, but a reorganization of the
standard architecture. Unfortunately, ghc doesn't currently make good use
of the key Xeon Phi components even in the standard architecture; packages
that want to make use of them generally use -fllvm because LLVM is better
at using them, even given that LLVM isn't very good at understanding what
ghc feeds it. This suggests that -fflvm might be useful in taking advantage
of Xeon Phi architecture with ghc.

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170221/cc4c8f53/attachment.html>


More information about the Haskell-Cafe mailing list