cholesky_and_lu.c 581 B

12345678910111213141516171819202122232425262728
  1. #include "cholesky/cholesky.h"
  2. #include "lu/lu_example_float.c"
  3. int main(int argc, char **argv)
  4. {
  5. starpu_init(NULL);
  6. struct starpu_sched_ctx sched_ctx;
  7. int procs[] = {1, 2, 3};
  8. starpu_create_sched_ctx(&sched_ctx, "random", procs, 3);
  9. run_cholesky_tile_tag(&sched_ctx, argc, argv);
  10. struct starpu_sched_ctx sched_ctx2;
  11. int procs2[] = {0, 4, 5, 6, 7};
  12. starpu_create_sched_ctx(&sched_ctx2, "random", procs2, 5);
  13. run_lu(&sched_ctx2, argc, argv);
  14. finish_cholesky_tile_tag();
  15. finish_lu();
  16. //starpu_task_wait_for_all();
  17. starpu_shutdown();
  18. return 0;
  19. }