Quantcast
Channel: Intel® Software - Intel® Many Integrated Core Architecture (Intel MIC Architecture)
Viewing all articles
Browse latest Browse all 1789

OpenMP (icpc 15.0.6) weird behavior on MIC

$
0
0

Dear forum, The toy code below returns "sum = 256" on my 5110P. Any thoughts on why oversubscription did not work? Thanks!

PS:

Driver Version : 3.5.1-1

MPSS Version : 3.5.1

icpc version 15.0.6

#include <stdio.h>
#include <stdlib.h>
#include <omp.h>
#include <iostream>


int main( int argc, char* argv[] )
{
    omp_set_num_threads(480);
    int sum = 0;

    #pragma omp parallel
    {
        #pragma omp atomic
        sum += 1;
    }

    std::cout << "sum = "<< sum << std::endl;
    return 0;
}

 


Viewing all articles
Browse latest Browse all 1789

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>