clog_coll.java
来自「MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程」· Java 代码 · 共 40 行
JAVA
40 行
import java.io.*;import java.awt.*;import java.util.*;import com.sun.java.swing.*;class CLOG_COLL { static final int Size = (6 * 4); int etype; // type of collective event int root; // root of collective op int comm; // communicator int size; // length in bytes int srcloc; // id of source location int pad; void read (DataInputStream in) { try { etype = in.readInt (); root = in.readInt (); comm = in.readInt (); size = in.readInt (); srcloc = in.readInt (); pad = in.readInt (); } catch (IOException x) { System.out.println ("IOException while reading CLOG_COLL."); return; } } public static int getSize () {return Size;} public String toString () { return ("CLOG_COLL [etype=" + etype + ", root=" + root + ", comm=" + comm + ", size=" + size + ", srcloc=" + srcloc + ", pad=" + pad + ", Size(in Bytes)=" + Size + "]"); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?