Merged
fix(machine): Modify module id #6684
anyangleAdd on Sep 23
fix(machine): Modify module id #6684
Merged
anyangleAdd on Sep 23
Total: 2 files changed+2-2
@@ -299,7 +299,7 @@ MemoryBlock* DevMemoryPool::CreateNewBlock(uint64_t alignSize)
299{299{
300 uint8_t* devAddr = nullptr;300 uint8_t* devAddr = nullptr;
301 301 
302- if (RuntimeMalloc((void**)&devAddr, alignSize, TWO_MB_HUGE_PAGE_FLAGS, 0) == RTMALLOC_SUCCESS) {302+ if (RuntimeMalloc((void**)&devAddr, alignSize, TWO_MB_HUGE_PAGE_FLAGS, PYPTO) == RTMALLOC_SUCCESS) {
303 MemoryBlock* block = new MemoryBlock(devAddr, alignSize);303 MemoryBlock* block = new MemoryBlock(devAddr, alignSize);
304 memoryBlocks_.push_back(block);304 memoryBlocks_.push_back(block);
305 return block;305 return block;
@@ -148,7 +148,7 @@ inline uint64_t AlignSize(const uint64_t bytes, const uint32_t aligns = 512U)
148inline void* DevMallocWithAlignSize(const uint64_t size, const RtMemType memType)148inline void* DevMallocWithAlignSize(const uint64_t size, const RtMemType memType)
149{149{
150 uint8_t* devPtr = nullptr;150 uint8_t* devPtr = nullptr;
151- if (RuntimeMalloc(reinterpret_cast<void**>(&devPtr), AlignSize(size), memType, 0) != 0) {151+ if (RuntimeMalloc(reinterpret_cast<void**>(&devPtr), AlignSize(size), memType, PYPTO) != 0) {
152 MACHINE_LOGW("Fail to malloc dev memory with size[%lu] bytes and mem type[%u].", size, memType);152 MACHINE_LOGW("Fail to malloc dev memory with size[%lu] bytes and mem type[%u].", size, memType);
153 return nullptr;153 return nullptr;
154 }154 }