Dependency on the Number of Processes

From HPCBugBase

Jump to: navigation, search

HPCBugBase Menu

Submit feedback


Overview


Index


Index by Languages

Contents

[edit] Fault Description

An implementation that only works with specific number of processes is not portable.

int rows,cols;
if(size==1) {
  cols=1;
  rows=1;
}
if(size==2) {
  cols=2;
  rows=1;
}
if(size==4) {
  cols=2;
  rows=2;
}
if(size==8) {
  cols=4;
  rows=2;
}
if(size==16) {
  cols=4;
  rows=4;
}

[edit] Statistics (Frequency)

[edit] Other Findings and Contexts

No pages link to $1.

Personal tools