Transformation

Functions

perr_t PDCobj_transform_register(char *func, pdcid_t obj_id, int current_state, int next_state, pdc_obj_transform_t op_type, pdc_data_movement_t when)

Register a function to be invoked at a specified point during execution to transform the supplied data.

Parameters:
  • func – [IN] String containing the [libraryname:]function to be registered. (default library name = “libpdctransforms”)

  • obj_id – [IN] PDC object id containing the input data.

  • current_state – [IN] State/Sequence ID to identify when the transform can take place.

  • next_state – [IN] State/Sequence ID after the transform is complete (should be +1 or -1).

  • op_type – [IN] An enumerated ID specifying an operation type that invokes the transform.

  • when – [IN] An enumerated ID specifying when/where a transform is invoked. (examples for data movement: DATA_OUT, DATA_IN)

Returns:

Non-negative on success/Negative on failure

perr_t PDCbuf_map_transform_register(char *func, void *buf, pdcid_t src_region_id, pdcid_t dest_object_id, pdcid_t dest_region_id, int current_state, int next_state, pdc_data_movement_t when)

Register a function to be invoked as a result of having mapped two regions.

The specfied transform function is invoked as a result of data movement between src and dest.

Parameters:
  • func – [IN] String containing the [libraryname:]function to be registered. (default library name = “libpdctransforms”)

  • src_region_id – [IN] PDC region id of the data mapping source.

  • dest_region_id – [IN] PDC region id of the data mapping destination (target).

  • current_state – [IN] State/Sequence ID to identify when the transform can take place.

  • next_state – [IN] State/Sequence ID after the transform is complete (should be +1 or -1).

  • when – [IN] An enumerated ID specifying when/where a transform is invoked. (examples for data movement: DATA_OUT, DATA_IN)

Returns:

Non-negative on success/Negative on failure

perr_t PDCbuf_io_transform_register (char *func ATTRIBUTE(unused), void *buf ATTRIBUTE(unused), pdcid_t src_region_id ATTRIBUTE(unused), int current_state ATTRIBUTE(unused), int next_state ATTRIBUTE(unused), pdc_data_movement_t when ATTRIBUTE(unused))
perr_t PDC_transform_end()

To end PDC transform.

Returns:

Non-negative on success/Negative on failure

Variables

int pdc_client_mpi_rank_g
int pdc_client_mpi_size_g
static char *default_pdc_transforms_lib = "libpdctransforms.so"