Skip to content

Commit

Permalink
Merge pull request #5726 from profnandaa/fix-cdi-config-on-windows
Browse files Browse the repository at this point in the history
fix: cdi: add appdefaults.CDISpecDirs for windows
  • Loading branch information
crazy-max authored Feb 13, 2025
2 parents 1b15816 + db8d975 commit 280ebbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/cdi.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ name.
Since BuildKit 0.20.0, you can access devices using the CDI interface. This
allows you to use devices like GPUs in your builds.

> [!NOTE]
> CDI support is yet to be tested on Windows.
## Usage

To use CDI with BuildKit, you need to create the [CDI configuration file](https://github.com/cncf-tags/container-device-interface/blob/main/SPEC.md#cdi-json-specification)
Expand Down
2 changes: 1 addition & 1 deletion util/appdefaults/appdefaults_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var (

var (
UserCNIConfigPath = DefaultCNIConfigPath
CDISpecDirs []string
CDISpecDirs = []string{filepath.Join(os.Getenv("ProgramData"), "buildkitd", "cdi")}
)

func UserAddress() string {
Expand Down

0 comments on commit 280ebbf

Please # to comment.