Proper SIMT with fine-grain scheduler implemented

This commit is contained in:
felsabbagh3
2019-05-10 00:49:54 -07:00
parent 96dac5e1ce
commit 48468ed26a
27 changed files with 6080 additions and 3375 deletions

View File

@@ -74,21 +74,21 @@ void _vx_mat_mult(unsigned tid, unsigned wid)
unsigned total = 0;
for (unsigned place = 0; place < mat_dim; ++place)
{
unsigned x_i = (wid * mat_dim) + place;
unsigned y_i = (mat_dim * place) + i_index;
unsigned x_i = (wid * mat_dim) + place;
unsigned y_i = (mat_dim * place ) + i_index;
total += (x_ptr[x_i] * y_ptr[y_i]);
}
int final_i = (wid * mat_dim) + i_index;
unsigned cond = i_index < mat_dim;
__if(cond)
{
// unsigned cond = i_index < mat_dim;
// __if(cond)
// {
z_ptr[final_i] = total;
i_index++;
}
__else
__end_if
// }
// __else
// __end_if
}
// for (int z = 0; z < ((1000 * wid) + 1000); z++);