小编Saf*_*ura的帖子

未定义的引用`omp_get_num_procs'

# include <cstdlib>
# include <iostream>
# include <iomanip>
# include <omp.h>

using namespace std;

int main ( int argc, char *argv[] );

//********************************
int main ( int argc, char *argv[] )
//**********************************
{
  int id;
  double wtime;

  cout << "\n";
  cout << "HELLO_OPENMP\n";
  cout << "  C++/OpenMP version\n";

  cout << "\n";
  cout << "  Number of processors available = " << omp_get_num_procs ( ) << "\n";
  cout << "  Number of threads =              " << omp_get_max_threads ( ) << …
Run Code Online (Sandbox Code Playgroud)

c++ ubuntu

1
推荐指数
1
解决办法
5054
查看次数

标签 统计

c++ ×1

ubuntu ×1