The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
355 B
16 lines
355 B
#include <iostream> |
|
#include <omp.h> |
|
|
|
int main(void) { |
|
#ifdef _OPENMP |
|
if (omp_get_max_threads() == 2) { |
|
return 0; |
|
} else { |
|
std::cout << "Max threads is " << omp_get_max_threads() << " not 2." << std::endl; |
|
return 1; |
|
} |
|
#else |
|
printf("_OPENMP is not defined; is OpenMP compilation working?\n"); |
|
return 1; |
|
#endif |
|
}
|
|
|