Changeset 1098 in Sophya for trunk/Eval/Speed/tompCXX.cc


Ignore:
Timestamp:
Jul 26, 2000, 5:10:00 PM (25 years ago)
Author:
ansari
Message:

Extension test OpenMP 2 (tompCXX.cc) - Reza 26/7/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Eval/Speed/tompCXX.cc

    r1096 r1098  
    3737PrtTim("End of Init ");
    3838
    39 if (*arg[1] == 'p') {
     39if (*arg[1] == 'P') {
    4040  printf("Calling MultOMP2(N=%d, Size= %d) \n", N, M);
    41   for(i=0; i<N; i++) MultOMP2(N, M, v1, v2, v3);
     41  MultOMP2(N, M, v1, v2, v3);
    4242}
    4343else if (*arg[1] == 'p') {
     
    7878int i;
    7979#pragma omp parallel default(shared)
     80 {
    8081#pragma omp parallel for
    8182for(i=0; i<N; i++)
     
    8384  for(k=0; k<n; k++)
    8485     v3[k] = v1[k] * v2[k];
     86 }
    8587}
Note: See TracChangeset for help on using the changeset viewer.