@@ -60,12 +60,12 @@ void MemoryInfo::assignRegionsFromDistances(const std::vector<DistanceInfo> &dis
60
60
}
61
61
}
62
62
63
- int MemoryInfo::createGemExt (const MemRegionsVec &memClassInstances, size_t allocSize, uint32_t &handle, uint64_t patIndex, std::optional<uint32_t > vmId, int32_t pairHandle, bool isChunked, uint32_t numOfChunks, bool isUSMHostAllocation, void *addr ) {
63
+ int MemoryInfo::createGemExt (const MemRegionsVec &memClassInstances, size_t allocSize, uint32_t &handle, uint64_t patIndex, std::optional<uint32_t > vmId, int32_t pairHandle, bool isChunked, uint32_t numOfChunks, bool isUSMHostAllocation) {
64
64
std::vector<unsigned long > memPolicyNodeMask;
65
65
int mode = -1 ;
66
66
if (memPolicySupported &&
67
67
isUSMHostAllocation &&
68
- Linux::NumaLibrary::getMemPolicy (&mode, memPolicyNodeMask, addr )) {
68
+ Linux::NumaLibrary::getMemPolicy (&mode, memPolicyNodeMask)) {
69
69
if (memPolicyMode != -1 ) {
70
70
mode = memPolicyMode;
71
71
}
@@ -124,7 +124,7 @@ void MemoryInfo::printRegionSizes() {
124
124
}
125
125
}
126
126
127
- int MemoryInfo::createGemExtWithSingleRegion (uint32_t memoryBanks, size_t allocSize, uint32_t &handle, uint64_t patIndex, int32_t pairHandle, bool isUSMHostAllocation, void *addr ) {
127
+ int MemoryInfo::createGemExtWithSingleRegion (uint32_t memoryBanks, size_t allocSize, uint32_t &handle, uint64_t patIndex, int32_t pairHandle, bool isUSMHostAllocation) {
128
128
auto pHwInfo = this ->drm .getRootDeviceEnvironment ().getHardwareInfo ();
129
129
auto regionClassAndInstance = getMemoryRegionClassAndInstance (memoryBanks, *pHwInfo);
130
130
MemRegionsVec region = {regionClassAndInstance};
@@ -136,11 +136,11 @@ int MemoryInfo::createGemExtWithSingleRegion(uint32_t memoryBanks, size_t allocS
136
136
}
137
137
}
138
138
uint32_t numOfChunks = 0 ;
139
- auto ret = createGemExt (region, allocSize, handle, patIndex, vmId, pairHandle, false , numOfChunks, isUSMHostAllocation, addr );
139
+ auto ret = createGemExt (region, allocSize, handle, patIndex, vmId, pairHandle, false , numOfChunks, isUSMHostAllocation);
140
140
return ret;
141
141
}
142
142
143
- int MemoryInfo::createGemExtWithMultipleRegions (uint32_t memoryBanks, size_t allocSize, uint32_t &handle, uint64_t patIndex, bool isUSMHostAllocation, void *addr ) {
143
+ int MemoryInfo::createGemExtWithMultipleRegions (uint32_t memoryBanks, size_t allocSize, uint32_t &handle, uint64_t patIndex, bool isUSMHostAllocation) {
144
144
auto pHwInfo = this ->drm .getRootDeviceEnvironment ().getHardwareInfo ();
145
145
auto banks = std::bitset<4 >(memoryBanks);
146
146
MemRegionsVec memRegions{};
@@ -155,11 +155,11 @@ int MemoryInfo::createGemExtWithMultipleRegions(uint32_t memoryBanks, size_t all
155
155
currentBank++;
156
156
}
157
157
uint32_t numOfChunks = 0 ;
158
- auto ret = createGemExt (memRegions, allocSize, handle, patIndex, {}, -1 , false , numOfChunks, isUSMHostAllocation, addr );
158
+ auto ret = createGemExt (memRegions, allocSize, handle, patIndex, {}, -1 , false , numOfChunks, isUSMHostAllocation);
159
159
return ret;
160
160
}
161
161
162
- int MemoryInfo::createGemExtWithMultipleRegions (uint32_t memoryBanks, size_t allocSize, uint32_t &handle, uint64_t patIndex, int32_t pairHandle, bool isChunked, uint32_t numOfChunks, bool isUSMHostAllocation, void *addr ) {
162
+ int MemoryInfo::createGemExtWithMultipleRegions (uint32_t memoryBanks, size_t allocSize, uint32_t &handle, uint64_t patIndex, int32_t pairHandle, bool isChunked, uint32_t numOfChunks, bool isUSMHostAllocation) {
163
163
auto pHwInfo = this ->drm .getRootDeviceEnvironment ().getHardwareInfo ();
164
164
auto banks = std::bitset<4 >(memoryBanks);
165
165
MemRegionsVec memRegions{};
@@ -173,7 +173,7 @@ int MemoryInfo::createGemExtWithMultipleRegions(uint32_t memoryBanks, size_t all
173
173
}
174
174
currentBank++;
175
175
}
176
- auto ret = createGemExt (memRegions, allocSize, handle, patIndex, {}, pairHandle, isChunked, numOfChunks, isUSMHostAllocation, addr );
176
+ auto ret = createGemExt (memRegions, allocSize, handle, patIndex, {}, pairHandle, isChunked, numOfChunks, isUSMHostAllocation);
177
177
return ret;
178
178
}
179
179
0 commit comments