Skip to content

Commit 6372baa

Browse files
author
Rolf vandeVaart
committed
Some minor cleanup and renaming of query function.
1 parent c6bb227 commit 6372baa

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

ompi/mpiext/cuda/c/MPIx_CUDA_SUPPORT.3in renamed to ompi/mpiext/cuda/c/MPIX_Query_cuda_support.3in

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
.\" Copyright (c) 2015 NVIDIA, Inc. All rights reserved.
55
.TH MPIx_CUDA_SUPPORT 3 "#OMPI_DATE#" "#PACKAGE_VERSION#" "#PACKAGE_NAME#"
66
.SH NAME
7-
\fBMPIx_CUDA_SUPPORT\fP \- Obtain prettyprint strings of processor affinity information for this process
7+
\fBMPIX_Query_cuda_support\fP \- Returns 1 if there is CUDA aware support and 0 if there is not.
88

99
.SH SYNTAX
1010
.ft R
@@ -13,21 +13,14 @@
1313
#include <mpi.h>
1414
#include <mpi-ext.h>
1515

16-
int MPIx_CUDA_SUPPORT(void)
16+
int MPIX_Query_cuda_support(void)
1717
.fi
1818
.SH Fortran Syntax
1919
There is no Fortran binding for this function.
2020
.
2121
.SH C++ Syntax
2222
There is no C++ binding for this function.
2323
.
24-
.SH INPUT PARAMETERS
25-
.ft R
26-
.
27-
.SH OUTPUT PARAMETERS
28-
.ft R
29-
.TP 1i
30-
3124
.SH DESCRIPTION
3225
.ft R
3326

@@ -37,5 +30,5 @@ There is no C++ binding for this function.
3730
.SH See Also
3831
.ft R
3932
.nf
40-
JeffIsAToad(1)
33+
4134
.fi

ompi/mpiext/cuda/c/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ libmpiext_cuda_c_la_SOURCES = \
3939
libmpiext_cuda_c_la_LDFLAGS = -module -avoid-version
4040

4141
# Man page installation
42-
nodist_man_MANS = MPIx_CUDA_SUPPORT.3
42+
nodist_man_MANS = MPIX_Query_cuda_support.3
4343

4444
# Man page sources
4545
EXTRA_DIST = $(nodist_man_MANS:.3=.3in)

ompi/mpiext/cuda/c/mpiext_cuda.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
#include "opal/constants.h"
2424
#include "ompi/mpiext/cuda/c/mpiext_cuda_c.h"
2525

26-
int MPIx_CUDA_SUPPORT(void)
26+
/* The fact that this code is configured and compiled means that we have CUDA aware
27+
support. We may expand on this API to return more features in the future. */
28+
int MPIX_Query_cuda_support(void)
2729
{
28-
return OPAL_ERR_NOT_SUPPORTED;
30+
return OMPI_SUCCESS;
2931
}

0 commit comments

Comments
 (0)