Michael G., 28.12.2009 03:31:
> Hrm, It seems that any sort of implemintation will be quite an involved job.
> 
> I have done some editing Nodes.py/toForFromStatNode by adding:
>     code.putln("#pragma omp parallel for")
> 
> However on compilation openMP starts complaining about:
>     error: invalid exit from OpenMP structured block
> which occures at every "goto" statement inside the paralleled for.
> 
> So basically, unless cython can be reworked to not utilize goto
> statements all over the place, openMP is not a feasible option.

We could do it as for try-finally, where we basically pass through the 
finally block in any case, and re-branch afterwards. I would expect that 
gotos that stay inside of the OpenMP block should be fine.

Is there a way to collectively exit from an OpenMP based loop in case of an 
error? (I guess that the semantics of that wouldn't be trivial to fix anyway.)

Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to