Skip to content

Commit 5b58c32

Browse files
[arcane,mpi] Corrige erreur de compilation avec CRAY MPICH.
1 parent e4735e5 commit 5b58c32

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

arcane/src/arcane/parallel/mpi/ArcaneMpi.cc

+7
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,14 @@ arcaneIsHipAwareMPI()
6060
// MPICH
6161
#if defined(ARCANE_OS_LINUX)
6262
#if defined(MPIX_GPU_SUPPORT_HIP)
63+
// CRAY MPICH
64+
# if defined(CRAY_MPICH_VERSION)
65+
int is_supported = 0;
66+
MPIX_GPU_query_support(MPIX_GPU_SUPPORT_HIP,&is_supported);
67+
is_aware = (is_supported!=0);
68+
# else
6369
is_aware = (MPIX_Query_hip_support()==1);
70+
# endif
6471
#endif
6572

6673
// OpenMPI:

0 commit comments

Comments
 (0)