Parallel Programming Final Project - Group25.
How to Compile:
make
Exeucting PSO_serial:
./PSO_serial N D ITER
// N = Num of particles
// D = Dimensions
// ITER = Num of IterationsExecuting PSO_pthread:
./PSO_pthread N D ITER THREADS
// N = Num of particles
// D = Dimensions
// ITER = Num of Iterations
// THREADS = Num of threadsExecuting PSO_mpi:
mpirun -np P --npernode 1 --hostfile hosts ./mpi N D ITER
// P = Num of processes
// N = Num of particles
// D = Dimensions
// ITER = Num of IterationsExecuting PSO_CUDA:
./PSO
//Modify N D ITER in kernel.h