summaryrefslogtreecommitdiff
path: root/src/kernels/level3/convert_triangular.opencl
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernels/level3/convert_triangular.opencl')
-rw-r--r--src/kernels/level3/convert_triangular.opencl16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/kernels/level3/convert_triangular.opencl b/src/kernels/level3/convert_triangular.opencl
index f848dcc1..a9d5e769 100644
--- a/src/kernels/level3/convert_triangular.opencl
+++ b/src/kernels/level3/convert_triangular.opencl
@@ -31,11 +31,11 @@ void TriaLowerToSquared(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-triangular matrix
@@ -66,11 +66,11 @@ void TriaUpperToSquared(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-triangular matrix