Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Nav
New Contributor I
56 Views

Going down to the source code

Jump to solution
I've wanted to have a look at how the parallel_reduce was programmed, but had some trouble figuring out where the source code is.

Tried tbb22_20091101oss. It had an 'src' folder, but there was no parallel_for file.

Tried tbb30_20100406oss. It didn't have an 'src' folder.

Could someone help out? Which folders do I search for, to find the source code?
0 Kudos
1 Solution
nagy
New Contributor I
56 Views
Since it's a templated method I think all the code is in the header file, "parallel_reduce.h" in "include\tbb"

View solution in original post

3 Replies
nagy
New Contributor I
57 Views
Since it's a templated method I think all the code is in the header file, "parallel_reduce.h" in "include\tbb"

View solution in original post

56 Views
You also can look at examples\parallel_reduce folder to find how it works.
Nav
New Contributor I
56 Views
Thanks! :) I did have a look at all the folders before posting here, but I didn't expect the code in the header files to actually be the source.
I guess that was a misconception coz long time back when learning C, I looked at the stdio.h file while searching for how printf is implemented, and realised that code isn't supposed to be in header files.

@Vladimir:
Thanks. Have tried those examples :)
Reply