forked from YaccConstructor/Brahma.FSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7aea127
commit e3b4690
Showing
5 changed files
with
86 additions
and
85 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,5 @@ | ||
#pragma OPENCL EXTENSION cl_khr_fp64 : enable | ||
double ItemUnitFunc (__global double * buf, private double tempVarY) | ||
{double tempVarX = buf [0] ; | ||
double tempVarY1 = tempVarY ; | ||
if ((tempVarX > tempVarY1)) | ||
{return tempVarX ;} | ||
else | ||
{return tempVarY1 ;} ;} | ||
double ItemUnitFunc2 (__global double * buf, private double tempVarY) | ||
{double tempVarX2 = buf [0] ; | ||
double tempVarY3 = tempVarY ; | ||
if ((tempVarX2 > tempVarY3)) | ||
{return tempVarX2 ;} | ||
else | ||
{return tempVarY3 ;} ;} | ||
__kernel void brahmaKernel (__global double * buf) | ||
{double tempVarY = 1 ; | ||
buf [0] = ItemUnitFunc (buf, tempVarY) ; | ||
buf [0] = ItemUnitFunc2 (buf, tempVarY) ;} | ||
buf [0] = max (buf [0], tempVarY) ; | ||
buf [0] = max (buf [0], tempVarY) ;} |
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