table of contents
| PMIX_DEVICE_TYPE_STRING(3) | OpenPMIx | PMIX_DEVICE_TYPE_STRING(3) |
PMIx_Device_type_string — Return the string representation of a pmix_device_type_t value.
SYNOPSIS¶
#include <pmix.h> const char* PMIx_Device_type_string(pmix_device_type_t type);
Python Syntax¶
from pmix import * foo = PMIxClient() name = foo.device_type_string(PMIX_DEVTYPE_GPU)
INPUT PARAMETERS¶
- •
- type: A device type value of type pmix_device_type_t. Recognized values include PMIX_DEVTYPE_UNKNOWN, PMIX_DEVTYPE_BLOCK, PMIX_DEVTYPE_GPU, PMIX_DEVTYPE_NETWORK, PMIX_DEVTYPE_OPENFABRICS, PMIX_DEVTYPE_DMA, and PMIX_DEVTYPE_COPROC.
DESCRIPTION¶
Return a human-readable, statically-allocated string describing the given device type — for example, "GPU", "NETWORK", or "COPROCESSOR". If the value does not correspond to a recognized device type, the fallback string "UNKNOWN" is returned.
The returned pointer refers to constant storage owned by the PMIx library. The caller must not modify or free it.
RETURN VALUE¶
Returns a pointer to a constant, statically-allocated character string. The pointer is always non-NULL and must not be freed by the caller.
See also:
Copyright¶
2014-2026, OpenPMIx Community
| November 21, 2026 |