Skip to content

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

Open

Description

@nayakajay

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?

Activity

  1. nayakajay commented on Jul 17, 2024

    @nayakajay
    Author

    Any comments on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions