1234567891011121314151617181920212223242526272829303132333435363738 |
- #include <starpu_mpi.h>
- #include "helper.h"
- #include <inttypes.h>
- int main(int argc STARPU_ATTRIBUTE_UNUSED, char *argv[] STARPU_ATTRIBUTE_UNUSED)
- {
- int flag;
- int64_t *value;
- starpu_mpi_comm_get_attr(MPI_COMM_WORLD, 42, NULL, &flag);
- STARPU_ASSERT_MSG(flag == 0, "starpu_mpi_comm_get_attr was called with invalid argument\n");
- starpu_mpi_comm_get_attr(MPI_COMM_WORLD, STARPU_MPI_TAG_UB, &value, &flag);
- STARPU_ASSERT_MSG(flag == 1, "starpu_mpi_comm_get_attr was called with valid argument\n");
- FPRINTF(stderr, "Value: %"PRIi64"d\n", *value);
- return 0;
- }
|