Tuesday, December 22, 2015

Parallel programming for CPU and GPU

------------------------------
CPU Parallel programming in C
------------------------------
POSIX - pthread in linux eg. $gcc -o go go.c -lpthread
OpenMP <omp.h> eg. $gcc -fopenmp -o go go.c
MPI - message passing interface <mpi.h> eg. $mpicc go_mpi.c -o go_mpi
   $mpirun -n 4 go_mpi
   $time mpirun -n 1 go OR $time mpirun -n 4 go

reference link: http://gribblelab.org/CBootcamp/A2_Parallel_Programming_in_C.html

------------------------------
GPU Parallel programming in C
------------------------------
OpenCL <cl.h>

No comments:

Post a Comment

PROFILE

My photo
India
Design Engineer ( IFM Engineering Private Limited )

Followers