From 490eed137537d59c0ecd0a2307e41c270b42b41e Mon Sep 17 00:00:00 2001 From: James Edwards Date: Tue, 1 Nov 2022 17:18:07 -0600 Subject: [PATCH 1/2] improve handling of gpu options --- cime_config/config_component.xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/cime_config/config_component.xml b/cime_config/config_component.xml index 923e9afa8..e2bc131fa 100644 --- a/cime_config/config_component.xml +++ b/cime_config/config_component.xml @@ -784,6 +784,24 @@ If TRUE, the component libraries are always built with OpenMP capability. + + char + none, v100, a100, mi250 + none + build_def + env_build.xml + If set will compile and submit with this gpu type enabled + + + + char + none, OpenACC, OpenMP + none + build_def + env_build.xml + If set will compile and submit with this gpu offload method enabled + + logical TRUE,FALSE From 79d6fa7118b8d8a196bee2b1cc1a3735eaeab661 Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Thu, 3 Nov 2022 15:27:49 -0600 Subject: [PATCH 2/2] add combined option for offload --- cime_config/config_component.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cime_config/config_component.xml b/cime_config/config_component.xml index e2bc131fa..7b45889d5 100644 --- a/cime_config/config_component.xml +++ b/cime_config/config_component.xml @@ -795,7 +795,7 @@ char - none, OpenACC, OpenMP + none, OpenACC, OpenMP, combined none build_def env_build.xml