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):
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:
Expected behavior Compilation is success.
Desktop (please complete the following information):