Research Article

GPU-Based Parallel Particle Swarm Optimization Methods for Graph Drawing

Pseudocode 3

Pseudocode of the kernel function of V-PGD.
Transfer position vectors of all particles from CPU to GPU
;
for = 1 to
  if then
  compute ;
  compute using (2);
  compute using (3);
  compute using (10);
  ;
syncthreads();
compute in the parallel reduction