Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

about parallel_scan

Is it a good idea to used a parallel_scan to parse a text file? For example, suppose you have a file where commands are given in the file to build a model but reading the file the wrong way would change the model. In this case would a parallel_scan be appropriate or would a pipeline be better or should I consider a comiation of both?
0 Kudos
1 Reply
Black Belt
If you can automatically synchronise if you land in an unpredictable file location, I can see how you might parse parts of a model on the first pass that you wouldn't have to look at again on the second pass. Have you searched for any publications about parallel parsing that might help you?

(Correction) If you wanted to apply parallel_scan, the second pass wouldn't seem very useful, only the joins, and perhaps some processing after parallel_scan has ended, or even repeated invocations. But I like the idea.