123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #include <starpu.h>
- #include "../helper.h"
- #include <stdio.h>
- #if !defined(STARPU_OPENMP)
- int main(void)
- {
- return STARPU_TEST_SKIPPED;
- }
- #else
- __attribute__((constructor))
- static void omp_constructor(void)
- {
- int ret = starpu_omp_init();
- if (ret == -EINVAL) exit(STARPU_TEST_SKIPPED);
- STARPU_CHECK_RETURN_VALUE(ret, "starpu_omp_init");
- }
- __attribute__((destructor))
- static void omp_destructor(void)
- {
- starpu_omp_shutdown();
- }
- int
- main (void)
- {
- return 0;
- }
- #endif
|