Skip to content

Commit 4bfbdf6

Browse files
Merge pull request #1778 from arcaneframework/dev/gg-fix-hip-detection-with-cray-mpich
Fix compilation with CRAY MPICH version 8+
2 parents e1ef738 + 5b58c32 commit 4bfbdf6

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)