Changeset 5696 in /cluster/svnroot


Ignore:
Timestamp:
May 23, 2016 7:37:54 PM (5 years ago)
Author:
skylar
Message:

mobeen suggests schedule(static,1)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/bw-institute/2016/day06/matmul/matmul.c

    r5695 r5696  
    6060
    6161#ifdef _OPENMP
    62 #pragma omp parallel
     62#pragma omp parallel 
    6363    {
    6464        // Initialize t to thread number if using OpenMP
    6565    t = omp_get_thread_num();
    66 #pragma omp for
     66#pragma omp for schedule(static,1)
    6767#else
    6868    // When not using OpenMP, only one "thread" will be running
     
    7070#endif
    7171    for(i=0;i<m->rows*m->cols;i++) {
    72         // Limit matrix size < 10
     72        // Limit matrix values < 10
    7373        m->matrix[i] = rand_r(&s[t]) % 10;
    7474    }
Note: See TracChangeset for help on using the changeset viewer.