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

📄 mpid_datatype_free.c

📁 刚才是说明 现在是安装程序在 LINUX环境下进行编程的MPICH安装文件
💻 C
字号:
/* -*- Mode: C; c-basic-offset:4 ; -*- *//* *  (C) 2002 by Argonne National Laboratory. *      See COPYRIGHT in top-level directory. */#include <mpiimpl.h>#include <mpid_dataloop.h>#include <stdlib.h>#include <assert.h>#include <limits.h>/* #define MPID_TYPE_ALLOC_DEBUG *//*@  MPID_Datatype_free  Input Parameters:. MPID_Datatype ptr - pointer to MPID datatype structure that is no longer  referenced  Output Parameters:  none  Return Value:  none  This function handles freeing dynamically allocated memory associated with  the datatype.  In the process MPID_Datatype_free_contents() is also called,  which handles decrementing reference counts to constituent types (in  addition to freeing the space used for contents information).  MPID_Datatype_free_contents() will call MPID_Datatype_free() on constituent  types that are no longer referenced as well.  @*/void MPID_Datatype_free(MPID_Datatype *ptr){#ifdef MPID_TYPE_ALLOC_DEBUG    MPIU_dbg_printf("type %x freed.\n", ptr->handle);#endif    MPID_Datatype_free_contents(ptr);    MPID_Dataloop_free(ptr->loopinfo);    MPIU_Handle_obj_free(&MPID_Datatype_mem, ptr);}

⌨️ 快捷键说明

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