Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Support for differentiating between volatile and non-volatile memory operations #418

Open
nayakajay opened this issue Jul 1, 2024 · 1 comment

Comments

@nayakajay
Copy link

Hi,

After lowering a CUDA program to mlir format using cgeist, I wanted to run some analysis on memory operations. I want to differentiate memory operations which are 'volatile.'

__global__ void test(volatile int* a, int* b) {
     a[some_idx] = data();
     b[another_idx] = data();
}

For example, I want to differentiate stores to array a and b as volatile has special semantics in CUDA. In the LLVM IR, it is possible (isVolatile method). Can something similar be achieved here?

@nayakajay
Copy link
Author

Any comments on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant