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

📄 sample.w

📁 MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程环境.
💻 W
字号:
#include "mpi.h"{{foreachfn fn_name MPI_Send MPI_Bsend MPI_Isend}}static int {{fn_name}}_nsends_{{fileno}}; {{endforeachfn}}{{forallfn fn_name MPI_Init MPI_Finalize MPI_Wtime}}int {{fn_name}}_ncalls_{{fileno}};{{endforallfn}}{{fnall this_fn_name MPI_Finalize}}  {{vardecl int i}}  printf( "{{this_fn_name}} is being called.\n" );  {{callfn}}  {{this_fn_name}}_ncalls_{{fileno}}++;  printf( "{{i}} unused (%d).\n", {{i}} );{{endfnall}}{{fn fn_name MPI_Send MPI_Bsend MPI_Isend}}  {{vardecl double i}}  {{vardecl int typesize}}  {{callfn}}  MPI_Type_size( {{datatype}}, &{{typesize}} );  MPE_Log_send( {{dest}}, {{tag}}, {{typesize}}*{{count}} );  printf( "first argument is {{0}} and {{i}} went unused (%lf)\n", {{i}} );  {{fn_name}}_nsends_{{fileno}}++;{{endfn}}

⌨️ 快捷键说明

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