Commit 867ffdff authored by Alejandro E. Rendon's avatar Alejandro E. Rendon
Browse files

Time in sequential operation

parent b56c9434
*.out
\ No newline at end of file
File deleted
#include <iostream>
#include <string>
#include <omp.h>
using namespace std;
......@@ -35,12 +36,15 @@ int main(int argc, char const *argv[]) {
fillVec(a, vec_size, 10);
fillVec(b, vec_size, 10);
print("a = ", a, vec_size);
print("b = ", b, vec_size);
//print("a = ", a, vec_size);
//print("b = ", b, vec_size);
double begin = omp_get_wtime();
add(a, b, c, vec_size);
double end = omp_get_wtime();
cout << end - begin << endl;
print("c = ", c, vec_size);
//print("c = ", c, vec_size);
free(a);
free(b);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment