This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Josh Hursey (IBM) | |
* Breakdown the size of the pmix_value_t structure as part of the PMIx ABI | |
* investigation. | |
*/ | |
#include <stdio.h> | |
#include <pmix.h> | |
#define XLIST(xmacro) \ | |
xmacro("flag", flag) \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Chapter: Examples | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
\chapter{Examples} | |
\label{chap:examples} | |
This chapter contains various code examples that \ac{PMIx} users may find helpful. | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20:47:35 ======================= | |
20:47:35 Running hostname: prun -n 1 hostname | |
20:47:35 ======================= | |
20:47:35 --------------------- Execution (hostname): 1 | |
20:47:36 aad49dba02fe | |
20:47:36 --------------------- Execution (hostname): 2 | |
20:47:36 aad49dba02fe | |
20:47:36 --------------------- Execution (hostname): 3 | |
20:47:36 aad49dba02fe | |
20:47:36 --------------------- Execution (hostname): 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[pmixer@46bdecbdff4f crossversion]$ ./xversion.py --basedir=$HOME/scratch --with-hwloc=$HWLOC_INSTALL_PATH --with-hwloc1=$HWLOC1_INSTALL_PATH --with-libevent=$LIBEVENT_INSTALL_PATH -b | |
====================================================================== | |
Server: master -> Client: master | |
============ PMIx Run : Run simptest Client | |
Client : /home/pmixer/scratch/pmix-master/test/simple/simpclient | |
Server : /home/pmixer/scratch/pmix-master/test/simple | |
Command: ./simptest -n 2 -e /home/pmixer/scratch/pmix-master/test/simple/simpclient | |
Success Return Code: 0 | |
Testing version 4.0.0a1 | |
[46bdecbdff4f:06011] SERVER: ERRHANDLER REGISTRATION CALLBACK CALLED WITH STATUS 0, ref=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Simple PMIx Init/Finalize with Hostname | |
*/ | |
#define _GNU_SOURCE | |
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <time.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Test program for memory consistency in a thread shifting design | |
* | |
* Compile: | |
* gcc -O0 -g -lpthread -I/path-to/hwloc/include/ -L/path-to/hwloc/lib -lhwloc cache-test.c -o cache-test | |
* | |
* Run: | |
* ./cache-test ITERATIONS [MODE] | |
* ./cache-test 9000000 3 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright (c) 2016 IBM Corporation. All rights reserved. | |
* | |
* MPI_Ibcast, MPI_Iallgather, MPI_Iallgatherv non-uniform types test case | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <mpi.h> |