[Paper Review] Experiments in Sustainable Software Practices for Future Architectures
This paper proposes sustainable software engineering practices—such as agile development, unit testing, code reviews, and architectural abstraction—to address challenges in porting legacy scientific codes to future many-core and accelerator-based architectures at Los Alamos National Laboratory. The key contribution is demonstrating that modern software practices improve code maintainability, enable cross-architecture reuse, and mitigate non-reproducible results and numerical instability in high-concurrency environments.
In the process of rewriting large physics codes at Los Alamos National Laboratory to perform well on new architectures such as many-core, GPU, and Intel MIC, we have found a number of areas in which sustainable software practices can provide significant advantages. We describe several specific advantages of sustainable practices for future architectures, and report on two small experimental projects at LANL intended to raise awareness of new software practices and programming approaches for new architectures.
Motivation & Objective
- Address the growing difficulty of maintaining and porting legacy scientific codes to new architectures like GPUs and many-core systems.
- Overcome challenges from tightly coupled physics code and monolithic data structures that hinder portability and modularity.
- Reduce technical debt and improve software quality by adopting modern software engineering practices in high-performance computing environments.
- Mitigate non-reproducible results and numerical instability introduced by concurrency and hardware variability on future architectures.
- Integrate domain scientists and computer scientists through collaborative, agile development to improve code sustainability and team cohesion.
Proposed method
- Adopted agile development practices including two-week iterations, daily stand-ups, and co-location to enhance team collaboration and responsiveness.
- Implemented extensive unit testing with focus on corner cases to detect non-reproducibility and numerical instability early.
- Applied static and dynamic analysis tools to identify code quality issues and potential bugs before deployment.
- Used code reviews and pair programming to improve code quality and knowledge sharing across domain and software engineering teams.
- Introduced software abstractions and advanced language features (e.g., templates, function inlining) to maximize code reuse across diverse architectures.
- Re-architected legacy codebases to decouple physics logic from low-level infrastructure (e.g., MPI, memory management) for easier porting.
Experimental results
Research questions
- RQ1How can sustainable software engineering practices improve the maintainability and portability of legacy scientific codes on emerging many-core and accelerator-based architectures?
- RQ2What role do modern development techniques—such as unit testing, code reviews, and pair programming—play in reducing non-reproducible results in highly concurrent HPC environments?
- RQ3To what extent can architectural abstractions and language features like templates enable cross-architecture code reuse without sacrificing performance?
- RQ4How do numerical instabilities in legacy algorithms interact with hardware-induced non-determinism on new architectures, and how can they be systematically addressed?
- RQ5What cultural and organizational barriers hinder the adoption of agile and sustainable software practices in large-scale scientific computing centers like LANL?
Key findings
- Traditional coding practices—such as monolithic data structures and tight coupling between physics and infrastructure—significantly impede porting to new architectures and reduce code maintainability.
- Non-reproducible results due to concurrency on new architectures rendered conventional debugging methods inadequate, necessitating a shift toward automated testing and static analysis.
- Legacy algorithms often exhibited numerical instability, which was exacerbated by small input variations on new hardware, requiring explicit stability analysis as part of the development process.
- Agile practices such as pair programming and daily stand-ups improved team collaboration and knowledge transfer, especially between domain scientists and software engineers.
- Co-location and dedicated time for collaboration were effective but frequently disrupted by LANL’s interrupt-driven culture, reducing productivity despite strong team engagement.
- The SWIFT project’s lessons were successfully transferred to ongoing code modernization efforts, indicating that sustainable practices can scale when supported by institutional buy-in and team deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.