2008年4月13日日志
基于c与MPI并行程序初步
第一片儿小代码:
#include "mpi.h"
#include
#include
void main(argc,argv)
int argc;
char *argv[];
{
int myid, numprocs;
int namelen;
char processor_name[MPI_MAX_PROCESSOR_NAME];
MPI_Init(&argc,&argv);
MPI_Comm_rank(MPI_COMM_WORLD,&myid);
MPI_Comm_size(MPI_COMM_WORLD,&numprocs);
MPI_Get_processor_name(processor_name,&namelen);
fprintf(stderr,"Hello World! Process %d of %d on %s\n",
myid, numprocs, processor_name);
MPI_Finalize();
}
MPI程序的框架结构
python代码覆盖测试
Code coverage应该是使用TDD(测试驱动开发)团队的必备管理和分析工具,可以用来检测测试代码的代码覆盖率。
代码覆盖率主要包括:
Statement Coverage - Has each line of the source code been executed and tested?
Condition Coverage - Has each evaluation point (such as a true/false decision) been executed and tested?
Path Coverage - Has every possible route through a given part of the code been executed and tested?
Entry/Exit Coverage - Has every possible call and return […]
