version 1.1 | version 1.2 |
---|
| |
//-------------------------------------------------------- | //-------------------------------------------------------- |
// Build a list of PEs to avoid | // Build a list of PEs to avoid |
std::vector<int> pesToAvoid; | std::vector<int> pesToAvoid; |
| #if 0 |
// Avoid other GPUs' master PEs | // Avoid other GPUs' master PEs |
for (int i=0;i < deviceCUDA->getDeviceCount();i++) { | for (int i=0;i < deviceCUDA->getDeviceCount();i++) { |
int pe = deviceCUDA->getMasterPeForDeviceID(i); | int pe = deviceCUDA->getMasterPeForDeviceID(i); |
| |
int pe = pesToAvoid[i]; | int pe = pesToAvoid[i]; |
peProxyPatchCounter[CkRankOf(pe)] = (1 << 20); | peProxyPatchCounter[CkRankOf(pe)] = (1 << 20); |
} | } |
| #endif |
// Avoid master Pe somewhat | // Avoid master Pe somewhat |
peProxyPatchCounter[CkRankOf(masterPe)] = patches.size(); | peProxyPatchCounter[CkRankOf(masterPe)] = 2; // patches.size(); |
//-------------------------------------------------------- | //-------------------------------------------------------- |
for (int i=0;i < patches.size();i++) { | for (int i=0;i < patches.size();i++) { |
PatchID pid = patches[i].patchID; | PatchID pid = patches[i].patchID; |