forked from gsvgit/Brahma.FSharp
-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels