-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing tests and OpenCL support working with REAL
- Loading branch information
1 parent
8564d3a
commit 5e932b2
Showing
15 changed files
with
205 additions
and
142 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
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,16 +1,16 @@ | ||
#include "cl_common.h" | ||
|
||
// set the tmpx, tmpy, tmpz to 0.0 | ||
__kernel void set_tmp_to_zero(__global float* tmpx, | ||
__global float* tmpy, | ||
__global float* tmpz) | ||
__kernel void set_tmp_to_zero(__global REAL* tmpx, | ||
__global REAL* tmpy, | ||
__global REAL* tmpz) | ||
{ | ||
unsigned int work_dim = get_work_dim(); | ||
unsigned int gid = get_gid(work_dim); | ||
|
||
tmpx[gid] = 0.0f; | ||
tmpy[gid] = 0.0f; | ||
tmpz[gid] = 0.0f; | ||
tmpx[gid] = 0.0; | ||
tmpy[gid] = 0.0; | ||
tmpz[gid] = 0.0; | ||
|
||
} | ||
|
Oops, something went wrong.