[Cbe-oss-dev] [PATCH] libspe2: Initialise object-id on isolated program load

Gerhard Stenzel gerhard.stenzel at de.ibm.com
Wed Aug 15 01:01:45 EST 2007


> I think some statement in the spec would be good, preferrably with input
> from the gdb people. How about something along the lines of:
>
> "The spe_program_handle_t pointer must be valid until the program has
> been completely loaded to the SPE. In the case of isolated-mode
> contexts, the program must be valid until spe_context_run() returns.
> For non-isolated contexts, the program only needs to be valid while
> spe_program_load() is executing."

There are other scenarios (using overlays and for debugging) where it is
not a good idea to close the spe_program_handle_t too early. In general,
the recommendation should be to not use spe_image_close() as long as the
spu program is running. Maybe it should specifically be prevented?

Best regards,

Gerhard Stenzel, Linux on Cell Development, LTC
-----------------------------------------------------------------------------------------------------------------------------------

IBM Deutschland Entwicklung GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter | Geschäftsführung: Herbert
Kircher
Sitz der Gesellschaft: Böblingen | Registergericht: Amtsgericht Stuttgart,
HRB 243294




More information about the cbe-oss-dev mailing list