Skip to content

Disabling cilksan on a specific line #101

Answered by neboat
wheatman asked this question in Q&A
Discussion options

You must be logged in to vote

Cilksan has an API you can use by including the cilk/cilksan.h header into your code. Depending on what exactly you want to do, the API provides a couple of options.

Cilksan fake locks

Cilksan includes an API for fake locks, which direct Cilksan to treat memory accesses as if they are protected by mutex lock. Cilksan fake locks are fake, in that they do not actually protect memory accesses with a mutex lock or provide any atomicity guarantee. Instead, they merely direct Cilksan to treat code as if it is protected by a lock. Cilksan will therefore not report races on code if logically parallel accesses are protected by the same fake lock.

The API for Cilksan fake locks is based on that for…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by neboat
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #90 on June 24, 2022 19:57.