Correct scratch allocation logic to account for asymmetric harvest.
With asym. harvest hw does not issue groups equally to each SE, occasionally hw will skip an SE so that the distribution reflects each SE's CU count. Scratch resources must be allocated to reflect this asymmetric distribution of groups. Change-Id: I65e26206500483ea18e6e8796e65ecba5354b029
Ta zmiana jest zawarta w:
%! (template.HTML=
Sean Keely)złożyło 2022-03-02 19:59:30 -06:00
1 rodzic
cedc3e80a8
złożenie
552dcead93
2 plików zmienionych
+19
-6
Żadne pliki nie pasują do Twojego wyszukiwania
@@ -237,8 +237,7 @@ static __forceinline bool IsPowerOfTwo(T val) {
|
||||
/// @return: T.
|
||||
template <typename T>
|
||||
static __forceinline T AlignDown(T value, size_t alignment) {
|
||||
assert(IsPowerOfTwo(alignment));
|
||||
return (T)(value & ~(alignment - 1));
|
||||
return (T)((value / alignment) * alignment);
|
||||
}
|
||||
|
||||
/// @brief: Same as previous one, but first parameter becomes pointer, for more
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika