-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add windows-2022-cuda executor and usage example (#57)
- Loading branch information
Showing
3 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
description: | | ||
This is an example of running a simple job on the Windows Server 2022 cuda (GPU) executor | ||
usage: | ||
version: 2.1 | ||
orbs: | ||
win: circleci/windows@5.0 | ||
jobs: | ||
build: | ||
executor: win/server-2022-cuda | ||
steps: | ||
- run: Write-Host 'Hello, Windows' | ||
workflows: | ||
my-workflow: | ||
jobs: | ||
- build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
description: > | ||
An executor with an Nvidia GPU which includes a pre-installed CUDA runtime. | ||
parameters: | ||
shell: | ||
default: powershell.exe -ExecutionPolicy Bypass | ||
description: 'The shell to use. Defaults to `powershell.exe -ExecutionPolicy Bypass`' | ||
type: string | ||
size: | ||
default: medium | ||
description: 'The size of Windows GPU resource to use. Defaults to medium.' | ||
enum: | ||
- medium | ||
type: enum | ||
version: | ||
default: current | ||
description: The image version to use when executing. Defaults to "current". | ||
type: string | ||
|
||
machine: | ||
image: windows-server-2022-cuda:<< parameters.version >> | ||
resource_class: windows.gpu.nvidia.<< parameters.size >> | ||
shell: << parameters.shell >> |