Bugfix in declaration of global doneVal when pipeline parallelization is on.
Merge branch 'performance' of github.com:dimitriv/Ziria into performance
Merge branch 'performance' of github.com:dimitriv/Ziria into memcopy-opts