SWDEV-299893 - Set preferred node affinity

Set affinity to the closest node of the current GPU. This reduces
the latency to fetch kernel args since device would query the CPU cache
of core which did the dispatch. This behavior is controlled with
AMD_CPU_AFFINITY env var(disabled by default)

Change-Id: I65afba62cb818ea25a311b88d1c0dd5c51330292
Tento commit je obsažen v:
Saleel Kudchadker
2021-11-09 03:12:19 -08:00
rodič 6cf5089f37
revize b192beea52
6 změnil soubory, kde provedl 31 přidání a 4 odebrání
+2
Zobrazit soubor
@@ -1730,6 +1730,8 @@ class Device : public RuntimeObject {
) const {
return false;
};
virtual const uint32_t getPreferredNumaNode() const { return 0; }
virtual void ReleaseGlobalSignal(void* signal) const {}
//! Returns TRUE if the device is available for computations