-
Notifications
You must be signed in to change notification settings - Fork 130
[SYCL][MATRIX] Adding test cases for testing get_coord() feature. #1676
Conversation
Currently, the tests are marked for failure, they will pass once the ICG backend suppport is there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests look good but the XMX8 versions are missing.
Added those tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
||
// Calculation of global index | ||
int sg_idx = (int)global_idy / SG_SZ; | ||
global_index = col + sg_idx * 4 /*VNNI_FACTOR*/ * SG_SZ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this line be global_index = col * 4 + row % 4 + sg_idx * 4 /*VNNI_FACTOR*/ * SG_SZ;
instead?
[row, col]
are the coordinates within the non-VNNIed subgroup matrix (32x16). I think we need to map [row, col]
back to VNNIed indices when summing columns.
Currently, the tests are marked for failure, they will pass once the ICG
backend support is there.
The header file support is in this PR: intel/llvm#7851