- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Cannot find it in the language specifiaction (http://software.intel.com/file/40297), thanks!
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That's because it's not part of the language specification. :o)
TheCilk RuntimeAPI is documented in the include files in the cilk directory. The information is in Doxygen format, which is pretty readable. See cilk/ReadMe.html for information for how to downloadDoxygen and use it to generate HTML pages (or other formats).
Anyway, the functions you're looking for are __cilkrts_get_worker_number() and __cilkrts_get_nworkers(). They're declared in cilk/cilk_api.h.
Warning:If you're using __cilkrts_get_worker_number() for anything that's not justcosmetic, you probably want to use a reducer instead.
- Barry
TheCilk RuntimeAPI is documented in the include files in the cilk directory. The information is in Doxygen format, which is pretty readable. See cilk/ReadMe.html for information for how to downloadDoxygen and use it to generate HTML pages (or other formats).
Anyway, the functions you're looking for are __cilkrts_get_worker_number() and __cilkrts_get_nworkers(). They're declared in cilk/cilk_api.h.
Warning:If you're using __cilkrts_get_worker_number() for anything that's not justcosmetic, you probably want to use a reducer instead.
- Barry

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