Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
docking
ocladock
Commits
ed8f5ec4
Commit
ed8f5ec4
authored
Jan 07, 2019
by
Diogo Martins
Browse files
issue #22 copy _next_ pointer if odd iter, _current_ if even
parent
8924a38a
Changes
1
Hide whitespace changes
Inline
Side-by-side
host/src/performdocking.cpp
View file @
ed8f5ec4
...
...
@@ -1102,8 +1102,15 @@ filled with clock() */
// ===============================================================================
//processing results
memcopyBufferObjectFromDevice
(
command_queue
,
cpu_final_populations
,
mem_dockpars_conformations_current
,
size_populations
);
memcopyBufferObjectFromDevice
(
command_queue
,
cpu_energies
,
mem_dockpars_energies_current
,
size_energies
);
if
(
generation_cnt
%
2
==
0
)
{
memcopyBufferObjectFromDevice
(
command_queue
,
cpu_final_populations
,
mem_dockpars_conformations_current
,
size_populations
);
memcopyBufferObjectFromDevice
(
command_queue
,
cpu_energies
,
mem_dockpars_energies_current
,
size_energies
);
}
if
(
generation_cnt
%
2
==
1
)
{
memcopyBufferObjectFromDevice
(
command_queue
,
cpu_final_populations
,
mem_dockpars_conformations_next
,
size_populations
);
memcopyBufferObjectFromDevice
(
command_queue
,
cpu_energies
,
mem_dockpars_energies_next
,
size_energies
);
}
#if defined (DOCK_DEBUG)
for
(
int
cnt_pop
=
0
;
cnt_pop
<
size_populations
/
sizeof
(
float
);
cnt_pop
++
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment