OpenMP编程->入门

来源:互联网 发布:想学网络推广 编辑:程序博客网 时间:2024/06/17 07:26


#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 ;



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

0 0
原创粉丝点击