---
name: "MPIX_Query_hip_support"
section: "3"
platform: "linux"
package: "mpich-doc"
version: "4.0.2-3"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/MPIX_Query_hip_support"
---

# MPIX\_Query\_hip\_support(3)

Returns whether HIP (AMD GPU) is supported

## NAME

MPIX\_Query\_hip\_support -  Returns whether HIP (AMD GPU) is supported

## SYNOPSIS

```
int MPIX_Query_hip_support(void)
```

## THREAD AND INTERRUPT SAFETY

This routine is thread-safe.  This means that this routine may be safely used by multiple threads without the need for any user-provided thread locks.  However, the routine is not interrupt safe.  Typically, this is due to the use of memory allocation routines such as  *malloc* or other non-MPICH runtime routines that are themselves not interrupt-safe.

## NOTES FOR FORTRAN

All MPI routines in Fortran (except for  *MPI\_WTIME* and  *MPI\_WTICK* ) have an additional argument  *ierr* at the end of the argument list.   *ierr* is an integer and has the same meaning as the return value of the routine in C.  In Fortran, MPI routines are subroutines, and are invoked with the *call* statement.

All MPI objects (e.g.,  *MPI\_Datatype* ,  *MPI\_Comm* ) are of type  *INTEGER* in Fortran.
