Skip to content

Commit

Permalink
fix rmm reinitialize call
Browse files Browse the repository at this point in the history
  • Loading branch information
tingyu66 committed Nov 6, 2024
1 parent 57bc48f commit a4b9f7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/cugraph-dgl/examples/dataset_from_disk_cudf.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"import rmm\n",
"import torch\n",
"from rmm.allocators.torch import rmm_torch_allocator\n",
"rmm.reinitialize(initial_pool_size=15e9)\n",
"rmm.reinitialize(pool_allocator=True, initial_pool_size=15e9)\n",
"#Switch to async pool in case of memory issues due to fragmentation of the pool\n",
"#rmm.mr.set_current_device_resource(rmm.mr.CudaAsyncMemoryResource(initial_pool_size=15e9))\n",
"torch.cuda.memory.change_current_allocator(rmm_torch_allocator)"
Expand Down Expand Up @@ -254,7 +254,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.11.8"
},
"vscode": {
"interpreter": {
Expand Down

0 comments on commit a4b9f7e

Please sign in to comment.