Skip to content

Instantly share code, notes, and snippets.

View jsquyres's full-sized avatar

Jeff Squyres jsquyres

View GitHub Profile
@jsquyres
jsquyres / ivy04.xml
Created April 21, 2015 12:27
Sample hwloc XML showing lots of PCI VFs
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topology SYSTEM "hwloc.dtd">
<topology>
<object type="Machine" os_index="0" cpuset="0x000fffff" complete_cpuset="0x000fffff" allowed_cpuset="0x000fffff" nodeset="0x00000003" complete_nodeset="0x00000003" allowed_nodeset="0x00000003">
<page_type size="4096" count="0"/>
<page_type size="2097152" count="0"/>
<info name="DMIProductName" value="UCSC-C240-M3S"/>
<info name="DMIProductVersion" value="A"/>
<info name="DMIBoardVendor" value="Cisco Systems Inc"/>
<info name="DMIBoardName" value="UCSC-C240-M3S"/>
@jsquyres
jsquyres / get_file_size.f90
Created April 30, 2015 16:34
Fortran Bindings for MPI_File_get_size et al Return 31-bit Values (open-mpi/ompi#91)
program get_file_size
implicit none
include 'mpif.h'
integer :: error
integer :: rank
integer :: fh
integer (kind=MPI_OFFSET_KIND) :: file_size
character (len=*), parameter :: file_name = 'delme.dat'
@jsquyres
jsquyres / mpirun.output
Last active August 29, 2015 14:21
Verbose output from open-ompi/ompi#592 for @rhc54
[7:35] savbu-usnic-a:~/mpi
$ mpirun --mca oob_tcp_keepalive_time 10 --mca errmgr_base_verbose 10 --mca oob_base_verbose 100 --host ivy01,ivy02 --mca btl usnic,sm,self mpi_sleep
[savbu-usnic-a:25277] mca: base: components_register: registering framework errmgr components
[savbu-usnic-a:25277] mca: base: components_register: found loaded component default_orted
[savbu-usnic-a:25277] mca: base: components_register: component default_orted register function successful
[savbu-usnic-a:25277] mca: base: components_register: found loaded component default_tool
[savbu-usnic-a:25277] mca: base: components_register: component default_tool register function successful
[savbu-usnic-a:25277] mca: base: components_register: found loaded component default_app
[savbu-usnic-a:25277] mca: base: components_register: component default_app register function successful
[savbu-usnic-a:25277] mca: base: components_register: found loaded component default_hnp
@jsquyres
jsquyres / diff-vs-portland-document.diff
Created June 1, 2015 19:03
MPI 3.1 Final Release candidate
Index: chap-io/io-2.tex
===================================================================
--- chap-io/io-2.tex (revision 2030)
+++ chap-io/io-2.tex (working copy)
@@ -2,6 +2,7 @@
% Version of Wed Jun 18 20:15:00 PDT 1997
\chapter{I/O}
+\mpitermtitleindex{IO@I/O}
\label{chap:io-2}
@jsquyres
jsquyres / bill-magic.diff
Created June 1, 2015 19:04
Changes for MPI-3.1 RMA chapter
Index: one-side-2.tex
===================================================================
--- one-side-2.tex (revision 1707)
+++ one-side-2.tex (working copy)
@@ -13,12 +13,15 @@
\chapter{One-Sided Communications}
+\mpitermtitleindexsubmain{one-sided}{communication}
\label{chap:one-side-2}
@jsquyres
jsquyres / config.log
Created July 10, 2015 13:38
Open MPI XRC configury update causes build fails on RHEL 6.5
This file has been truncated, but you can view the full file.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Open MPI Run Time Environment configure gitclone, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/home/jsquyres/bogus
## --------- ##
## Platform. ##
@jsquyres
jsquyres / mpi-onesided-test.cpp
Created October 21, 2015 14:03
Test program from Sebastian Rettenberger <rettenbs@in.tum.de>
#include <mpi.h>
#include <unistd.h>
#include <iostream>
int main(int argc, char* argv[]) {
int provided;
MPI_Init(&argc, &argv);
int rank;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
@jsquyres
jsquyres / backwards-compat-1.c
Last active November 15, 2015 12:55
2015-12 December MPI Forum slides: sessions
void legacy_library_init(void) {
MPI_Initialized(&init);
MPI_Finalized(&finalized);
if (init && !finalized) {
MPI_Comm_dup(MPI_COMM_WORLD, &comm);
// Do MPI things
}
}
@jsquyres
jsquyres / mpirun-of-failed-np40-run.txt
Last active December 13, 2015 15:47
mpirun of a failed -np 40 run, with lots of verbosity: see https://github.com/open-mpi/ompi/issues/1215
This file has been truncated, but you can view the full file.
$ mpirun --mca ess_base_verbose 100 --mca grpcomm_base_verbose 100 --mca pmix_base_verbose 100 --mca pml ob1 --mca btl tcp,vader,self --hostfile hosts -np 40 ring_c
[franco.cisco.com:16980] mca: base: components_register: registering framework ess components
[franco.cisco.com:16980] mca: base: components_register: found loaded component env
[franco.cisco.com:16980] mca: base: components_register: component env has no register or open function
[franco.cisco.com:16980] mca: base: components_register: found loaded component hnp
[franco.cisco.com:16980] mca: base: components_register: component hnp has no register or open function
[franco.cisco.com:16980] mca: base: components_register: found loaded component pmi
[franco.cisco.com:16980] mca: base: components_register: component pmi has no register or open function
[franco.cisco.com:16980] mca: base: components_register: found loaded component singleton
[franco.cisco.com:16980] mca: base: components_register: component singleton register function successful
[pacini061.arcetri.cisco.com:13809] [[10049,0],47] LOOPING BRKS
malloc debug: Request for 139764985974018 bytes failed (rml_oob_send.c, 175)
[pacini061:13809] *** Process received signal ***
[pacini061:13809] Signal: Segmentation fault (11)
[pacini061:13809] Signal code: (128)
[pacini061:13809] Failing at address: (nil)
[pacini061:13809] [ 0] /usr/lib64/libpthread.so.0(+0xf100)[0x7f1d95ced100]
[pacini061:13809] [ 1] /usr/lib64/libc.so.6(+0x1496d6)[0x7f1d95a666d6]
[pacini061:13809] [ 2] /home/jsquyres/bogus/lib/openmpi/mca_rml_oob.so(+0x36ce)[0x7f1d925736ce]
[pacini061:13809] [ 3] /home/jsquyres/bogus/lib/libopen-pal.so.0(opal_libevent2022_event_base_loop+0x8fc)[0x7f1d96cbe1ec]