diff --git a/lib/interface_quda.cpp b/lib/interface_quda.cpp index bfa8fae5e4..93cc334e0f 100644 --- a/lib/interface_quda.cpp +++ b/lib/interface_quda.cpp @@ -5438,7 +5438,8 @@ void performAdjGFlowSafe(void *h_out, void *h_in, QudaInvertParam *inv_param, Qu double b = -8.; int comm_dim[4] = {}; - int measurement_n = 0; // The nth measurement to take + // Will add fermion measruement utilities later + // int measurement_n = 0; // The nth measurement to take // only switch on comms needed for directions with a derivative for (int i = 0; i < 4; i++) { comm_dim[i] = comm_dim_partitioned(i); } @@ -5531,6 +5532,7 @@ void adjSafeEvolve(std::vector> sf_list int &i_glob = meas_cinf[0].get(); int &measurement_n = meas_cinf[1].get(); + measurement_n = 0; int parity = 0; @@ -5726,7 +5728,7 @@ void performAdjGFlowHier(void *h_out, void *h_in, QudaInvertParam *inv_param, Qu std::vector hier_list; //The first stage is saved at the very beginning, so its presence is implicit hier_list = get_hier_list(smear_param->n_steps, n_b,smear_param->adj_n_save); - logQuda(QUDA_SUMMARIZE,"hier list size (number of gauge fields to save) is %lu\n",hier_list.size()); + logQuda(QUDA_SUMMARIZE,"hier list size (number of gauge fields to save) is %d\n",(int) hier_list.size()); if (threshold < hier_list.back()) {threshold = hier_list.back(); logQuda(QUDA_SUMMARIZE, "threshold changed to %d",threshold);} else logQuda(QUDA_SUMMARIZE, "threshold is %d\n",threshold); @@ -5742,7 +5744,7 @@ void performAdjGFlowHier(void *h_out, void *h_in, QudaInvertParam *inv_param, Qu } if (i > 0) std::swap(gout,gin); - for (unsigned int j = 0; j < hier_list[i]; j++){ + for (unsigned int j = 0; j < (unsigned int) hier_list[i]; j++){ if (j > 0) std::swap(gout,gin); WFlowStep(gout, gaugeTemp, gin, smear_param->epsilon, smear_param->smear_type); @@ -5768,8 +5770,8 @@ void performAdjGFlowHier(void *h_out, void *h_in, QudaInvertParam *inv_param, Qu adjSafeEvolve(sf_list,gf_list,smear_param,hier_list.back(),profileAdjGFlowHier,meas_cinf); logQuda(QUDA_DEBUG_VERBOSE,"Previous hier list elements: \n"); - for (int j = 0; j < hier_list.size(); j++ ){ - logQuda(QUDA_DEBUG_VERBOSE,"%lu \n",hier_list[j]); + for (int j = 0; j < (int) hier_list.size(); j++ ){ + logQuda(QUDA_DEBUG_VERBOSE,"%d \n", (int) hier_list[j]); } logQuda(QUDA_DEBUG_VERBOSE,"\n"); @@ -5795,12 +5797,12 @@ void performAdjGFlowHier(void *h_out, void *h_in, QudaInvertParam *inv_param, Qu GaugeField g_1 = gauge_stages[ret_idx]; logQuda(QUDA_DEBUG_VERBOSE,"Modified hier list elements: \n"); - for (int j = 0; j < hier_list.size(); j++ ){ - logQuda(QUDA_DEBUG_VERBOSE,"%d \n",hier_list[j]); + for (int j = 0; j < (int) hier_list.size(); j++ ){ + logQuda(QUDA_DEBUG_VERBOSE,"%d \n",(int) hier_list[j]); } logQuda(QUDA_DEBUG_VERBOSE,"\n"); - for (unsigned int j = 0; j < hier_list[ret_idx]; j++){ + for (unsigned int j = 0; j < (unsigned int) hier_list[ret_idx]; j++){ if (j > 0) std::swap(g_2,g_1); WFlowStep(g_2, gaugeTemp, g_1, smear_param->epsilon, smear_param->smear_type); } diff --git a/tests/su3_fermion_test.cpp b/tests/su3_fermion_test.cpp index f51f3669f7..f4cc04dc7a 100644 --- a/tests/su3_fermion_test.cpp +++ b/tests/su3_fermion_test.cpp @@ -161,16 +161,16 @@ int main(int argc, char **argv) // Load the gauge field to the device loadGaugeQuda((void *)gauge, &gauge_param); saveGaugeQuda(new_gauge, &gauge_param); - - // Prepare various perf info - long long flops_plaquette = 6ll * 597 * V; - long long flops_ploop = 198ll * V + 6 * V / gauge_param.X[3]; - - // Prepare a gauge observable struct - QudaGaugeObservableParam param = newQudaGaugeObservableParam(); - // start the timer quda::host_timer_t host_timer, host_safe_timer, host_hier_timer, host_fwd_timer; + + // The commented out section is all geared towards gauge observables, so unlikely to be needed for now + // // Prepare various perf info + // long long flops_plaquette = 6ll * 597 * V; + // long long flops_ploop = 198ll * V + 6 * V / gauge_param.X[3]; + + // // Prepare a gauge observable struct + // QudaGaugeObservableParam param = newQudaGaugeObservableParam(); // The user may specify which measurements they wish to perform/omit // using the QudaGaugeObservableParam struct, and whether or not to @@ -197,8 +197,6 @@ int main(int argc, char **argv) obs_param[i].compute_qcharge = QUDA_BOOLEAN_TRUE; obs_param[i].su_project = su_project ? QUDA_BOOLEAN_TRUE : QUDA_BOOLEAN_FALSE; } - - QudaGaugeObservableParam *obs_adj_safe(obs_param), *obs_adj_hier(obs_param); // We here set all the problem parameters for all possible smearing types. QudaGaugeSmearParam smear_param = newQudaGaugeSmearParam(); @@ -256,7 +254,7 @@ int main(int argc, char **argv) // else // check_norm.data()[i] = -1.*check.data()[i]; // } - + check_safe = quda::ColorSpinorField(cs_param); check_hier = quda::ColorSpinorField(cs_param); check_fwd = quda::ColorSpinorField(cs_param);