I tried to utilize parallel_for to velocity up our c++ program. It seems extremely simple to utilize. On the other hand, in the purpose which is to be parallelized, a small number of 2D arrays calculated in the function necessitate be passed to the most important function. In the illustration (sub_string_finder.cpp), one dimensional array is customized in the Sub String Finder by using the addresses of these arrays. Give pleasure to observe the code beneath. I am wondering if I be able to utilize similar trick, additional than not certain how to utilize it on 2D arrays. I originate a method to get around the tribulations. Immediately pass one dimensional arrays and renovate them to two dimensional arrays later.
Bookmarks