OpenMP编程->入门


#include "stdafx.h"
#include  < stdio.h > 
#include  < omp.h > 
#include <iostream>
using namespace std;
int  main()
{

  omp_set_num_threads( 2 );
  #pragma  omp parallel 
  printf( " Hello from Thread NO.%d/n " ,omp_get_thread_num());
  system("pause");
  return   0 ;

OpenMP编程->入门_第1张图片


接下来有时间得研究这个库了。。。。

你可能感兴趣的:(OpenMP编程->入门)