On Wed, Nov 12, 2014 at 11:03:26AM +0000, Julian Brown wrote: > Thanks for the review! I'll work on addressing your comments. Your > characterization of the host_nonshm plugin sounds accurate, but OOI, > what does the Intel MIC plugin do differently that means it is not > subject to the same problem with target variables?
For the *-intelmicemul-* offloading target, the plugin uses the offloading library and runs the offloading region in a separate process. So, x86_64 (or i?86) ELF shared libraries are embedded into the data sections of your programs, when encountering target region for the first time it extracts them, saves them into temporary directory as shared libraries, saves there also a short binary, runs the binary and through the offloading library communicates between the host (one process) and offloading target (another process on the same host). So, you really can use the *-intelmicemul-* offloading yourself too, without any special hardware, to test OpenACC (at least, as soon as all the necessary hooks are wired in the plugin if any are missing right now). Jakub