Commit 78ffe363 authored by Leonardo Solis's avatar Leonardo Solis
Browse files

enable back block chann in GA

parent a2b94a73
......@@ -371,7 +371,7 @@ void Krnl_GA(__global float* restrict GlobPopulationCurrent,
#endif
// Read energy
/*
///*
float energyIA_IC_rx;
float energyIE_IC_rx;
bool intra_valid = false;
......@@ -384,11 +384,11 @@ void Krnl_GA(__global float* restrict GlobPopulationCurrent,
energyIE_IC_rx = read_channel_nb_altera(chan_Intere2StoreIC_intere, &inter_valid);
}
}
*/
///*
//*/
/*
float energyIA_IC_rx = read_channel_altera(chan_Intrae2StoreIC_intrae);
float energyIE_IC_rx = read_channel_altera(chan_Intere2StoreIC_intere);
//*/
*/
LocalEneCurr[pop_cnt] = energyIA_IC_rx + energyIE_IC_rx;
#if defined (DEBUG_KRNL_IC)
......@@ -611,7 +611,7 @@ void Krnl_GA(__global float* restrict GlobPopulationCurrent,
#endif
// Read energy
/*
///*
float energyIA_GG_rx;
float energyIE_GG_rx;
bool intra_valid = false;
......@@ -624,11 +624,11 @@ void Krnl_GA(__global float* restrict GlobPopulationCurrent,
energyIE_GG_rx = read_channel_nb_altera(chan_Intere2StoreGG_intere, &inter_valid);
}
}
*/
///*
//*/
/*
float energyIA_GG_rx = read_channel_altera(chan_Intrae2StoreGG_intrae);
float energyIE_GG_rx = read_channel_altera(chan_Intere2StoreGG_intere);
//*/
*/
LocalEneNext[new_pop_cnt] = energyIA_GG_rx + energyIE_GG_rx;
#if defined (DEBUG_KRNL_GG)
......
  • Correction in title: Enabling back non-blocking channels.

    This design runs slower than LGA version but it is stable, e.g. doesn't hang anymore, and produces more-or-less expected results.

    I seems that blocking channels (which replaced non-blocking ones in the previous commit a2b94a73) lacked of proper synchronization.

    Edited by Leonardo Solis
  • mentioned in commit 01f5ab95

    Toggle commit list
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment