Add hsaKmtRegisterMemoryWithFlags.
API follows hsaKmtRegisterMemory but allows passing HsaMemFlags.
Change-Id: I66a230a87c8b085f27c769bdf2cb4d0d96a5d6dd
[ROCm/ROCR-Runtime commit: c7f1277013]
Tá an tiomantas seo le fáil i:
1 tuismitheoir
5de58e1ab2
tiomantas
80ffb43205
5 comhad athraithe
+50
-8
Níor tháinig aon chomhaid le do chuardach
@@ -400,6 +400,18 @@ hsaKmtRegisterMemoryToNodes(
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
Registers with KFD a memory buffer with memory attributes
|
||||
*/
|
||||
|
||||
HSAKMT_STATUS
|
||||
HSAKMTAPI
|
||||
hsaKmtRegisterMemoryWithFlags(
|
||||
void *MemoryAddress, // IN (cache-aligned)
|
||||
HSAuint64 MemorySizeInBytes, // IN (cache-aligned)
|
||||
HsaMemFlags MemFlags // IN
|
||||
);
|
||||
|
||||
/**
|
||||
Registers with KFD a graphics buffer and returns graphics metadata
|
||||
*/
|
||||
@@ -515,7 +527,7 @@ hsaKmtMapMemoryToGPUNodes(
|
||||
void* MemoryAddress, //IN (page-aligned)
|
||||
HSAuint64 MemorySizeInBytes, //IN (page-aligned)
|
||||
HSAuint64* AlternateVAGPU, //OUT (page-aligned)
|
||||
HsaMemMapFlags MemMapFlags, //IN
|
||||
HsaMemMapFlags MemMapFlags, //IN
|
||||
HSAuint64 NumberOfNodes, //IN
|
||||
HSAuint32* NodeArray //IN
|
||||
);
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir