SWDEV-532420 - Fix kokkos P2P copy failure with vmheap (#426)

Co-authored-by: Rahul Manocha <rmanocha@amd.com>

[ROCm/clr commit: 22b1ca4d8c]
이 커밋은 다음에 포함됨:
Manocha, Rahul그리고Rahul Manocha 작성하고 GitHub가 2025-07-07 17:27:13 -07:00를 커밋함
1 부모 8e5921174f
커밋 8e8dc41cf0
3 파일이 변경됨
+13 -11

검색과 일치하는 파일 없음

+2 -1
파일 보기
@@ -246,7 +246,8 @@ address VmHeap::Alloc(size_t size) {
} else {
return nullptr;
}
auto memory = new (base_memory_->getContext()) Buffer(*base_memory_, 0, offset, size);
auto memory =
new (device_->context()) Buffer(*base_memory_, 0, offset, size, &device_->context());
if (nullptr == memory || !memory->create(nullptr)) {
FreeBlock(hb);
return nullptr;