Skip to content

Commit 29042ba

Browse files
committed
Session totalAllocatedBytes docs
1 parent d6e795d commit 29042ba

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,4 +395,14 @@ N.project(vectors);
395395
std::cout << vectors << "\n";
396396
```
397397

398+
## 5. Other
399+
400+
We can get the total allocated bytes (on the GPU) with
401+
```c++
402+
size_t allocatedBytes =
403+
Session::getInstance().totalAllocatedBytes();
404+
```
405+
406+
407+
398408
## Happy number crunching!

0 commit comments

Comments
 (0)