tpie icon indicating copy to clipboard operation
tpie copied to clipboard

item_type must be trivially copyable in parallel

Open Mortal opened this issue 13 years ago • 2 comments

Currently, we implicitly require, but do not check, that item_type in parallel is trivially copyable. This check should be explicit, or the code should be extended to allow non-trivially copyable types.

Mortal avatar Feb 04 '13 19:02 Mortal

Looking into this now it does not seem that we bit-copy the parallel buffers over - at least I cannot find a failing case. @antialize do you remember where this is a problem?

Mortal avatar Feb 12 '13 12:02 Mortal

If you use the ppp branch, and include terrastream/pipe/chunk Then create a pipe like this generate_points() | chunk(1024*1024) | parallel(process(), false, 4, 1 ) | unchunk() | consume_points()

Here generate_points, process and consume_points are imaginary classes created by you. You possibly modify the project example by replacing parallel(whatever_i_do_now(), false) with chunk(1024_1024) | parallel( unchunk() | whatever_i_do_now() | chunk(1024_1024), false, 4, 1) | unchunk()

/Jakob

antialize avatar Feb 12 '13 15:02 antialize