forked from OSchip/llvm-project
[OMPT] Fix task-type test with GCC
This is similar to D43882. The runtime needs to be initialized before calling print_ids(0) http://lab.llvm.org:8011/builders/openmp-gcc-x86_64-linux-debian/builds/60 Differential Revision: https://reviews.llvm.org/D43897 llvm-svn: 326428
This commit is contained in:
parent
f3e93b23f7
commit
f5aebc27ad
|
@ -5,6 +5,9 @@
|
|||
#include <math.h>
|
||||
|
||||
int main() {
|
||||
//initialize the OpenMP runtime
|
||||
omp_get_num_threads();
|
||||
|
||||
// initial task
|
||||
print_ids(0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue