From 6c517e9b6b383262f85630cdf7f0cd9b95668321 Mon Sep 17 00:00:00 2001 From: Engin Kayraklioglu Date: Thu, 14 Mar 2024 08:39:29 -0700 Subject: [PATCH] Expand error message for when fifo is used with GPU locale model Signed-off-by: Engin Kayraklioglu --- util/chplenv/chpl_gpu.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/util/chplenv/chpl_gpu.py b/util/chplenv/chpl_gpu.py index e05b25fefc76..6519718c02e2 100644 --- a/util/chplenv/chpl_gpu.py +++ b/util/chplenv/chpl_gpu.py @@ -361,9 +361,10 @@ def validate(chplLocaleModel): # (e.g. CUDA or ROCm) gpu.validate_sdk_version() + if chpl_tasks.get() == 'fifo': + error("The 'fifo' tasking model is not supported with GPU support") + if get() == 'cpu': - if chpl_tasks.get() == 'fifo': - error("The 'fifo' tasking model is not supported with CPU-as-device mode") return True if chpl_compiler.get('target') != 'llvm':