[Bf-committers] Is there a parallel pipeline in blender?

Ruan Beihong ruanbeihong at gmail.com
Tue Aug 11 04:37:48 CEST 2009

I use CPU pipeline as an example of how this should work.
This feature is not very generic, but it do solve problems that data
can be processed in parallel but should be start and stop the process
in order. Many operations could benefit from this feature for example
the composite node: each frame is individual and operation in each
composite node is pure functional, i.e. thread-safe, but they must be
done in order of frame and composite nodes (from input to output).
With this feature, more than one frame can actually composite in
pipeline but the are returned in order.

The BLI_thread may serve as an under layer of this feature.

2009/8/11 Brecht Van Lommel <brecht at blender.org>:
> Hi,
> As mentioned, Blender already does multithreading in various places.
> Some using the BLI_thread functions, others using OpenMP. I'm not sure
> why you are talking about CPU pipelining, to me it seems what you are
> proposing is standard multithreading, so it may be better to talk in
> that terminology. There's more places in Blender that could benefit from
> multithreading, and they can share some code, but basically need to be
> handled on a case by case basis. What you're proposing is very generic,
> so it's unclear to me what it is really about.
> Brecht.
> On Fri, 2009-08-07 at 09:14 +0800, Ruan Beihong wrote:
>> Thanks for the reply.
>> Maybe I didn't put it right. I mean the execution of the tasks in
>> pipeline goes in similar way as the pipeline in CPU, which always
>> starts tasks in order, and end it in order but between them tasks run
>> in parallel. This feature can be put into use when some series of
>> tasks done in order to more than one piece of data.
>> I don't know much about OpenMP, but it seems OpenMP doesn't provide
>> this feature directly, isn't it?
>> 2009/8/7 GSR <gsr.b3d at infernal-iceberg.com>:
>> > Hi,
>> > ruanbeihong at gmail.com (2009-08-06 at 2311.39 +0800):
>> >> Hi there,
>> >> I wonder if there is a parallel pipeline in blender. I mean the
>> >> pipeline as that in CPU which increase IPC (instructions per cycle).
>> >
>> > Sorry, but I am unable to see how instructions per cycle matter for
>> > this. Maybe you mean Symmetric Multi Processing?
>> >
>> >> I'm considering implement that feature.
>> >
>> > Some parts of code are using OpenMP to accomodate systems with more
>> > than one logical CPU, libelbeem for example.
>> >
>> > GSR
>> >
>> > _______________________________________________
>> > Bf-committers mailing list
>> > Bf-committers at blender.org
>> > http://lists.blender.org/mailman/listinfo/bf-committers
>> >
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers

James Ruan

More information about the Bf-committers mailing list