okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
5af104b51
main
1// src/core/vmm.cpp - SYCL port: no virtual memory management. 2// 3// Upstream's vmm.cpp reaches the CUDA driver's cuMem* functions through cudaGetDriverEntryPointByVersion; Level Zero 4// has no equivalent through dpct. Every entry point therefore reports "not available", the same answer a GPU 5// without virtual memory management gives, so --vram-elastic and the elastic K/V (--kv-grow) refuse with their 6// usual message and nothing else changes. 7#include "strata/core/vmm.hpp" 8 9namespace strata::core { 10 11bool vmm_available () {return false; } 12uint64_t vmm_granularity () {return 0 ; } 13VmmChunk vmm_chunk_new () {return 0 ; } 14void vmm_chunk_free (VmmChunk ) {} 15 16bool VmmRange ::reserve (uint64_t ) {return false; } 17void VmmRange ::release () { 18h_ .clear (); 19base_ = 0 ; 20} 21int64_t VmmRange ::mapped_count ()const {return 0 ; } 22VmmChunk VmmRange ::unmap (int64_t ) {return 0 ; } 23bool VmmRange ::map_one (int64_t ,VmmChunk ) {return false; } 24bool VmmRange ::set_access (int64_t ,int64_t ) {return false; } 25bool VmmRange ::commit_run (int64_t ,int64_t ) {return false; } 26 27}// namespace strata::core