omp_get_interop_int (GNU libgomp) (original) (raw)


3.11.2 omp_get_interop_int – Obtain integer-valued interoperability property

Description:

The omp_get_interop_int function returns the integer value associated with the property_id interoperability property of the passed interopobject. The ret_code argument is optional, i.e. it can be omitted in C++ and Fortran or used with NULL as argument in C and C++. If successful,ret_code (if present) is set to omp_irc_success.

In GCC, the effect of running this routine in a target region that is not the initial device is unspecified.

C/C++:

Prototype: omp_intptr_t omp_get_interop_int(const omp_interop_t interop, omp_interop_property_t property_id, omp_interop_rc_t *ret_code)

Fortran:

Interface: integer(c_intptr_t) function omp_get_interop_int(interop, property_id, ret_code)
use, intrinsic :: iso_c_binding, only : c_intptr_t
integer(omp_interop_kind), intent(in) :: interop
integer(omp_interop_property_kind) property_id
integer(omp_interop_rc_kind), optional, intent(out) :: ret_code

See also:

omp_get_interop_ptr – Obtain pointer-valued interoperability property, omp_get_interop_str – Obtain string-valued interoperability property, omp_get_interop_rc_desc – Obtain error string to an interop_rc error code,Offload-Target Specifics

Reference:

OpenMP specification v5.1, Section 3.12.2,OpenMP specification v6.0, Section 26.2