forked from gsvgit/Brahma.FSharp
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #138 from dpanfilyonok/fix
Fix generic to private space conversion
- Loading branch information
Showing
3 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/Brahma.FSharp.Tests/ExecutionTests/Expected/GenericSpace.cl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
int x (private int a1) | ||
{return (a1 + 1) ;} | ||
int s1UnitFunc (private int * s2Ref) | ||
{return x (* (s2Ref)) ;} | ||
__kernel void brahmaKernel (__global int * a) | ||
{int s = 1 ; | ||
int s2 = 2 ; | ||
__private int * s2Ref = & s2 ; | ||
int s1 = s1UnitFunc (s2Ref) ; | ||
a [0] = s1 ;} |