Dependency on the Number of Processes
From HPCBugBase
HPCBugBase Menu
Submit feedback
Overview
Index
- Defect types (defect patterns)
- Specific defects (individual defects that belong to a defect type)
- Instances (code examples)
- Articles (various info)
- Templates
- Show all categories
- Show all pages
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. |
Categories: Defect Descriptions | MPI | OpenMP | UPC
