#include <omp.h>#include <stdio.h>int main(int argc, char **argv){#if defined(_OPENMP) printf("Compiled by an OpenMP-compliant implementation.\n"); printf("The result of omp_get_num_threads %i\n", omp_get_num_threads());#endif return 0;}
CONFIG += consoleTEMPLATE = appTARGET = DEPENDPATH += .INCLUDEPATH += .QMAKE_LFLAGS += -fopenmpSOURCES += example.cpp