Skip to content

Commit

Permalink
feat: add windows-2022-cuda executor and usage example (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjohnso5 authored Feb 4, 2025
1 parent 0f5b517 commit 1f58dd6
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .circleci/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ jobs:
variant: << parameters.variant >>
steps:
- run: Write-Host 'Hello, Windows'
test-server-2022-cuda:
parameters:
version:
type: string
executor:
name: windows/server-2022-cuda
size: medium
version: << parameters.version >>
steps:
- run: Write-Host 'Hello, Windows'
workflows:
test-deploy:
jobs:
Expand All @@ -65,7 +75,13 @@ workflows:
parameters:
variant: [gui] # add core when available
version: [edge, current] # add stable when available
filters: *filters
filters: *filters
- test-server-2022-cuda:
name: test-server-2022-cuda-<< matrix.version >>
matrix:
parameters:
version: [edge, current]
filters: *filters
- orb-tools/pack:
filters: *filters
- orb-tools/publish:
Expand All @@ -77,6 +93,7 @@ workflows:
- test-server-2019
- test-server-2019-cuda
- test-server-2022
- test-server-2022-cuda
- orb-tools/pack
context: orb-publisher
filters:
Expand Down
15 changes: 15 additions & 0 deletions src/examples/run_windows_2022_cuda.yml
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
23 changes: 23 additions & 0 deletions src/executors/server-2022-cuda.yml
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 >>

0 comments on commit 1f58dd6

Please sign in to comment.