- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
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?
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Since it's a templated method I think all the code is in the header file, "parallel_reduce.h" in "include\tbb"
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Since it's a templated method I think all the code is in the header file, "parallel_reduce.h" in "include\tbb"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You also can look at examples\parallel_reduce folder to find how it works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 :)
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
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page