@@ -60,12 +60,12 @@ void MemoryInfo::assignRegionsFromDistances(const std::vector<DistanceInfo> &dis
6060 }
6161}
6262
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) {
6464 std::vector<unsigned long > memPolicyNodeMask;
6565 int mode = -1 ;
6666 if (memPolicySupported &&
6767 isUSMHostAllocation &&
68- Linux::NumaLibrary::getMemPolicy (&mode, memPolicyNodeMask, addr )) {
68+ Linux::NumaLibrary::getMemPolicy (&mode, memPolicyNodeMask)) {
6969 if (memPolicyMode != -1 ) {
7070 mode = memPolicyMode;
7171 }
@@ -124,7 +124,7 @@ void MemoryInfo::printRegionSizes() {
124124 }
125125}
126126
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) {
128128 auto pHwInfo = this ->drm .getRootDeviceEnvironment ().getHardwareInfo ();
129129 auto regionClassAndInstance = getMemoryRegionClassAndInstance (memoryBanks, *pHwInfo);
130130 MemRegionsVec region = {regionClassAndInstance};
@@ -136,11 +136,11 @@ int MemoryInfo::createGemExtWithSingleRegion(uint32_t memoryBanks, size_t allocS
136136 }
137137 }
138138 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);
140140 return ret;
141141}
142142
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) {
144144 auto pHwInfo = this ->drm .getRootDeviceEnvironment ().getHardwareInfo ();
145145 auto banks = std::bitset<4 >(memoryBanks);
146146 MemRegionsVec memRegions{};
@@ -155,11 +155,11 @@ int MemoryInfo::createGemExtWithMultipleRegions(uint32_t memoryBanks, size_t all
155155 currentBank++;
156156 }
157157 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);
159159 return ret;
160160}
161161
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) {
163163 auto pHwInfo = this ->drm .getRootDeviceEnvironment ().getHardwareInfo ();
164164 auto banks = std::bitset<4 >(memoryBanks);
165165 MemRegionsVec memRegions{};
@@ -173,7 +173,7 @@ int MemoryInfo::createGemExtWithMultipleRegions(uint32_t memoryBanks, size_t all
173173 }
174174 currentBank++;
175175 }
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);
177177 return ret;
178178}
179179
0 commit comments