Lines Matching +full:test +full:- +full:basic

1 static const char help[] = "Test star forest communication (PetscSF)\n\n";
6 …ommon communication patterns can be expressed as updates of rootdata using leafdata and vice-versa.
31 …tscCall(PetscViewerASCIISynchronizedPrintf(viewer, "[%d] %" PetscInt_FMT " <- (%d,%" PetscInt_FMT … in PetscSFViewCustomLocals_Private()
54 PetscOptionsBegin(PETSC_COMM_WORLD, "", "PetscSF Test Options", "none"); in main()
56 …PetscCall(PetscOptionsBool("-test_all", "Test all SF communications", "", test_all, &test_all, NUL… in main()
58 PetscCall(PetscOptionsBool("-test_bcast", "Test broadcast", "", test_bcast, &test_bcast, NULL)); in main()
60 …PetscCall(PetscOptionsBool("-test_bcastop", "Test broadcast and reduce", "", test_bcastop, &test_b… in main()
62 …PetscCall(PetscOptionsBool("-test_reduce", "Test reduction", "", test_reduce, &test_reduce, NULL)); in main()
64 …PetscCall(PetscOptionsBool("-test_char", "Test signed char, unsigned char, and char", "", test_cha… in main()
67 …PetscCall(PetscOptionsString("-test_op", "Designate which MPI_Op to use", "", opstring, opstring, … in main()
89 …PetscCall(PetscOptionsBool("-test_degree", "Test computation of vertex degree", "", test_degree, &… in main()
91 …PetscCall(PetscOptionsBool("-test_fetchandop", "Test atomic Fetch-And-Op", "", test_fetchandop, &t… in main()
93 …PetscCall(PetscOptionsBool("-test_gather", "Test point gather", "", test_gather, &test_gather, NUL… in main()
95 …PetscCall(PetscOptionsBool("-test_scatter", "Test point scatter", "", test_scatter, &test_scatter,… in main()
97 PetscCall(PetscOptionsBool("-test_embed", "Test point embed", "", test_embed, &test_embed, NULL)); in main()
99 …PetscCall(PetscOptionsBool("-test_invert", "Test point invert", "", test_invert, &test_invert, NUL… in main()
101 PetscCall(PetscOptionsInt("-stride", "Stride for leaf and root data", "", stride, &stride, NULL)); in main()
103 …PetscCall(PetscOptionsBool("-test_sf_distribute", "Create an SF that 'distributes' to each process… in main()
104 …PetscCall(PetscOptionsString("-test_op", "Designate which MPI_Op to use", "", opstring, opstring, … in main()
105 PetscCall(PetscOptionsInt("-bs", "Block size for vectorial SF", "", bs, &bs, NULL)); in main()
106 …PetscCall(PetscOptionsBool("-test_vector", "Run tests using the vectorial SF", "", test_vector, &t… in main()
134 remote[0].rank = (rank + size - 1) % size; in main()
174 * user-defined structures, could also be used. */ in main()
177 for (i = 0; i < nrootsalloc; i++) rootdata[i] = -1; in main()
180 for (i = 0; i < nleavesalloc; i++) leafdata[i] = -1; in main()
182 // test persistent communication code paths by repeated bcast several times in main()
215 PetscCall(PetscSNPrintf(buf + len, 256 - len, "%5c", rootdata[i])); in main()
226 PetscCall(PetscSNPrintf(buf + len, 256 - len, "%5c", leafdata[i])); in main()
238 * user-defined structures, could also be used. */ in main()
241 for (i = 0; i < nrootsalloc; i++) rootdata[i] = -1; in main()
244 for (i = 0; i < nleavesalloc; i++) leafdata[i] = -10 * (rank + 1) - i; in main()
245 PetscCall(PetscViewerASCIIPrintf(PETSC_VIEWER_STDOUT_WORLD, "## Pre-BcastAndOp Leafdata\n")); in main()
261 for (i = 0; i < nrootsalloc; i++) rootdata[i] = -1; in main()
264 for (i = 0; i < nleavesalloc; i++) leafdata[i] = -1; in main()
266 PetscCall(PetscViewerASCIIPrintf(PETSC_VIEWER_STDOUT_WORLD, "## Pre-Reduce Rootdata\n")); in main()
285 for (i = 0; i < nrootsalloc; i++) rootdata[i] = -1; in main()
288 for (i = 0; i < nleavesalloc; i++) leafdata[i] = -1; in main()
290 …PetscCall(PetscViewerASCIIPrintf(PETSC_VIEWER_STDOUT_WORLD, "## Pre-Reduce Rootdata in type of sig… in main()
296 PetscCall(PetscSNPrintf(buf + len, 256 - len, "%5d", rootdata[i])); in main()
303 Testing with -test_op max, one can see the sign does take effect in MPI_MAX. in main()
313 PetscCall(PetscSNPrintf(buf + len, 256 - len, "%5d", leafdata[i])); in main()
324 PetscCall(PetscSNPrintf(buf + len, 256 - len, "%5d", rootdata[i])); in main()
344 …PetscCall(PetscViewerASCIIPrintf(PETSC_VIEWER_STDOUT_WORLD, "## Pre-Reduce Rootdata in type of uns… in main()
350 PetscCall(PetscSNPrintf(buf + len, 256 - len, "%5u", rootdata[i])); in main()
357 Testing with -test_op max, one can see the sign does take effect in MPI_MAX. in main()
367 PetscCall(PetscSNPrintf(buf + len, 256 - len, "%5u", leafdata[i])); in main()
378 PetscCall(PetscSNPrintf(buf + len, 256 - len, "%5u", rootdata[i])); in main()
399 for (i = 0; i < nleavesalloc; i++) leafdata[i] = -1; in main()
401 for (i = 0; i < nrootsalloc; i++) rootdata[i] = -1; in main()
419 for (i = 0; i < nleavesalloc; i++) outdata[i] = -1; in main()
423 …PetscCall(PetscViewerASCIIPrintf(PETSC_VIEWER_STDOUT_WORLD, "## Gathered data at multi-roots from … in main()
435 for (i = 0; i < nleavesalloc; i++) outdata[i] = -1; in main()
439 …PetscCall(PetscViewerASCIIPrintf(PETSC_VIEWER_STDOUT_WORLD, "## Data at multi-roots, to scatter to… in main()
475 PetscCall(PetscViewerASCIIPrintf(PETSC_VIEWER_STDOUT_WORLD, "## Multi-SF\n")); in main()
477 …PetscCall(PetscViewerASCIIPrintf(PETSC_VIEWER_STDOUT_WORLD, "## Multi-SF roots indices in original… in main()
482 PetscCall(PetscViewerASCIIPrintf(PETSC_VIEWER_STDOUT_WORLD, "## Inverse of Multi-SF\n")); in main()
484 …PetscCall(PetscViewerASCIIPrintf(PETSC_VIEWER_STDOUT_WORLD, "## Inverse of Multi-SF, original numb… in main()
496 /*TEST
498 test:
500 filter: grep -v "type" | grep -v "sort"
501 …args: -test_bcast -sf_type window -sf_window_sync {{fence active lock}} -sf_window_flavor {{create…
504 test:
507 filter: grep -v "type" | grep -v "sort"
508 …args: -test_reduce -sf_type window -sf_window_sync {{fence active lock}} -sf_window_flavor {{creat…
511 test:
514 args: -test_reduce -sf_type basic
516 test:
519 filter: grep -v "type" | grep -v "sort"
520 …args: -test_degree -sf_type window -sf_window_sync {{fence active lock}} -sf_window_flavor {{creat…
523 test:
526 args: -test_degree -sf_type basic
528 test:
531 filter: grep -v "type" | grep -v "sort"
532 …args: -test_gather -sf_type window -sf_window_sync {{fence active lock}} -sf_window_flavor {{creat…
535 test:
538 args: -test_gather -sf_type basic
540 test:
543 args: -test_gather -sf_type basic -stride 2
545 test:
548 filter: grep -v "type" | grep -v "sort"
549 …args: -test_scatter -sf_type window -sf_window_sync {{fence active lock}} -sf_window_flavor {{crea…
552 test:
555 args: -test_scatter -sf_type basic
557 test:
560 args: -test_scatter -sf_type basic -stride 2
562 test:
565 filter: grep -v "type" | grep -v "sort"
566 # No -sf_window_flavor dynamic due to bug https://gitlab.com/petsc/petsc/issues/555
567 …args: -test_embed -sf_type window -sf_window_sync {{fence active lock}} -sf_window_flavor {{create…
570 test:
573 args: -test_embed -sf_type basic
575 test:
578 filter: grep -v "type" | grep -v "sort"
579 …args: -test_invert -sf_type window -sf_window_sync {{fence active lock}} -sf_window_flavor {{creat…
582 test:
585 args: -test_invert -sf_type basic
587 test:
588 suffix: basic
590 args: -test_bcast -sf_type basic
593 test:
596 args: -test_bcastop -sf_type basic
599 test:
602 filter: grep -v "type" | grep -v "sort"
603 …args: -test_bcast -test_sf_distribute -sf_type window -sf_window_sync {{fence active lock}} -sf_wi…
606 test:
609 args: -test_bcast -test_sf_distribute -sf_type basic
611 test:
614 args: -sf_type basic -test_bcast -test_reduce -test_op max -test_char
616 …# Here we do not test -sf_window_flavor dynamic since it is designed for repeated SFs with few dif…
617 test:
619 filter: grep -v "type" | grep -v "sort"
621 …args: -sf_type window -sf_window_sync {{fence active lock}} -sf_window_flavor {{create allocate}}
624 …# The nightly test suite with MPICH uses ch3:sock, which is broken when winsize == 0 in some of th…
625 test:
628 filter: grep -v "type" | grep -v "sort"
630 …args: -sf_type window -sf_window_sync {{fence active lock}} -sf_window_flavor shared -test_all -te…
633 test:
636 args: -sf_type basic -test_all -test_bcastop 0 -test_fetchandop 0
638 test:
641 args: -sf_type basic -test_all -test_bcastop 0 -test_fetchandop 0 -test_vector
643 TEST*/