MCPcopy Create free account
hub / github.com/ROCm/clr / commitSvmMemory

Method commitSvmMemory

rocclr/platform/memory.cpp:535–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533}
534
535void Memory::commitSvmMemory() {
536 ScopedLock lock(lockMemoryOps_);
537 // if VRAM is visible for host, it is not necessary to mmap again
538 if (!svmPtrCommited_ && !largeBarSystem_) {
539 if (amd::Os::commitMemory(svmHostAddress_, size_, amd::Os::MEM_PROT_RW)) {
540 svmPtrCommited_ = true;
541 } else {
542 LogPrintfError("Mem Map failed for the host address 0x%x", svmHostAddress_);
543 }
544 }
545}
546
547void Memory::uncommitSvmMemory() {
548 ScopedLock lock(lockMemoryOps_);

Callers 7

createBufferMethod · 0.80
svmAllocMethod · 0.80
submitSvmCopyMemoryMethod · 0.80
allocMapTargetMethod · 0.80
mgpuCacheWriteBackMethod · 0.80
allocMapTargetMethod · 0.80
mgpuCacheWriteBackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected