Internal:Distributed CDT3D Notes

From crtc.cs.odu.edu
Jump to navigation Jump to search

Distributed Speculative Execution Algorithm
Link to Notes in Google Doc that is steadily undergoing updates
List of Papers to Complete/Publish

Fall 2022

Timetable

Deadline November 1 2022

  1. Phase I Distributed Memory CDT3D Abstract submission to AIAA Aviation Forum 2023 – DONE
  2. Enable DMCDT3D to handle small subdomains, up to large configurations of subdomains/cores – DONE
  3. Test overdecomposition/alternate coloring algorithm – DONE
  4. Enable handling of cube with UGAWG polar analytic metrics to run successfully – DONE
    1. Handle cases with Small subdomains – DONE
    2. Clean up data structures and handle cases where subdomains become empty – DONE
    3. Understand usage of metric tensors to include pertinent data during gather/scatter and final merge of subdomains – DONE
      1. Optimization: Calculate Metric Tensor as needed instead of packing
    4. Allow quality statistics to be generated for this geometry – DONE

Deadline December 23 2022

  1. Ensure PREMA's Load Balancing is functioning correctly and get statistics – DONE
  2. Understand why Merged Interior/Interface Refinement takes just as much time (sometimes longer) than pure interior refinement.
    1. Find potential solution.
      1. Profile all mesh refinement operations. – DONE
      2. Profile the overhead surrounding refinement. – DONE
    2. Investigate if similar behavior is observed within NASA's refine.

2023

Deadline January 31 2023

  1. Outline and determine overall objective for paper with PDR.PODM - DONE
    1. Determine potential places for publication (Computer-Aided Design and then Supercomputing conference/journal) - DONE
  2. Implement initial refinement of interfaces with bubbles in distributed CDT3D - DONE

Deadline February 17 2023

  1. Modify distributed CDT3D implementation to do distributed mobile object creation (instead of on master process) to avoid early message forwarding bottleneck - DONE
  2. Strategic Coloring for Interface Shift based on Quality within each Subdomain - DONE

Deadline March 31 2023

  1. Fix "Find_CAD_Key_Between_Triangles" Error given by CDT3D during Interface Shift - DONE

Deadline July 31 2023

  1. Formulate/Fix problem within CDT3D and determine proper term for new requirement of a scalable mesh generation code (Reproducibility/Efficiency in terms of runtime)
    1. Investigate and identify potential causes of this problem within each mesh operation, as user should have the choice of executing any of the same operations within the reproducibility setting
    2. Make necessary modifications to each mesh operation to account for reproducibility time efficiency
  2. Understand how the number of threads/buckets (the amount of available work) can affect this time efficiency within the reproducibility setting and make any necessary changes
  3. Find and run biomedical case (if not anisotropic, then isotropic) with Shared Memory CDT3D, ensuring that with this case, CDT3D is also reproducible
    1. AVM papers (Kitware) - see Fotis's images
    2. Aneurysm Blood Flow case with Stonybrook (Melina Kazakidi paper and others) - see Fotis's images

Deadline September 30 2023

  1. Complete Implementation and test suite for Phase I Distributed Memory CDT3D:
    1. use lessons learned from reproducibility time efficiency to better control initial interface adaptivity to be scalable
    2. subdomain topology update, handling all three cases (adjacency removal, addition, and creation of new subdomains)
    3. adjacency update communication algorithm to avoid global synchronization
  2. Ensure and test that distributed CDT3D does not produce garbage
    1. Successful execution and stability of all cases received from Christos
    2. Successful adaptation of large cases - delta wing, JSM
    3. Successful refinement of large (anisotropic or isotropic) biomedical case

Deadline October 31 2023

  1. Submit Distributed CDT3D Phase I paper to both AIAA conference and journal

Deadline December 31 2023

  1. Dissertation Proposal Presentation
  2. Complete PHASE II of Distributed CDT3D

2024

Deadline Spring 2024

  1. Journal Paper submission of Phase II Distributed CDT3D to the Journal of Supercomputing
  2. Find a way to create metric for biomedical anisotropic case
    1. Paper submission to biomedical conference on how metric was generated and corresponding results of CDT3D in a pipeline with CBC3D
  3. Evaluation Paper with Mike & Adrian
  4. Finish draft of distributed mesh generation survey paper showcasing multiple codes and the fact that based on current trends in scalability, utilization of exascale architectures is not feasible or necessary
    1. Literature Review:
      1. GPCD
      2. PDR.TetGen
      3. PsC.AFLR
      4. refine
      5. Feflo.a
      6. EPIC
      7. Domain-defining Grid from Lohner
      8. CRISP CFD from CRAFT Tech
      9. Massively Parallel Anisotropic Mesh Adaptation Software from the High Performance Computing Institute
      10. PDR.PODM
    2. Phase I Distributed Implementation of CDT3D
  5. Complete Image-to-mesh Survey Literature Review

Notes

Larger Mesh Generation in Parallel Problem

Problem: Our local reconnection method takes longer to converge, generating more elements, as the thread count increases (thereby also introducing more rollbacks), compared to its execution on one thread.

  1. Remarks
    1. Fotis's Dissertation
      1. When meshing the lv2b geometry, CDT3D produces approx. 15 million additional elements when utilizing 12 cores as opposed to 1 core (113 M vs. 98 M) (pg. 124).
      2. Using either a grouped linked list to store elements vs. a shuffled linked list also affects the end number of elements generated for the lv2b geometry (grouped - 78 M vs. shuffled - 88 M) (pg. 133)
        1. refinement operations (i.e., point creation, element deactivation, over-decomposition, and parallel reconnection) all require a traversal of active elements but do not need to traverse inactive elements so performance is improved with a grouped linked list
        2. quality improvement operations (i.e., smoothing, quality check, and sliver removal) are oblivious to the type of linked list and performance is worst with grouped list
          1. Note: It appears order matters (for active/inactive elements within the linked list).
      3. It seems that there are implied interfaces between buckets that do not undergo refinement when there are thread conflicts. Within the code, buckets of active elements are merged during grid generation passes so these elements eventually undergo refinement in a subsequent pass. (pg. 109)
        1. Conjecture: Point Insertion, Reconnection failure due to thread conflict, point insertion again in next pass due to insufficient quality?
        2. Investigate further and add as possible contribution to Christos's paper
      4. An increase in the number of buckets (finer decomposition) causes an increase in grid generation passes. When "data migration" (transfer of buckets between threads) is performed, the number of passes increase. (pg. 135)
        1. Study: Effects of overdecomposition in both shared and distributed memory; geometrical dependency between buckets that are transferred and buckets currently under refinement
      5. "Parallelism influences all aspects of grid generation, such as quality before and after improvement, running time, number of refinement passes, and element count." The variation in numbers is reported but includes no detailed explanation. (pg. 137)
      6. Meshing the DLR-F6 Airbus aircraft geometry on different configurations of cores produces different geometry sizes by about 40 M elements (pg. 142)
    2. Christos's Work
      1. Parallel Anisotropic Unstructured Grid Adaptation AIAA SciTech Forum Paper
        1. In Table 1, one can see that there are differing numbers of elements within CDT3D's set of results and those of refine's, but it is MUCH more prevalent with refine. This data was gathered from only one configuration of cores (24 for CDT3D and 16 for refine). The reasoning in the paper for the differences in runtime is the hardware utilized (different Xeon processors). In the cases where a worst processor was used, more elements were generated.
        2. Question: Ask Mike why Refine generates more elements when using weaker processor?

Profiling

Mobile Objects Created on Master Process and Master Works/Refines

Master Does not Work/Refine - Extra Core Allocated