2014-02-19 20:10 GMT+04:00 Thomas Schwinge <tho...@codesourcery.com>: > Here is such a libgomp plugin plus the infrastructure for initial support > of non-shared memory host execution. Any comments? > > Grüße, > Thomas
This plugin looks good. I think the function call in GOMP_target also should be replaced with a call to plugin: - fn ((void *) tgt->tgt_start); + devicep->device_run_func (fn, (void *) tgt->tgt_start); Also I have a question (not related with this plugin): How will libgomp work with multiple devices of the same type? Probably it should load the plugin once, query it for the number of available devices, add received number of descriptors to the devices[] array, an then pass devicep->id as an argument to all plugin's interfaces. -- Ilya