diff --git a/examples/client2.c b/examples/client2.c index 026f03bba9..f0af1a9d07 100644 --- a/examples/client2.c +++ b/examples/client2.c @@ -15,7 +15,7 @@ * Copyright (c) 2011 Oak Ridge National Labs. All rights reserved. * Copyright (c) 2013-2019 Intel, Inc. All rights reserved. * Copyright (c) 2015 Mellanox Technologies, Inc. All rights reserved. - * Copyright (c) 2021 Nanook Consulting. All rights reserved. + * Copyright (c) 2021-2025 Nanook Consulting All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -128,6 +128,16 @@ int main(int argc, char **argv) PMIX_VALUE_RELEASE(val); fprintf(stderr, "Client %s:%d job size %d\n", myproc.nspace, myproc.rank, nprocs); +#ifdef PMIX_GPU_SUPPORT + /* see if we were given a GPU directive */ + rc = PMIx_Get(&proc, PMIX_GPU_SUPPORT, NULL, 0, &val); + if (PMIX_SUCCESS == rc) { + fprintf(stderr, "%s:%d GPU support: %s\n", myproc.nspace, myproc.rank, val->data.flag ? "ENABLED" : "DISABLED"); + } else { + fprintf(stderr, "%s:%d GPU support: NOT GIVEN\n", myproc.nspace, myproc.rank); + } +#endif + /* put a data array of pmix_value's */ val = (pmix_value_t *) malloc(32 * sizeof(pmix_value_t)); for (n = 0; n < 32; n++) { diff --git a/src/docs/show-help-files/help-prterun.txt b/src/docs/show-help-files/help-prterun.txt index fab08171bc..58647326fd 100644 --- a/src/docs/show-help-files/help-prterun.txt +++ b/src/docs/show-help-files/help-prterun.txt @@ -195,6 +195,10 @@ option to the help request as "--help