File: tool.c

package info (click to toggle)
prrte 3.0.13-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 9,128 kB
  • sloc: ansic: 80,431; sh: 4,289; perl: 3,195; makefile: 1,829; lex: 352; python: 239
file content (23 lines) | stat: -rw-r--r-- 548 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <pmix_tool.h>
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char **argv)
{
    pmix_proc_t proc;
    pmix_status_t rc = PMIX_ERROR;

    rc = PMIx_tool_init(&proc, NULL, 0);
    if (rc != PMIX_SUCCESS) {
        fprintf(stderr, "PMIx_tool_init failed: %s\n", PMIx_Error_string(rc));
        return EXIT_FAILURE;
    }

    rc = PMIx_tool_finalize();
    if (rc != PMIX_SUCCESS) {
        fprintf(stderr, "PMIx_tool_finalize failed: %s\n", PMIx_Error_string(rc));
        return EXIT_FAILURE;
    }

    return EXIT_SUCCESS;
}