Skip to content

Commit

Permalink
GpuPlugin -> CudaPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
will-cromar committed Jan 18, 2024
1 parent 2bc097e commit cfb60fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/cuda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import torch_xla.runtime as xr

# Use dynamic plugin instead of built-in CUDA support
plugins.use_dynamic_plugins()
plugins.register_plugin('CUDA', torch_xla_cuda_plugin.GpuPlugin())
plugins.register_plugin('CUDA', torch_xla_cuda_plugin.CudaPlugin())
xr.set_device_type('CUDA')

print(xm.xla_device())
Expand Down
2 changes: 1 addition & 1 deletion plugins/cuda/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ requires-python = ">=3.8"
torch_xla_cuda_plugin = ["lib/*.so"]

[project.entry-points."torch_xla.plugins"]
gpu = "torch_xla_cuda_plugin:GpuPlugin"
cuda = "torch_xla_cuda_plugin:CudaPlugin"

0 comments on commit cfb60fa

Please sign in to comment.