/*************************************************************************************************** * FILE : openmp4x-vect-vect-multiplication.c * * INPUT : Nil * * OUTPUT : Displays dot product of two vectors * * CREATED : August,2013 * * EMAIL : hpcfte@cdac.in * ***************************************************************************************************/ #include #define SIZE 4 #pragma omp declare target int reduce(int *Vector_1,int *Vector_2) { int sum = 0; #pragma omp target map(Vector_1[0:SIZE]) map(Vector_2[0:SIZE]) map(sum) { for(int i=0;i