From 2c813c0dc9316778b6bd32be0750e9dd68856ed5 Mon Sep 17 00:00:00 2001 From: wlandau Date: Wed, 9 Oct 2024 13:21:19 -0400 Subject: [PATCH] gpus --- R/crew_options_aws_batch.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/R/crew_options_aws_batch.R b/R/crew_options_aws_batch.R index ec5444d..5589e35 100644 --- a/R/crew_options_aws_batch.R +++ b/R/crew_options_aws_batch.R @@ -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,