Update pointer info to include IPC memory.
IPC memory was previously returned as HSA_POINTER_ALLOCATED and
had garbage in the node_id field. Due to ROCR_VISIBLE_DEVICES
we need to be able to distinguish between imported memory and
regular memory because imported memory may not be owned by an
agent that is visible in the process. Differentiating these flags
allows the users to expect null agent for the owning agent.
Fixes
Change-Id: Ide3489cec1ee2072dc9697fa5cb71ddb17999d14
[ROCm/ROCR-Runtime commit: 6957202df8]
이 커밋은 다음에 포함됨:
1 부모
67726d2c2a
커밋
619acf4f75
2 파일이 변경됨
+6
-2
검색과 일치하는 파일 없음
@@ -1262,7 +1262,8 @@ typedef enum _HSA_POINTER_TYPE {
|
||||
HSA_POINTER_UNKNOWN = 0,
|
||||
HSA_POINTER_ALLOCATED = 1, // Allocated with hsaKmtAllocMemory (except scratch)
|
||||
HSA_POINTER_REGISTERED_USER = 2, // Registered user pointer
|
||||
HSA_POINTER_REGISTERED_GRAPHICS = 3 // Registered graphics buffer
|
||||
HSA_POINTER_REGISTERED_GRAPHICS = 3, // Registered graphics buffer
|
||||
HSA_POINTER_REGISTERED_SHARED = 4 // Registered shared buffer (IPC)
|
||||
// (hsaKmtRegisterGraphicsToNodes)
|
||||
} HSA_POINTER_TYPE;
|
||||
|
||||
|
||||
새 이슈에서 참조
사용자 차단