⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mpid_dataloop.h

📁 刚才是说明 现在是安装程序在 LINUX环境下进行编程的MPICH安装文件
💻 H
字号:
/* -*- Mode: C; c-basic-offset:4 ; -*- *//* *  (C) 2001 by Argonne National Laboratory. *      See COPYRIGHT in top-level directory. */#ifndef MPID_DATALOOP_H#define MPID_DATALOOP_H#include "mpi.h"/* Note: this is where you define the prefix that will be prepended on * all externally visible generic dataloop and segment functions. */#define PREPEND_PREFIX(fn) MPID_ ## fn/* These following dataloop-specific types will be used throughout the DLOOP * instance: */#define DLOOP_Offset     MPI_Aint#define DLOOP_Count      int#define DLOOP_Handle     MPI_Datatype#define DLOOP_Buffer     void *#define DLOOP_VECTOR     MPID_IOV#define DLOOP_VECTOR_LEN MPID_IOV_LEN#define DLOOP_VECTOR_BUF MPID_IOV_BUF/* The following accessor functions must also be defined: * * DLOOP_Handle_extent()    * * DLOOP_Handle_size()      * * DLOOP_Handle_loopptr() * DLOOP_Handle_loopdepth() * * DLOOP_Handle_hasloop() * DLOOP_Handle_true_lb() * DLOOP_Handle_mpi1_lb() * DLOOP_Handle_mpi1_ub() * * Q: Do we really need ALL of these? *'d ones we need for sure. *//* USE THE NOTATION THAT BILL USED IN MPIIMPL.H AND MAKE THESE MACROS *//* NOTE: put get size into mpiimpl.h; the others go here until such time * as we see that we need them elsewhere. */#define DLOOP_Handle_get_loopsize_macro  MPID_Datatype_get_loopsize#define DLOOP_Handle_get_loopdepth_macro(__handle,__depth) \    MPID_Datatype_get_loopdepth_macro(__handle,__depth)#define DLOOP_Handle_get_loopptr_macro(__handle,__lptr) \    MPID_Datatype_get_loopptr_macro(__handle,__lptr)#define DLOOP_Handle_get_size_macro(__handle,__size) \    MPID_Datatype_get_size_macro(__handle,__size)#define DLOOP_Handle_get_extent_macro(__handle,__extent) \    MPID_Datatype_get_extent_macro(__handle,__extent)#define DLOOP_Handle_hasloop_macro(__handle)                           \    ((HANDLE_GET_KIND(__handle) == HANDLE_KIND_BUILTIN) ? 0 : 1)/* allocate and free functions must also be defined. */#define DLOOP_Malloc MPIU_Malloc#define DLOOP_Free   MPIU_Free/* debugging output function */#define DLOOP_dbg_printf MPIU_dbg_printf/* Include gen_dataloop.h at the end to get the rest of the prototypes * and defines, in terms of the prefixes and types above. */#include <gen_dataloop.h>/* NOTE: WE MAY WANT TO UNDEF EVERYTHING HERE FOR NON-INTERNAL COMPILATIONS */#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -