Commit 7626ee02 authored by Leonardo Solis's avatar Leonardo Solis

#31, corrected another setArg: size of Host_RunId

parent bc6f4958
......@@ -822,10 +822,11 @@ filled with clock() */
printf(" %u", run_cnt+1);
fflush(stdout);
#ifdef ENABLE_KRNL_GA
unsigned int Host_Offset_Pop = run_cnt * dockpars.pop_size * ACTUAL_GENOTYPE_LENGTH;
unsigned int Host_Offset_Ene = run_cnt * dockpars.pop_size;
kernel_ga.setArg(16, run_cnt);
#ifdef ENABLE_KRNL_GA
unsigned short ushort_run_cnt = (unsigned ushort) run_cnt;
unsigned int Host_Offset_Pop = run_cnt * dockpars.pop_size * ACTUAL_GENOTYPE_LENGTH;
unsigned int Host_Offset_Ene = run_cnt * dockpars.pop_size;
kernel_ga.setArg(16, ushort_run_cnt);
kernel_ga.setArg(17, Host_Offset_Pop);
kernel_ga.setArg(18, Host_Offset_Ene);
#endif
......
Markdown is supported
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