OpenFAM Reference Implementation

openfam::fam::fam_context_open

Returns a user specific fam_context object.

Synopsis

fam_ctx * fam_context_open(void);

Description

This method call returns a user specific fam_ctx object. Non-blocking calls from the context are grouped together for completion, and a fam_quiet invoked from it only enforces completion of all operations invoked from that context. Applications can use both fam_ctx object and fam objects; However, OpenFAM APIs invoked from these objects are tracked separately, and unlike the fam object, context objects only support the data path, atomic and few ordering APIs in OpenFAM.

Input Arguments

None.

Return Values

fam_ctx* returns a user specific fam_ctx object.Throws Fam_Exception on error.

Fam Error Numbers

ErrorDescription
FAM_ERR_NOPERMCaller does not have access rights
FAM_ERR_LIBFABRICLibfabric error occurred.
FAM_ERR_RPCCommunication error from grpc layer.
FAM_ERR_RPC_CLIENT_NOTFOUNDRPC service not available.
FAM_ERR_TIMEOUTNumber of libfabric retry count reached.

Notes

An application can invoke data path, atomic and few ordering APIs using the fam_ctx object returned by fam_context_open API.

List of APIs supported by context objects are as follows: