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
이 커밋은 다음에 포함됨:
Saleel Kudchadker가 2021-11-19 04:42:42 -05:00를 커밋했습니다
1 부모 6cf5089f37
커밋 b192beea52
6 파일이 변경됨
+31 -4

검색과 일치하는 파일 없음

+2
파일 보기
@@ -250,6 +250,8 @@ static void SetThreadName(DWORD threadId, const char* name) {
void Os::setCurrentThreadName(const char* name) { SetThreadName(GetCurrentThreadId(), name); }
void Os::setPreferredNumaNode(uint32_t node) {};
static LONG WINAPI divExceptionFilter(struct _EXCEPTION_POINTERS* ep) {
DWORD code = ep->ExceptionRecord->ExceptionCode;