- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear everyone,
Does in Cilk+ exist such operation that invalidates the corresponding cache line so as to force the retrieval from the main memory just like what does OpenMP "flush"?
Thanks!
Bests,
Fan
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Grrk. That's NOT what OpenMP flush does, I am afraid! The specification is massively unclear about exactly what it does, but it's general effect is to synchronise the local view of data with the global view of data. But, if another thread has made a change and not yet used flush, you are very likely to not see that change. I think that you need to be a lot more precise about what you need and why.
As a general rule, the more synchronisation you use, the slower your program will run and the less you are likely to be 'thinking in parallel'. Some requirements fundamentally require synchronisation, of course, but it should be avoided unless essential.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page