OpenFAM Reference Implementation

openfam::fam::fam_destroy_region

Destroy an existing region in FAM.

Synopsis

void fam_destroy_region(Fam_Region_Descriptor *descriptor);

Description

This destroys a region in FAM, and asynchronously frees space allocated to the region.

Input Arguments

NameDescription
DescriptorDescriptor of the region to be destroyed.

 

Return Values

None. Throws an exception on error.

Exceptions

ExceptionDescription
FAM_ERR_NOPERMCaller does not have access rights
FAM_ERR_NOTFOUNDthe region name is not present in FAM
FAM_ERR_GRPCthere is a communication error with memory server
FAM_ERR_RPC_CLIENT_NOTFOUNDMemory server initialization failure

Notes

If a region is destroyed, all data items in it are also destroyed. If descriptors to the region or the contained data items are subsequently used, the behavior of the library is implementation dependent. Note that this call will trigger a delayed free operation, to permit other PEs currently using the region to finish.

Example

See fam_create_region