NewMadeleine

Documentation

« back to PM2 home.
nm_mpi_ext.h
Go to the documentation of this file.
1/*
2 * NewMadeleine
3 * Copyright (C) 2006-2024 (see AUTHORS file)
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 */
15
16
17#ifndef NM_MPI_EXT_H
18#define NM_MPI_EXT_H
19
20/* ** GPU aware support, OpenMPI API */
21
22#define MPIX_CUDA_AWARE_SUPPORT 1
23
24#define MPIX_ROCM_AWARE_SUPPORT 1
25
28
31
32
33/* ** GPU aware support, MPICH API */
34
36#define MPIX_GPU_SUPPORT_CUDA 2
37
39#define MPIX_GPU_SUPPORT_HIP 3
40
42#define MPIX_GPU_SUPPORT_ZE 4
43
44int MPIX_GPU_query_support(int gpu_type, int*is_supported);
45
46
47#endif /* NM_MPI_EXT_H */
int MPIX_Query_rocm_support(void)
int MPIX_Query_cuda_support(void)
returns 1 if there is rocm aware support, 0 otherwise.
int MPIX_GPU_query_support(int gpu_type, int *is_supported)