Skip to content

Commit

Permalink
gpus
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed Oct 9, 2024
1 parent 83262aa commit 2c813c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/crew_options_aws_batch.R
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ crew_options_aws_batch <- function(
message = "cpus must be NULL or a single positive number"
)
crew::crew_assert(
gpus %|||% 0,
gpus %|||% 1,
is.numeric(.),
length(.) == 1L,
is.finite(.),
. >= 0,
message = "gpus must be NULL or a single non-negative number"
. > 0,
message = "gpus must be NULL or a single positive number"
)
crew::crew_assert(
memory %|||% 0,
Expand Down

0 comments on commit 2c813c0

Please sign in to comment.