Do not allow occupancy restriction on cooperative groups.

Excessive scratch allocations can normally trigger occupancy
reduction.  This breaks cooperative groups so if occupancy
reduction is required on a cooperative dispatch fail with OOM.

Change-Id: I64612a2e38bf1286f3b74c1c2a68ab0c85452771
Цей коміт міститься в:
Sean Keely
2022-02-28 21:26:18 -06:00
джерело 552dcead93
коміт 8a6954c63c
3 змінених файлів з 6 додано та 2 видалено
+2 -1
Переглянути файл
@@ -94,11 +94,12 @@ class ScratchCache {
size_t size_per_thread;
uint32_t lanes_per_wave;
uint32_t waves_per_group;
uint64_t wanted_slots;
bool cooperative;
ptrdiff_t queue_process_offset;
bool large;
bool retry;
hsa_signal_t queue_retry;
uint64_t wanted_slots;
ScratchCache::ref_t scratch_node;
};