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
diff --git a/chap-datatypes/datatypes.tex b/chap-datatypes/datatypes.tex | |
index e37de6a1..ef781d01 100644 | |
--- a/chap-datatypes/datatypes.tex | |
+++ b/chap-datatypes/datatypes.tex | |
@@ -184,7 +184,7 @@ in \sectionref{sec:f90-problems:derived-types}. | |
\subsection{Type Constructors with Explicit Addresses} | |
\label{sec:misc-extent} | |
In Fortran, the functions | |
-\mpifunc{MPI\_TYPE\_CREATE\_HVECTOR},\flushline % force break to keep in margin | |
+\mpifunc{MPI\_TYPE\_CREATE\_HVECTOR}, |
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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <inttypes.h> | |
#include <string.h> | |
#include <mpi.h> | |
void print_buf(const char* msg, const char *buf, int nbytes, | |
int start_from, int stop_at, int vals_per_line) | |
{ |
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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <immintrin.h> | |
#define OMPI_OP_AVX_HAS_AVX512BW_FLAG 0x00000200 | |
#define OMPI_OP_AVX_HAS_AVX512F_FLAG 0x00000100 | |
#define OMPI_OP_AVX_HAS_AVX2_FLAG 0x00000020 | |
#define OMPI_OP_AVX_HAS_AVX_FLAG 0x00000010 | |
#define OMPI_OP_AVX_HAS_SSE4_1_FLAG 0x00000008 | |
#define OMPI_OP_AVX_HAS_SSE3_FLAG 0x00000004 |
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
#include <stdio.h> | |
#include <string.h> | |
#include <time.h> | |
#include <inttypes.h> | |
extern int mca_coll_base_name_to_colltype(const char* name); | |
typedef enum COLLTYPE { | |
ALLGATHER = 0, /* 0 */ | |
ALLGATHERV, /* 1 */ |
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
#include <mpi.h> | |
#include <cuda_runtime.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <iostream> | |
/** | |
* mpic++ -g -Wall -I/opt/cuda/8.0/include cuda_check.cc -o cuda_check -L/opt/cuda/8.0/lib64 -lcudart | |
*/ |
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
/* Compile with gcc -Wall orte_offset.c -o orte_offset */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stddef.h> | |
typedef uint32_t opal_jobid_t; | |
typedef uint32_t opal_vpid_t; | |
typedef struct { | |
opal_jobid_t jobid; | |
opal_vpid_t vpid; |
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
Index: datatypes.tex | |
=================================================================== | |
--- datatypes.tex (revision 1835) | |
+++ datatypes.tex (working copy) | |
@@ -128,6 +128,7 @@ | |
lb(Typemap) & = & \min_j disp_j , \nonumber \\ | |
ub(Typemap) & = & \max_j (disp_j + \mpicode{sizeof}(type_j)) + \epsilon , \mbox{ and} | |
\nonumber \\ extent(Typemap) & = & ub(Typemap) - lb(Typemap). | |
+\label{soft-lb-ub-definition} | |
\end{eqnarray} |