TL;DR
This paper introduces OpenK, an ontology-based infrastructure designed to tackle the challenge of accumulating, sharing, and reusing knowledge in High Performance Computing (HPC). By providing a structured and extensible framework, OpenK aims to reduce redundant efforts and accelerate innovation within the HPC community.
What Problem Does This Paper Address?
High Performance Computing (HPC) relies heavily on a vast and complex body of knowledge. This includes understanding specific domains, software applications, hardware architectures, optimization techniques, and their intricate interactions. Currently, this knowledge is scattered across various formats – implicit assumptions, hard-coded compiler guidelines, whitepapers, research papers, and more. This ad-hoc management makes it incredibly difficult for individuals and teams to systematically accumulate, share, and reuse this valuable information. As a result, the HPC community often faces redundant efforts, with researchers and engineers repeatedly discovering and documenting the same insights, particularly in areas like optimizing stencil computations. This lack of a unified, accessible knowledge infrastructure hinders progress and slows down the adoption of best practices.
Methods
The core of OpenK is its ontology-based knowledge representation. Ontologies, in this context, provide a formal way to define concepts, their relationships, and a standardized vocabulary for a domain. This approach helps to avoid terminological ambiguities and facilitates automatic inference. OpenK is designed with several key considerations:
- Generality: The system must accommodate diverse knowledge types, sources, and forms relevant to HPC.
- Deep Inference: Knowledge representation should support sophisticated automatic logic inferences for advanced exploitation.
- Consistent Conceptualization: Standardized terminology and concepts are crucial to prevent confusion.
- Usability: Easy addition, update, retrieval, and visualization of knowledge for both humans and software agents.
- Extensibility: The infrastructure should be easily extendable with new functionalities and knowledge.
- Quality Control: Mechanisms to identify and manage inconsistencies and errors in the knowledge base.
- Ecosystem: Leveraging existing software and tools related to ontologies.
OpenK's architecture consists of a front end (webpage and IDE interfaces for users), a middle end (logic reasoners, knowledge converters), and a back end (the knowledge base). It supports various knowledge types: primary knowledge (concrete objects/attributes), bulk knowledge (unstructured documents), and logic rules (optimization insights). The system uses SWRL (Semantic Web Rule Language) for representing optimization rules, allowing them to reference RDF triples in the knowledge base.
Datasets
The paper does not explicitly mention the creation of new benchmarks. However, it utilizes existing datasets and benchmarks for evaluation:
- Stencil computations: The authors collected 30 research papers on stencil optimizations and used graduate students to input this knowledge into OpenK.
- NAS Parallel Benchmarks (NPB): Used in Case II to evaluate the improvement in Liveness analysis precision when using OpenK to combine compiler outputs.
- RODINIA suite and LULESH kernels: Used in Case III to measure performance improvements from GPU data placements guided by OpenK.
Key Insights and Ideas
- Ontology as a Unifier: Using ontologies is a powerful way to bridge the gap between different HPC domains and knowledge sources, providing a common language and structure.
- Reducing Redundancy: OpenK directly addresses the problem of duplicated research efforts by making prior findings accessible and reusable.
- Extensibility is Key: The modular design and API-driven approach allow OpenK to adapt to the rapidly evolving HPC landscape.
- Combining Diverse Knowledge: OpenK can integrate heuristic rules, analytical models, and empirical data, enabling more comprehensive optimization strategies.
- Democratizing Expertise: By making expert knowledge accessible through an "optimization advisor," OpenK empowers users with less specialized knowledge to achieve high performance.
Key Results
The paper presents three case studies demonstrating OpenK's effectiveness:
- Case I: Stencil Computation Optimizations: A student, using OpenK as an "optimization advisor," achieved performance comparable to experienced researchers in just 4 hours, highlighting significant time savings and knowledge capitalization. OpenK suggested relevant optimizations even for architectures not explicitly in its knowledge base.
- Case II: Enabling Cooperations Among Software Tools: By integrating Liveness analysis from LLVM-Clang and ROSE compilers through OpenK's ontology representation, the average precision of Liveness analysis improved by over 10% for LLVM-Clang and 20% for ROSE on NPB benchmarks. This demonstrates OpenK's ability to bridge disparate tools.
- Case III: GPU Data Placement: OpenK's ontology-based approach for GPU hardware and program knowledge made data placement optimization more extensible and sharable compared to previous MSL-based methods. Performance improvements on GPU programs were comparable to imperative implementations, with OpenK's analysis time being only about 5% longer.
Limitations and Future Work
- Automated Knowledge Acquisition: The authors acknowledge that fully automating HPC knowledge acquisition from data and reports is a complex task requiring further research in Machine Learning and NLP.
- Scalability of Knowledge Base: While OpenK splits the knowledge base into core and supplemental parts, managing the scale of derived knowledge and implementing efficient eviction policies for the cache-like mechanism are ongoing considerations.
- Community Adoption: The success of OpenK relies on community adoption and contribution. Releasing the infrastructure publicly is planned to promote synergy.
- Further Development: Future work may involve integrating more advanced machine learning modules for knowledge derivation and expanding the ontology ecosystem.
Summary updated