pocl requires fork()

Bug #1039565 reported by Andreas Klöckner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pocl
New
Undecided
Unassigned

Bug Description

pocl currently seems to assume that it's safe to fork other processes during kernel build. Unfortunately, in the high-performance compute use case, that's not true. In particular, MPI processes with Infiniband buffers mapped into their address space do not seem to take forking very well, often leading to a crash.

Revision history for this message
Andreas Klöckner (inform) wrote :

Obvious follow-up remakr: It would be ideal if the entire compilation could be done in-process, e.g. using clang as a shared library, if that's possible.

Revision history for this message
Pekka Jääskeläinen (pekka-jaaskelainen) wrote :

Yes, it should be possible and actually was discussed recently in #pocl as a way to get rid of the requirement of pocl scripts in PATH. Getting rid of the scripts would make the code base more easily portable e.g. to Windows. Clang and LLVM both should have library APIs we need.

Revision history for this message
Kalle Raiskila (kraiskil) wrote :

lp:~kraiskil/+junk/pocl_llvm_api
Just a bruteforce removal of one system() call so far.

tags: added: script-annoyance
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.