Loading ofdock_taskpar_alt/device/Krnl_GA.cl +10 −9 Original line number Diff line number Diff line Loading @@ -44,7 +44,7 @@ channel char2 chan_Conf2Intrae_actmode; channel char chan_Conf2Intrae_actmode; // Send energy values from InterE & IntraE to genotype-senders (IC, GG, LSs) #if 0 #if 1 channel float chan_Intere2StoreIC_intere __attribute__((depth(2))); channel float chan_Intere2StoreGG_intere __attribute__((depth(2))); #endif Loading @@ -59,7 +59,7 @@ channel float chan_Intere2StoreLS_LS7_intere __attribute__((depth(2))); channel float chan_Intere2StoreLS_LS8_intere __attribute__((depth(2))); channel float chan_Intere2StoreLS_LS9_intere __attribute__((depth(2))); #endif #if 1 #if 0 channel float chan_Intere2StoreIC_intere __attribute__((depth(MAX_POPSIZE))); channel float chan_Intere2StoreGG_intere __attribute__((depth(MAX_POPSIZE))); #endif Loading @@ -75,7 +75,7 @@ channel float chan_Intere2StoreLS_LS8_intere __attribute__((depth(MAX_POPSIZE)) channel float chan_Intere2StoreLS_LS9_intere __attribute__((depth(MAX_POPSIZE))); #endif #if 0 #if 1 channel float chan_Intrae2StoreIC_intrae __attribute__((depth(2))); channel float chan_Intrae2StoreGG_intrae __attribute__((depth(2))); #endif Loading @@ -90,8 +90,7 @@ channel float chan_Intrae2StoreLS_LS7_intrae __attribute__((depth(2))); channel float chan_Intrae2StoreLS_LS8_intrae __attribute__((depth(2))); channel float chan_Intrae2StoreLS_LS9_intrae __attribute__((depth(2))); #endif #if 1 #if 0 channel float chan_Intrae2StoreIC_intrae __attribute__((depth(MAX_POPSIZE))); channel float chan_Intrae2StoreGG_intrae __attribute__((depth(MAX_POPSIZE))); #endif Loading Loading @@ -385,6 +384,7 @@ void Krnl_GA(__global float* restrict GlobPopulationCurrent, write_channel_altera(chan_IC2Conf_genotype, LocalPopCurr[pop_cnt][pipe_cnt & MASK_GENOTYPE]); #endif #if 1 float tmp_ic; #if defined(SINGLE_COPY_POP_ENE) tmp_ic = GlobPopCurr[pop_cnt*ACTUAL_GENOTYPE_LENGTH + pipe_cnt]; Loading @@ -394,6 +394,7 @@ void Krnl_GA(__global float* restrict GlobPopulationCurrent, LocalPopCurr[pop_cnt][pipe_cnt & MASK_GENOTYPE] = tmp_ic; write_channel_altera(chan_IC2Conf_genotype, tmp_ic); #endif } #if defined (DEBUG_KRNL_IC) Loading @@ -401,7 +402,7 @@ void Krnl_GA(__global float* restrict GlobPopulationCurrent, #endif // Read energy #if 0 #if 1 float energyIA_IC_rx; float energyIE_IC_rx; bool intra_valid = false; Loading @@ -416,7 +417,7 @@ void Krnl_GA(__global float* restrict GlobPopulationCurrent, } #endif #if 1 #if 0 mem_fence(CLK_CHANNEL_MEM_FENCE); float energyIA_IC_rx = read_channel_altera(chan_Intrae2StoreIC_intrae); mem_fence(CLK_CHANNEL_MEM_FENCE); Loading Loading @@ -644,7 +645,7 @@ void Krnl_GA(__global float* restrict GlobPopulationCurrent, #endif // Read energy #if 0 #if 1 float energyIA_GG_rx; float energyIE_GG_rx; bool intra_valid = false; Loading @@ -659,7 +660,7 @@ void Krnl_GA(__global float* restrict GlobPopulationCurrent, } #endif #if 1 #if 0 mem_fence(CLK_CHANNEL_MEM_FENCE); float energyIA_GG_rx = read_channel_altera(chan_Intrae2StoreGG_intrae); mem_fence(CLK_CHANNEL_MEM_FENCE); Loading ofdock_taskpar_alt/device/Krnl_LS.cl +1 −1 Original line number Diff line number Diff line Loading @@ -209,8 +209,8 @@ while(valid) { #if 0 mem_fence(CLK_CHANNEL_MEM_FENCE); float energyIA_LS_rx = read_channel_altera(chan_Intrae2StoreLS_LS1_intrae); float energyIE_LS_rx = read_channel_altera(chan_Intere2StoreLS_LS1_intere); mem_fence(CLK_CHANNEL_MEM_FENCE); float energyIE_LS_rx = read_channel_altera(chan_Intere2StoreLS_LS1_intere); #endif float candidate_energy = energyIA_LS_rx + energyIE_LS_rx; Loading ofdock_taskpar_alt/device/Krnl_LS2.cl +1 −1 Original line number Diff line number Diff line Loading @@ -212,8 +212,8 @@ while(valid) { #if 0 mem_fence(CLK_CHANNEL_MEM_FENCE); float energyIA_LS_rx = read_channel_altera(chan_Intrae2StoreLS_LS2_intrae); float energyIE_LS_rx = read_channel_altera(chan_Intere2StoreLS_LS2_intere); mem_fence(CLK_CHANNEL_MEM_FENCE); float energyIE_LS_rx = read_channel_altera(chan_Intere2StoreLS_LS2_intere); #endif float candidate_energy = energyIA_LS_rx + energyIE_LS_rx; Loading ofdock_taskpar_alt/device/Krnl_LS3.cl +1 −1 Original line number Diff line number Diff line Loading @@ -212,8 +212,8 @@ while(valid) { #if 0 mem_fence(CLK_CHANNEL_MEM_FENCE); float energyIA_LS_rx = read_channel_altera(chan_Intrae2StoreLS_LS3_intrae); float energyIE_LS_rx = read_channel_altera(chan_Intere2StoreLS_LS3_intere); mem_fence(CLK_CHANNEL_MEM_FENCE); float energyIE_LS_rx = read_channel_altera(chan_Intere2StoreLS_LS3_intere); #endif float candidate_energy = energyIA_LS_rx + energyIE_LS_rx; Loading ofdock_taskpar_alt/device/Krnl_LS4.cl +1 −1 Original line number Diff line number Diff line Loading @@ -212,8 +212,8 @@ while(valid) { #if 0 mem_fence(CLK_CHANNEL_MEM_FENCE); float energyIA_LS_rx = read_channel_altera(chan_Intrae2StoreLS_LS4_intrae); float energyIE_LS_rx = read_channel_altera(chan_Intere2StoreLS_LS4_intere); mem_fence(CLK_CHANNEL_MEM_FENCE); float energyIE_LS_rx = read_channel_altera(chan_Intere2StoreLS_LS4_intere); #endif float candidate_energy = energyIA_LS_rx + energyIE_LS_rx; Loading Loading
ofdock_taskpar_alt/device/Krnl_GA.cl +10 −9 Original line number Diff line number Diff line Loading @@ -44,7 +44,7 @@ channel char2 chan_Conf2Intrae_actmode; channel char chan_Conf2Intrae_actmode; // Send energy values from InterE & IntraE to genotype-senders (IC, GG, LSs) #if 0 #if 1 channel float chan_Intere2StoreIC_intere __attribute__((depth(2))); channel float chan_Intere2StoreGG_intere __attribute__((depth(2))); #endif Loading @@ -59,7 +59,7 @@ channel float chan_Intere2StoreLS_LS7_intere __attribute__((depth(2))); channel float chan_Intere2StoreLS_LS8_intere __attribute__((depth(2))); channel float chan_Intere2StoreLS_LS9_intere __attribute__((depth(2))); #endif #if 1 #if 0 channel float chan_Intere2StoreIC_intere __attribute__((depth(MAX_POPSIZE))); channel float chan_Intere2StoreGG_intere __attribute__((depth(MAX_POPSIZE))); #endif Loading @@ -75,7 +75,7 @@ channel float chan_Intere2StoreLS_LS8_intere __attribute__((depth(MAX_POPSIZE)) channel float chan_Intere2StoreLS_LS9_intere __attribute__((depth(MAX_POPSIZE))); #endif #if 0 #if 1 channel float chan_Intrae2StoreIC_intrae __attribute__((depth(2))); channel float chan_Intrae2StoreGG_intrae __attribute__((depth(2))); #endif Loading @@ -90,8 +90,7 @@ channel float chan_Intrae2StoreLS_LS7_intrae __attribute__((depth(2))); channel float chan_Intrae2StoreLS_LS8_intrae __attribute__((depth(2))); channel float chan_Intrae2StoreLS_LS9_intrae __attribute__((depth(2))); #endif #if 1 #if 0 channel float chan_Intrae2StoreIC_intrae __attribute__((depth(MAX_POPSIZE))); channel float chan_Intrae2StoreGG_intrae __attribute__((depth(MAX_POPSIZE))); #endif Loading Loading @@ -385,6 +384,7 @@ void Krnl_GA(__global float* restrict GlobPopulationCurrent, write_channel_altera(chan_IC2Conf_genotype, LocalPopCurr[pop_cnt][pipe_cnt & MASK_GENOTYPE]); #endif #if 1 float tmp_ic; #if defined(SINGLE_COPY_POP_ENE) tmp_ic = GlobPopCurr[pop_cnt*ACTUAL_GENOTYPE_LENGTH + pipe_cnt]; Loading @@ -394,6 +394,7 @@ void Krnl_GA(__global float* restrict GlobPopulationCurrent, LocalPopCurr[pop_cnt][pipe_cnt & MASK_GENOTYPE] = tmp_ic; write_channel_altera(chan_IC2Conf_genotype, tmp_ic); #endif } #if defined (DEBUG_KRNL_IC) Loading @@ -401,7 +402,7 @@ void Krnl_GA(__global float* restrict GlobPopulationCurrent, #endif // Read energy #if 0 #if 1 float energyIA_IC_rx; float energyIE_IC_rx; bool intra_valid = false; Loading @@ -416,7 +417,7 @@ void Krnl_GA(__global float* restrict GlobPopulationCurrent, } #endif #if 1 #if 0 mem_fence(CLK_CHANNEL_MEM_FENCE); float energyIA_IC_rx = read_channel_altera(chan_Intrae2StoreIC_intrae); mem_fence(CLK_CHANNEL_MEM_FENCE); Loading Loading @@ -644,7 +645,7 @@ void Krnl_GA(__global float* restrict GlobPopulationCurrent, #endif // Read energy #if 0 #if 1 float energyIA_GG_rx; float energyIE_GG_rx; bool intra_valid = false; Loading @@ -659,7 +660,7 @@ void Krnl_GA(__global float* restrict GlobPopulationCurrent, } #endif #if 1 #if 0 mem_fence(CLK_CHANNEL_MEM_FENCE); float energyIA_GG_rx = read_channel_altera(chan_Intrae2StoreGG_intrae); mem_fence(CLK_CHANNEL_MEM_FENCE); Loading
ofdock_taskpar_alt/device/Krnl_LS.cl +1 −1 Original line number Diff line number Diff line Loading @@ -209,8 +209,8 @@ while(valid) { #if 0 mem_fence(CLK_CHANNEL_MEM_FENCE); float energyIA_LS_rx = read_channel_altera(chan_Intrae2StoreLS_LS1_intrae); float energyIE_LS_rx = read_channel_altera(chan_Intere2StoreLS_LS1_intere); mem_fence(CLK_CHANNEL_MEM_FENCE); float energyIE_LS_rx = read_channel_altera(chan_Intere2StoreLS_LS1_intere); #endif float candidate_energy = energyIA_LS_rx + energyIE_LS_rx; Loading
ofdock_taskpar_alt/device/Krnl_LS2.cl +1 −1 Original line number Diff line number Diff line Loading @@ -212,8 +212,8 @@ while(valid) { #if 0 mem_fence(CLK_CHANNEL_MEM_FENCE); float energyIA_LS_rx = read_channel_altera(chan_Intrae2StoreLS_LS2_intrae); float energyIE_LS_rx = read_channel_altera(chan_Intere2StoreLS_LS2_intere); mem_fence(CLK_CHANNEL_MEM_FENCE); float energyIE_LS_rx = read_channel_altera(chan_Intere2StoreLS_LS2_intere); #endif float candidate_energy = energyIA_LS_rx + energyIE_LS_rx; Loading
ofdock_taskpar_alt/device/Krnl_LS3.cl +1 −1 Original line number Diff line number Diff line Loading @@ -212,8 +212,8 @@ while(valid) { #if 0 mem_fence(CLK_CHANNEL_MEM_FENCE); float energyIA_LS_rx = read_channel_altera(chan_Intrae2StoreLS_LS3_intrae); float energyIE_LS_rx = read_channel_altera(chan_Intere2StoreLS_LS3_intere); mem_fence(CLK_CHANNEL_MEM_FENCE); float energyIE_LS_rx = read_channel_altera(chan_Intere2StoreLS_LS3_intere); #endif float candidate_energy = energyIA_LS_rx + energyIE_LS_rx; Loading
ofdock_taskpar_alt/device/Krnl_LS4.cl +1 −1 Original line number Diff line number Diff line Loading @@ -212,8 +212,8 @@ while(valid) { #if 0 mem_fence(CLK_CHANNEL_MEM_FENCE); float energyIA_LS_rx = read_channel_altera(chan_Intrae2StoreLS_LS4_intrae); float energyIE_LS_rx = read_channel_altera(chan_Intere2StoreLS_LS4_intere); mem_fence(CLK_CHANNEL_MEM_FENCE); float energyIE_LS_rx = read_channel_altera(chan_Intere2StoreLS_LS4_intere); #endif float candidate_energy = energyIA_LS_rx + energyIE_LS_rx; Loading