Commit 2b56b2ac authored by Leonardo Solis's avatar Leonardo Solis
Browse files

modify arg 0 kernel2 so it works in win

parent 745732a9
__kernel void __attribute__ ((reqd_work_group_size(NUM_OF_THREADS_PER_BLOCK,1,1)))
gpu_sum_evals(unsigned long pop_size,
gpu_sum_evals(/*unsigned long pop_size,*/
unsigned int pop_size,
/*unsigned long num_of_runs,*/
#if defined (RESTRICT_ARGS)
__global int* restrict dockpars_evals_of_new_entities,
......@@ -395,7 +395,8 @@ filled with clock() */
// End of Kernel1
// Kernel2
setKernelArg(kernel2,0,sizeof(mypars->pop_size), &mypars->pop_size);
// setKernelArg(kernel2,0,sizeof(mypars->pop_size), &mypars->pop_size);
setKernelArg(kernel2,0,sizeof(dockpars.pop_size), &dockpars.pop_size);
setKernelArg(kernel2,1,sizeof(mem_dockpars_evals_of_new_entities), &mem_dockpars_evals_of_new_entities);
setKernelArg(kernel2,2,sizeof(mem_gpu_evals_of_runs), &mem_gpu_evals_of_runs);
kernel2_gxsize = blocksPerGridForEachRun * threadsPerBlock;
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