1234567891011121314151617181920212223242526272829303132333435 |
- #include <stdio.h>
- #include <stdint.h>
- #include <starpu.h>
- #define FPRINTF(ofile, fmt, ...) do { if (!getenv("STARPU_SSILENT")) {fprintf(ofile, fmt, ## __VA_ARGS__); }} while(0)
- int main(int argc, char **argv)
- {
- int ret = starpu_init(NULL);
- if (ret == -ENODEV) return 77;
- STARPU_CHECK_RETURN_VALUE(ret, "starpu_init");
- starpu_worker_display_names(stdout, STARPU_CPU_WORKER);
- starpu_topology_print(stdout);
- starpu_shutdown();
- return 0;
- }
|