15#include <sys/resource.h>
20double foo(
int n,
int th)
25 for (
i = 0;
i < n; ++
i) {
28 for (
i = 0;
i < n; ++
i) {
34int main(
int argc,
char *argv[])
38 printf(
"stack propagation not implemented, skipping test...\n");
46 status = getrlimit(RLIMIT_STACK, &rlim);
47 if (
sizeof(
void *) > 4 &&
49#pragma omp parallel reduction(+:val)
51 val +=
foo(m, omp_get_thread_num());
54 printf(
"too small stack size limit (needs about 8MB), skipping test...\n");
61 printf(
"failed, val = %f\n",
val);
KMP_ARCH_X86 KMP_ARCH_X86 long double
static volatile kmp_i18n_cat_status_t status