Skip to content

Commit

Permalink
Document adding CUDA to system-requirements (#595)
Browse files Browse the repository at this point in the history
No you can search for cuda in our documentation and his will be the
first hit.

Closes #590

---------

Co-authored-by: Bas Zalmstra <[email protected]>
  • Loading branch information
ruben-arts and baszalmstra authored Dec 24, 2023
1 parent 40200b6 commit d695923
Showing 1 changed file with 38 additions and 31 deletions.
69 changes: 38 additions & 31 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,36 +148,34 @@ This will be the minimal system specification for the project.
System specifications are directly related to the [virtual packages](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-virtual.html).

Currently, the specified **defaults** are the same as [conda-lock](https://github.com/conda/conda-lock)'s implementation:
<Tabs groupId="Platforms">
<TabItem value="Linux">
```toml title="default system requirements"
[system-requirements]
unix = true
linux = "5.10"
libc = { family="glibc", version="2.17" }
```
</TabItem>
<TabItem value="Windows">
```toml title="default system requirements"
[system-requirements]
windows = true
```
</TabItem>
<TabItem value="Osx-64">
```toml title="default system requirements"
[system-requirements]
unix = true
macos = "10.15"
```
</TabItem>
<TabItem value="Osx-arm64">
```toml title="default system requirements"
[system-requirements]
unix = true
macos = "11.0"
```
</TabItem>
</Tabs>

=== "Linux"
```toml title="default system requirements for linux"
[system-requirements]
unix = true
linux = "5.10"
libc = { family="glibc", version="2.17" }
```

=== "Windows"
```toml title="default system requirements for windows"
[system-requirements]
windows = true
```

=== "Osx"
```toml title="default system requirements for osx"
[system-requirements]
unix = true
macos = "10.15"
```

=== "Osx-arm64"
```toml title="default system requirements for osx-arm64"
[system-requirements]
unix = true
macos = "11.0"
```

Only if a project requires a different set should you define them.

Expand All @@ -188,11 +186,20 @@ You may encounter the following error:
```
This suggests that the system requirements for the project should be lowered.
To fix this, add the following table to your configuration:
```
```toml
[system-requirements]
linux = "4.12.14"
```

#### Using Cuda in pixi
If you want to use `cuda` in your project you need to add the following to your `system-requirements` table:
```toml
[system-requirements]
cuda = "11" # or any other version of cuda you want to use
```
This informs the solver that cuda is going to be available, so it can lock it into the lockfile if needed.


## The `dependencies` table(s)
This section defines what dependencies you would like to use for your project.

Expand Down

0 comments on commit d695923

Please sign in to comment.