You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] use_greedy in csrmm_nt is failing, cause performance issues (Proposed solution) #3012
The counters are used in the cl script (when USE_GREEDY is defined), to determine the s_rowId by incrementing it for each group_id(0). In the end, each group_id(0) workitem will have written to his rowId in incremental order (THREADS_PER_GROUP times).
The std::vector count(groups_x); is not initialized, resulting in random values (dependent from previous memory allocations) as basis for the s_rowId.
I assume that each element in the vector has to be initialized by 0, so that each row starts from 0 in the opencl script.
@willyborn That is a good catch, thanks for reporting it. However, do note that we never use greedy approach in current code base although the code-path is present. Therefore, it shouldn't cause any issues in user code. In fact, it seems like this code-path isn't completely written upon quick look but I would have to check it once more to be certain of that.
Having said that, it is a bug and we shall address it. Thanks once again.
Activity
9prady9 commentedon Sep 14, 2020
@willyborn That is a good catch, thanks for reporting it. However, do note that we never use greedy approach in current code base although the code-path is present. Therefore, it shouldn't cause any issues in user code. In fact, it seems like this code-path isn't completely written upon quick look but I would have to check it once more to be certain of that.
Having said that, it is a bug and we shall address it. Thanks once again.
9prady9 commentedon Sep 14, 2020
Please also note that we are looking another perf issue related to sparse-dense function in this #3010