Skip to content

Commit

Permalink
style(pre-commit.ci): auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 19, 2024
1 parent 9886fd1 commit d712c88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/doc/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ We can then call the ``setBackend()`` function to set the backend we want to use
Here we use the OpenCL backend. This is the only backend available at the moment.

Once set, the backend will initialize all ressources available on the machine, and make them available to the library.
Here, by ressources, we mean devices (CPU, GPU, etc.) that are available on the system.
Here, by ressources, we mean devices (CPU, GPU, etc.) that are available on the system.
If no devices are available, the backend will not be able to initialize and will throw an error.

Now that the backend is initialized, we can access it through the ``getBackend()`` function of the singleton as such:
Expand All @@ -45,7 +45,7 @@ Here, we can specify the device we want using its name or index, as well as filt

auto device = cle::BackendManager::getInstance().getBackend().getDevice("", "all");

By default, we get the first available device of any type possible (CPU or GPU).
By default, we get the first available device of any type possible (CPU or GPU).
If multiple devices have the same name, we can identify them by their index.

For example, if we have two GPUs named ``"RTX 2090``, we can select the second one with the following code:
Expand Down

0 comments on commit d712c88

Please sign in to comment.