More doc comments

This commit is contained in:
Hansung Kim
2023-09-10 14:45:23 -07:00
parent 9efdd2ebb7
commit c90fe56588
5 changed files with 15 additions and 1 deletions

View File

@@ -29,6 +29,10 @@ public:
}
}
// NOTE(hansung): This is code running on the CPU, but CPU is still the one
// that keeps track of allocation of the GPU memory. GPU kernel simply runs
// assuming that CPU has done the right thing and returned a safe and valid
// chunk of memory.
int allocate(uint64_t size, uint64_t* addr) {
if (size == 0 || addr == nullptr)
return -1;
@@ -403,4 +407,4 @@ private:
page_t* pages_;
};
} // namespace vortex
} // namespace vortex