This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix PTX loaded module data


On 07/19/15 17:04, Nathan Sidwell wrote:
Hi,
this patch fixes the ptx plugin's management of offloaded functions.  Currently
it has a single global list of functions.  But it should track this information
per ptx device instance.  I've moved the linked list  into the per-device data.

We were also not managing the plugin-allocated vector of offloaded functions,
with some totally bogus code in the unload routine.  This is currently not used,
because there is no unloading destructor.  The patch fixes that.

A followup patch will then be able to enable unloading.

ok for trunk?

I went ahead and committed this on the basis I probably understand the code best at this point, and it is entirely PTX-specific.

nathan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]