Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

c

What is MPI_Comm_delete_attr_function?

Adnan Abbas

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

MPI library

MPI, short for Message Passing Interface, is a library that allows you to write parallel programs in Fortran77 or C. The library uses common operating system services to exchange information among the parallel processes it creates.

Parallel processing

MPI_Comm_delete_attr_function

This method is a callback function for caching on communicators. It is invoked when a communicator is deleted by MPI_COMM_FREE or MPI_COMM_DELETE_ATTR functions.

Syntax

int MPI_Comm_delete_attr_function( MPI_Comm comm, int comm_keyval, void *attribute_val,void *extra_state );

Parameters

The copy callback function is called for each key value in oldcomm in an arbitrary order. Each call to the copy callback is made with a key value and its associated attribute.

  • comm is the communicator object describing a group of processes. In many applications, various processes work together, and a communicator describes the processes that a routine initiates.

  • comm_keyval is the key value returned by the MPI_Comm_create_keyval method.

  • attribute_val_in is the pointer to attribute value.

  • extra_state is an optional argument to duplicate the extra state.

Return value

If unsuccessful, the function returns an error. The error, by default, aborts the MPI job.

In case of success, it returns MPI_SUCCESS- the value returned upon successful termination of any MPI routine.

RELATED TAGS

c

CONTRIBUTOR

Adnan Abbas
Copyright ©2022 Educative, Inc. All rights reserved

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Keep Exploring