Commit d1529db6 authored by Leonardo Solis's avatar Leonardo Solis
Browse files

#31, corrected property of energy cl_mem: for kernel is write-only

parent 47e45807
...@@ -390,7 +390,7 @@ filled with clock() */ ...@@ -390,7 +390,7 @@ filled with clock() */
// Krnl_GA buffers // Krnl_GA buffers
cl::Buffer mem_dockpars_conformations_current (context, CL_MEM_USE_HOST_PTR | CL_MEM_READ_WRITE, cl::Buffer mem_dockpars_conformations_current (context, CL_MEM_USE_HOST_PTR | CL_MEM_READ_WRITE,
size_populations_nbytes, cpu_init_populations.data()); size_populations_nbytes, cpu_init_populations.data());
cl::Buffer mem_dockpars_energies_current (context, CL_MEM_USE_HOST_PTR | CL_MEM_READ_WRITE, cl::Buffer mem_dockpars_energies_current (context, CL_MEM_USE_HOST_PTR | CL_MEM_WRITE_ONLY,
size_energies_nbytes, cpu_energies.data()); size_energies_nbytes, cpu_energies.data());
cl::Buffer mem_evals_performed (context, CL_MEM_USE_HOST_PTR | CL_MEM_WRITE_ONLY, cl::Buffer mem_evals_performed (context, CL_MEM_USE_HOST_PTR | CL_MEM_WRITE_ONLY,
size_evals_of_runs_nbytes, cpu_evals_of_runs.data()); size_evals_of_runs_nbytes, cpu_evals_of_runs.data());
...@@ -464,7 +464,6 @@ filled with clock() */ ...@@ -464,7 +464,6 @@ filled with clock() */
// Krnl_GA // Krnl_GA
inBufVec.push_back(mem_dockpars_conformations_current); // RD & WR inBufVec.push_back(mem_dockpars_conformations_current); // RD & WR
inBufVec.push_back(mem_dockpars_energies_current); // RD & WR
// Krnl_Conform // Krnl_Conform
inBufVec.push_back(mem_KerConstStatic_rotlist_const); inBufVec.push_back(mem_KerConstStatic_rotlist_const);
inBufVec.push_back(mem_KerConstStatic_ref_coords_const); inBufVec.push_back(mem_KerConstStatic_ref_coords_const);
...@@ -490,7 +489,7 @@ filled with clock() */ ...@@ -490,7 +489,7 @@ filled with clock() */
// Krnl_GA // Krnl_GA
outBufVec.push_back(mem_dockpars_conformations_current); // RD & WR outBufVec.push_back(mem_dockpars_conformations_current); // RD & WR
outBufVec.push_back(mem_dockpars_energies_current); // RD & WR outBufVec.push_back(mem_dockpars_energies_current); // WR
outBufVec.push_back(mem_evals_performed); outBufVec.push_back(mem_evals_performed);
outBufVec.push_back(mem_gens_performed); outBufVec.push_back(mem_gens_performed);
......
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