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

Passing local arrays to injected quotes #151

Open
IgorErin opened this issue Apr 7, 2023 · 0 comments
Open

Passing local arrays to injected quotes #151

IgorErin opened this issue Apr 7, 2023 · 0 comments

Comments

@IgorErin
Copy link
Member

IgorErin commented Apr 7, 2023

Describe the bug
Passing local data to integrated quotes causes a compilation error.
passing '__local int *' to parameter of type 'int *' changes address space of pointer int buff = buffUnitFunc (resultLocalBuffer) ;

To Reproduce
Compile this:

let someFun someOp =
        <@ fun (localBuffer: int []) ->
            let buff = (%someOp)  localBuffer.[0] localBuffer.[0]
            () @>

let kernel =
    <@ fun (ndRange: Range1D) ->
        let array = localArray<int> workGroupSize
        (%someFun <@ (+) @>) localArray @>

Expected behavior
Compilation is success.

Desktop (please complete the following information):

  • OS: Windows 11
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