diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-12-09 20:44:21 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-12-09 20:44:21 +0100 |
commit | 9f02fb542ca659bf58d1efefdb334ea386ef10e8 (patch) | |
tree | 8669e215f38e8b00a4ee73a436479207f2afdbf5 /src/kernels/level3/convert_symmetric.opencl | |
parent | ca5dbcd2bd31fb0a0e3f6c2f81b3c0fff6250738 (diff) |
Completed kernel modifications for pre-processor of all other kernels
Diffstat (limited to 'src/kernels/level3/convert_symmetric.opencl')
-rw-r--r-- | src/kernels/level3/convert_symmetric.opencl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/kernels/level3/convert_symmetric.opencl b/src/kernels/level3/convert_symmetric.opencl index 8ae53b37..83ecdd65 100644 --- a/src/kernels/level3/convert_symmetric.opencl +++ b/src/kernels/level3/convert_symmetric.opencl @@ -30,11 +30,11 @@ void SymmLowerToSquared(const int src_dim, // Loops over the work per thread in both dimensions #pragma unroll - for (int w_one=0; w_one<PAD_WPTX; ++w_one) { - const int id_one = (get_group_id(0)*PAD_WPTX + w_one) * PAD_DIMX + get_local_id(0); + for (int _w_one = 0; _w_one < PAD_WPTX; _w_one += 1) { + const int id_one = (get_group_id(0)*PAD_WPTX + _w_one) * PAD_DIMX + get_local_id(0); #pragma unroll - for (int w_two=0; w_two<PAD_WPTY; ++w_two) { - const int id_two = (get_group_id(1)*PAD_WPTY + w_two) * PAD_DIMY + get_local_id(1); + for (int _w_two = 0; _w_two < PAD_WPTY; _w_two += 1) { + const int id_two = (get_group_id(1)*PAD_WPTY + _w_two) * PAD_DIMY + get_local_id(1); if (id_two < dest_dim && id_one < dest_dim) { // Loads data from the lower-symmetric matrix @@ -63,11 +63,11 @@ void SymmUpperToSquared(const int src_dim, // Loops over the work per thread in both dimensions #pragma unroll - for (int w_one=0; w_one<PAD_WPTX; ++w_one) { - const int id_one = (get_group_id(0)*PAD_WPTX + w_one) * PAD_DIMX + get_local_id(0); + for (int _w_one = 0; _w_one < PAD_WPTX; _w_one += 1) { + const int id_one = (get_group_id(0)*PAD_WPTX + _w_one) * PAD_DIMX + get_local_id(0); #pragma unroll - for (int w_two=0; w_two<PAD_WPTY; ++w_two) { - const int id_two = (get_group_id(1)*PAD_WPTY + w_two) * PAD_DIMY + get_local_id(1); + for (int _w_two = 0; _w_two < PAD_WPTY; _w_two += 1) { + const int id_two = (get_group_id(1)*PAD_WPTY + _w_two) * PAD_DIMY + get_local_id(1); if (id_two < dest_dim && id_one < dest_dim) { // Loads data from the upper-symmetric matrix |