Search NASA⌕ Search

SEARCH · Search NASA

Results for “code reuse”

Search indexed NASA NTRS and DOE OSTI research on propulsion, heat transfer, battery materials and energy systems. Follow report and document links to the original sources.

Quote a phrase for an exact phrase match. Source license links do not imply unrestricted reuse.

At least 73 records · Page 4

Implement and Test 3D Mortar Contact in BISON

We leverage the extension of the generation of mortar segment meshes to three dimensions in MOOSE’s framework to extend thermomechanical modeling capabilities to problems with three dimensions. A modular approach to gap heat transfer physics using the mortar finite element method was created and documented, mechanical contact was extended to three dimensions—including frictional behavior, performance and ease of use were improved, and steps towards scalability of solid mechanics problems involving contact were taken. Many of these new developments are demonstrated in the simulation of 3D light-water reactor (LWR) problems, where the thermomechanical interface problem is solved using the mortar finite element method. Usage of the mortar framework has improved convergence in 2D problems and has enabled employing friction in 3D problems, of which we show results of a short, local stack of 3D pellets. Consequently, the benefits of mortar in terms of solution convergence and quality are extended to three dimensions. Section 2 discusses fundamental developments that enabled the simulation of practical mortar problems in three dimensions and other general improvements, including the reduction of the derivative container size, the modification of dual basis computations when edge dropping (lack of secondary element projection) takes place, the improvement of conditioning when employing the VCP in-edge dropping conditions, and code usability and quality improvements. These latter code enhancements include the migration of tests using “old” mortar contact constraints to using dual mortar with a semi-smooth Newton solution strategy and the reuse of lower dimensional domains for straightforwardly setting up a mortar thermomechanical LWR problem, i.e. the MOOSE action is employed for mechanical contact and the thermal LWR action is employed to capture the gas conductance, contact, and radiation components of gap heat transfer physics. Independently of the mortar LWR thermal action, we developed a modular approach to gap heat transfer that resides in MOOSE and can be leveraged, e.g., in metallic fuel problems. This approach, whose code design based on MOOSE’s user objects to model specific physics was proposed by the maintenance activity, is detailed in Section 3. Based on the dual mortar finite element method, the frictional contact constraints were extended to three dimensions. A block sheared in two directions in and out of contact with a rigid plane is employed in Section 4 to show the way the approach handles changes in frictional states (e.g. stick to slip) within a competitive number of Newton iterations. Equations and numerical results on the use of the VCP with Cartesian Lagrange multipliers, whose combination enables their direct condensation, are described in Section 5.3. Two-dimensional and three-dimensional BISON LWR simulations are discussed in Section 6. Particularly, a stack of five eccentric pellets with a surface defect is simulated and the effect of pellet-cladding friction is assessed. Finally, conclusions are outlined in Section 7.

42 ENGINEERING↗

Two-link Staggered Quark Smearing in QUDA

Gauge covariant smearing based on the 3D lattice Laplacian can be used to create extended operators that have better overlap with hadronic ground states. For staggered quarks, we make use of two-link parallel transport to preserve taste properties. We have implemented the procedure in QUDA. We present the performance of this code on the NVIDIA A100 GPUs in Indiana University's Big Red 200 supercomputer and on the AMD MI250X GPUs in Oak Ridge Leadership Computer Facility's (OLCF's) Crusher and discuss its scalability. We also study the performance improvement from using NVSHMEM on OLCF's Summit. Reusing precomputed two-link products for all sources and sinks, it reduces the total smearing time for a baryon correlator measurement by a factor of 100-120 as compared with the original MILC code and reduces the overall time by 60-70%.

Gottlieb, Steven↗

Roofline Analysis in the Intel® Advisor to Deliver Optimized Performance for applications on Intel® Xeon Phi™ Processor

In this session we show, in two case studies, how the roofline feature of Intel Advisor has been utilized to optimize the performance of kernels of the XGC1 and PICSAR codes in preparation for Intel Knights Landing architecture. The impact of the implemented optimizations and the benefits of using the automatic roofline feature of Intel Advisor to study performance of large applications will be presented. This demonstrates an effective optimization strategy that has enabled these science applications to achieve up to 4.6 times speed-up and prepare for future exascale architectures. # Goal/Relevance of Session The roofline model [1,2] is a powerful tool for analyzing the performance of applications with respect to the theoretical peak achievable on a given computer architecture. It allows one to graphically represent the performance of an application in terms of operational intensity, i.e. the ratio of flops performed and bytes moved from memory in order to guide optimization efforts. Given the scale and complexity of modern science applications, it can often be a tedious task for the user to perform the analysis on the level of functions or loops to identify where performance gains can be made. With new Intel tools, it is now possible to automate this task, as well as base the estimates of peak performance on measurements rather than vendor specifications. The goal of this session is to demonstrate how the roofline feature of Intel Advisor can be used to balance memory vs. computation related optimization efforts and effectively identify performance bottlenecks. A series of typical optimization techniques: cache blocking, structure refactoring, data alignment, and vectorization illustrated by the kernel cases will be addressed. # Description of the codes ## XGC1 The XGC1 code [3] is a magnetic fusion Particle-In-Cell code that uses an unstructured mesh for its Poisson solver that allows it to accurately resolve the edge plasma of a magnetic fusion device. After recent optimizations to its collision kernel [4], most of the computing time is spent in the electron push (pushe) kernel, where these optimization efforts have been focused. The kernel code scaled well with MPI+OpenMP but had almost no automatic compiler vectorization, in part due to indirect memory addresses and in part due to low trip counts of low-level loops that would be candidates for vectorization. Particle blocking and sorting have been implemented to increase trip counts of low-level loops and improve memory locality, and OpenMP directives have been added to vectorize compute-intensive loops that were identified by Advisor. The optimizations have improved the performance of the pushe kernel 2x on Haswell processors and 1.7x on KNL. The KNL node-for-node performance has been brought to within 30% of a NERSC Cori phase I Haswell node and we expect to bridge this gap by reducing the memory footprint of compute intensive routines to improve cache reuse. ## PICSAR is a Fortran/Python high-performance Particle-In-Cell library targeting at MIC architectures first designed to be coupled with the PIC code WARP for the simulation of laser-matter interaction and particle accelerators. PICSAR also contains a FORTRAN stand-alone kernel for performance studies and benchmarks. A MPI domain decomposition is used between NUMA domains and a tile decomposition (cache-blocking) handled by OpenMP has been added for shared-memory parallelism and better cache management. The so-called current deposition and field gathering steps that compose the PIC time loop constitute major hotspots that have been rewritten to enable more efficient vectorization. Particle communications between tiles and MPI domain has been merged and parallelized. All considered, these improvements provide speedups of 3.1 for order 1 and 4.6 for order 3 interpolation shape factors on KNL configured in SNC4 quadrant flat mode. Performance is similar between a node of cori phase 1 and KNL at order 1 and better on KNL by a factor 1.6 at order 3 with the considered test case (homogeneous thermal plasma).

97 MATHEMATICS AND COMPUTING↗

Wootz: a compiler-based framework for fast CNN pruning via composability

Convolutional Neural Networks (CNN) are widely used for Deep Learning tasks. CNN pruning is an important method to adapt a large CNN model trained on general datasets to fit a more specialized task or a smaller device. The key challenge is on deciding which filters to remove in order to maximize the quality of the pruned networks while satisfying the constraints. It is time-consuming due to the enormous configuration space and the slowness of CNN training.The problem has drawn many efforts from the machine learning field, which try to reduce the set of network configurations to explore. This work tackles the problem distinctively from a programming systems perspective, trying to speed up the evaluations of the remaining configurations through computation reuse via a compiler-based framework. We empirically uncover the existence of composability in the training of a collection of pruned CNN models, and point out the opportunities for computation reuse. We then propose composability-based CNN pruning, and design a compression-based algorithm to efficiently identify the set of CNN layers to pre-train for maximizing their reuse benefits in CNN pruning. We further develop a compiler-based framework named Wootz, which, for an arbitrary CNN, automatically generates code that builds a Teacher-Student scheme to materialize composability-based pruning. Experiments show that network pruning enabled by Wootz shortens the state-of-art pruning process by up to 186X while producing significantly better pruning results.

Guan, Hui↗

QPhiX Code Generator

A simple code-generator to generate the low level code kernels used by the QPhiX Library for Lattice QCD. Generates Kernels for Wilson-Dslash, and Wilson-Clover kernels. Can be reused to write other optimized kernels for Intel Xeon Phi(tm), Intel Xeon(tm) and potentially other architectures.

Joo, Balint↗

QPhiX Code Generator

A simple code-generator to generate the low level code kernels used by the QPhiX Library for Lattice QCD. Generates Kernels for Wilson-Dslash, and Wilson-Clover kernels. Can be reused to write other optimized kernels for Intel Xeon Phi(tm), Intel Xeon(tm) and potentially other architectures.

Joo, Balint↗

FAIR Data Meets FAIR Software

Modern scientific research is increasingly defined by the interplay between data, software, and the workflows that connect them. Yet while the FAIR (Findable, Accessible, Interoperable, Reusable) principles have become foundational for scientific data stewardship, the same level of structure and expectation has only recently begun to extend to research software. This talk covers why and how FAIR principles are being applied to data and software to support data reuse. It outlines the gaps in current sharing norms, the growing federal emphasis on persistent identifiers and public access, and the opportunities created when datasets, computational workflows, code, and models are linked through rich, standardized metadata. Practical implementation pathways for the EIC and JLab communities are described, including datacards for structured dataset documentation and provenance-aware workflows. By aligning data lifecycle management with FAIR-aligned software practices, the scientific community can advance toward autonomous knowledge graphs, generative workflows, and high-quality, AI-ready scientific datasets.

McSpadden, Diana [Thomas Jefferson National Accele↗

Automatic Fortran to C++ conversion with FABLE

In scientific computing, Fortran was the dominant implementation language throughout most of the second part of the 20th century. The many tools accumulated during this time have been difficult to integrate with modern software, which is now dominated by object-oriented languages. Driven by the requirements of a large-scale scientific software project, we have developed a Fortran to C++ source-to-source conversion tool named FABLE. This enables the continued development of new methods even while switching languages. We report the application of FABLE in three major projects and present detailed comparisons of Fortran and C++ runtime performances. Our experience suggests that most Fortran 77 codes can be converted with an effort that is minor (measured in days) compared to the original development time (often measured in years). With FABLE it is possible to reuse and evolve legacy work in modern object-oriented environments, in a portable and maintainable way. FABLE is available under a nonrestrictive open source license. In FABLE the analysis of the Fortran sources is separated from the generation of the C++ sources. Therefore parts of FABLE could be reused for other target languages.

59 BASIC BIOLOGICAL SCIENCES↗

Genesis Mission Data cards

As data-intensive research and artificial intelligence become central to DOE mission science, the need for machine-actionable dataset documentation has grown accordingly. However, many DOE-aligned communities, including the Office of Science, NNSA, and cross-laboratory collaborations, have developed independent metadata practices. This fragmentation creates friction for discovery, federation, and reuse across programs. To address these challenges, this talk introduces the Genesis Data Card: a shared metadata artifact developed in collaboration with a broad DOE community (Jefferson Lab and the National Lab of the Rockies, Oak Ridge, Sandia, Idaho, Berkeley, and Los Alamos). The Genesis Data Card aims to standardize dataset documentation across DOE-aligned initiatives while remaining extensible to discipline-specific needs. This talk will describe the data card template and the supporting code to validate completed data cards, using a companion LinkML schema. I'll walk through the design decisions behind the template, its alignment with existing standards, its treatment of sensitivity and governance metadata, and the phased roadmap toward lifecycle-integrated "xCards" that support autonomous discovery and reuse. The talk closes with current gaps, ongoing work, and how others can contribute datasets and feedback to the shared repository.

McSpadden, Helen [Thomas Jefferson National Accele↗

Neoclassical Transport Including Collisional Nonlinearity

In the standard {delta}f theory of neoclassical transport, the zeroth-order (Maxwellian) solution is obtained analytically via the solution of a nonlinear equation. The first-order correction {delta}f is subsequently computed as the solution of a linear, inhomogeneous equation that includes the linearized Fokker-Planck collision operator. This equation admits analytic solutions only in extreme asymptotic limits (banana, plateau, Pfirsch-Schlueter), and so must be solved numerically for realistic plasma parameters. Recently, numerical codes have appeared which attempt to compute the total distribution f more accurately than in the standard ordering by retaining some nonlinear terms related to finite-orbit width, while simultaneously reusing some form of the linearized collision operator. In this work we show that higher-order corrections to the distribution function may be unphysical if collisional nonlinearities are ignored.

70 PLASMA PHYSICS AND FUSION TECHNOLOGY↗

Framework for Characterizing the Performance of High-Early Strength, High-Volume Fly Ash (HVFA) Concrete Structures

This presentation will highlight the development of a comprehensive framework to characterize the performance of high-volume fly ash (HVFA) concretes at early ages and discuss the resulting implications for concrete structures built using such materials. Achieving high-early compressive and/or flexural strength is often of particular importance for precast and/or prestressed concrete components – due to early age loading demands resulting from lifting, handling, or application of initial prestress – or other types of concrete structures that can significantly benefit from rapid strength development - such as for bridge deck repairs. The framework first includes a methodology for optimizing the strength of HVFA cementitious binders before subsequently scaling up the technology to evaluation of fresh and hardened HVFA concrete performance. A series of trial mix designs will be presented to demonstrate the effectiveness of the framework to achieve not only the desired high-early strength targets but also satisfactory workability, often in the form of self-consolidating concrete. Mechanical performance was evaluated at several age-dependent milestones and, in conjunction with estimating concrete strength using the maturity method, was ultimately used to facilitate the development of novel strength development history curves. By way of these datasets, concrete mechanical properties were utilized in the design of prototype structural components, such as beams and wall panels, for subjection to larger-scale experimental testing. Implications for other pertinent HVFA concrete performance attributes, such as shrinkage or creep, will also be discussed. The framework also includes a comprehensive methodology for evaluating the environmental life-cycle performance of HVFA concrete structures focused on mitigating any unwarranted environmental consequences resulting from beneficial HVFA reuse in concrete. Strategies for more widespread implementation of HVFA concrete materials into construction practice will also be presented. Lastly, the role of the HVFA concrete framework towards the development of new provisions for building codes and/or design standards, and recommendations for future research needs will also be discussed.

01 COAL, LIGNITE, AND PEAT↗

Parallel performance optimizations on unstructured mesh-based simulations

This paper addresses two key parallelization challenges the unstructured mesh-based ocean modeling code, MPAS-Ocean, which uses a mesh based on Voronoi tessellations: (1) load imbalance across processes, and (2) unstructured data access patterns, that inhibit intra- and inter-node performance. Our work analyzes the load imbalance due to naive partitioning of the mesh, and develops methods to generate mesh partitioning with better load balance and reduced communication. Furthermore, we present methods that minimize both inter- and intranode data movement and maximize data reuse. Our techniques include predictive ordering of data elements for higher cache efficiency, as well as communication reduction approaches. We present detailed performance data when running on thousands of cores using the Cray XC30 supercomputer and show that our optimization strategies can exceed the original performance by over 2×. Additionally, many of these solutions can be broadly applied to a wide variety of unstructured grid-based computations.

97 MATHEMATICS AND COMPUTING↗

Middlesex South FUSRAP Site: Collaboration Towards Beneficial Reuse - 20338

The US Department of Energy (DOE) Office of Legacy Management (LM) manages DoE's post-closure responsibilities and ensures the future protection of human health and the environment with respect to sites that have no continuing DOE mission after undergoing remediation. LM's beneficial reuse program promotes the LM strategic goal to sustainably manage and optimize use of public lands. The beneficial reuse program aims to repurpose former contaminated sites to restore the environment, protect the public health, revitalize communities, and spur economic growth. Benefits from the reuse of a site may increase the local tax base, facilitate job growth, utilize existing infrastructure, and enhance or protect natural resources. Beneficial reuse also promotes protectiveness by ensuring activities are compatible with long-term maintenance and protection of public health and the environment, as well as by retaining good stewardship of natural resources. LM actively participates in promoting the economic development vision of the surrounding communities by collaborating with local communities to promote regional or municipal initiatives. The Borough of Middlesex, New Jersey, has prepared the Lincoln Boulevard Redevelopment Plan, which will reinvent a once-viable downtown and enhance the quality of life for the community. The Middlesex South, New Jersey, Formerly Utilized Sites Remedial Action Program (FUSRAP) site lies within the boundaries of this redevelopment area. In support of this development plan, the Borough is interested in acquiring the site for its Department of Public Works and to increase street access in the future commercial district to be built near adjacent properties. The opportunity to put the FUSRAP site into productive use aligns with LM's mission and strategic goals. In support of beneficial reuse activities, DOE can dispose of excess real property using several mechanisms. The two disposal options applicable to the Middlesex south site include (1) utilizing the US General Services Administration (GSA) or (2) using the Title 10 Code of Federal Regulations Section 770, 'Transfer of Real Property at Defense Nuclear Facilities for Economic Development' (known as a '770 transfer') process. Using the 770 transfer requires economic development as the primary driver, and a specific redevelopment proposal must be submitted. If there is no interest in specific economic development, the GSA option becomes the default mechanism for disposal of the property. In the case of the Middlesex south site, the 770 transfer process is being utilized and the Borough has submitted its economic development proposal to LM. Although LM is encouraged by the opportunity to put the site into productive use, the Middlesex south site is currently on the US Environmental Protection Agency (EPA) National Priorities List and remediation is being performed by the US Army Corp of Engineers (USACE) under the Comprehensive Environmental Response, Compensation, and Liability Act (CERCLA). Consequently, any property transfer must meet the requirements under CERCLA Section 120(h), 'Property Transferred by Federal Agencies.' As the groundwater remedy will not be in place for several years, approval would be required from the US EPA administrator and the governor of the state of New Jersey to perform an early transfer of the site (before all response actions have been completed). The time frame for these approvals to occur under the normal process conflicts with the proposed redevelopment schedule; therefore, various options for expedited sale, transfer, or lease of portions of the site to the Borough were evaluated. The subsequent decision on a mutually beneficial path forward was the result of a collaborative effort between LM, USACE, the Borough and its redevelopment team, EPA, and the New Jersey Department of Environmental Protection. (authors)

12 MANAGEMENT OF RADIOACTIVE AND NON-RADIOACTIVE W↗

Final Scientific Report

Project 1: We have created a 3D optical research and design software platform for simulation and optimization, geared toward asymmetric, folded optical systems and new, enabling freeform surfaces. The software, Eikonal+, targets both institutional researchers and leading optical surface fabricators. With a modular design and the source code available to the development team at the University of Rochester, custom modules can be created for specific research interests and is accelerating the work on freeform optics currently being carried out at the Institute of Optics. With a research-based optical design environment, the fabrication, assembly, and testing industries can anticipate, innovate, and retool for the future of optical systems. Targeted proposals for science and innovation in freeform optics spanning design to fabrication, assembly, and testing can proceed with a level of technical transparency that has been unachievable in this field since the 1960’s, when optics design code was commercialized and became unavailable to the research community for competitive reasons. Project 2: The University of Rochester Laboratory for Laser Energetics (LLE) with personnel from Flint Creek Resources (FCR) collaborated to develop technologies for the reclamation and reuse of cerium oxide based slurries intended for the polishing of optical components. The pilot process was evaluated and modifications were made to improve the collection of spent glass polish, to improve the efficiency and capacity of the recycling equipment, and to expand the customer base. A portable, self-contained system was developed and fabricated to recycle glass polishing compounds where the spent materials are produced.

36 MATERIALS SCIENCE↗

DaCe - Data Centric Parallel Programming

DaCe is a parallel programming framework that takes code in Python/NumPy and other programming languages, and maps it to high-performance CPU, GPU, and FPGA programs, which can be optimized to achieve state-of-the-art. Internally, DaCe uses the Stateful DataFlow multiGraph (SDFG) data-centric intermediate representation: A transformable, interactive representation of code based on data movement. Since the input code and the SDFG are separate, it is possible to optimize a program without changing its source, so that it stays readable. On the other hand, transformations are customizable and user-extensible, so they can be written once and reused in many applications. With data-centric parallel programming, we enable direct knowledge transfer of performance optimization, regardless of the application or the target processor.

Ben-Nun, Tal↗

Generalized Modeling of Enrichment Cascades That Include Minor Isotopes

The monitoring of enrichment operations may require innovative analysis to allow for imperfect or missing data. The presence of minor isotopes may help or hurt - they can complicate a calculation or provide additional data to corroborate a calculation. However, they must be considered in a rigorous analysis, especially in cases involving reuse. This study considers matched-abundanceratio cascades that involve at least three isotopes and allows generalized input that does not require all feed assays or the enrichment factor to be specified. Calculations are based on the equations developed for the MSTAR code but are generalized to allow input of various combinations of assays, flows, and other cascade properties. Traditional cascade models have required specification of the enrichment factor, all feed assays, and the product and waste assays of the primary enriched component. The calculation would then produce the numbers of stages in the enriching and stripping sections and the remaining assays in waste and product streams. In cases where the enrichment factor or feed assays were not known, analysis was difficult or impossible. However, if other quantities are known (e.g., additional assays in waste or product streams), a reliable calculation is still possible with the new code, but such nonstandard input may introduce additional numerical difficulties into the calculation. Thus, the minimum input requirements for a stable solution are discussed, and a sample problem with a non-unique solution is described. Both heuristic and mathematically required guidelines are given to assist the application of cascade modeling to situations involving such non-standard input. As a result, this work provides both a calculational tool and specific guidance for evaluation of enrichment cascades in which traditional input data are either flawed or unknown. It is useful for cases involving minor isotopes, especially if the minor isotope assays are desired (or required) to be important contributors to the overall analysis.

99 GENERAL AND MISCELLANEOUS↗

Internal cycle modeling and environmental assessment of multiple cycle consumer products

Highlights: Black-Right-Pointing-Pointer Dynamic flow models are presented for remanufactured, reused or recycled products. Black-Right-Pointing-Pointer Early loss and stochastic return are included for fast and slow cycling products. Black-Right-Pointing-Pointer The reuse-to-input flow ratio (Internal Cycle Factor, ICF) is determined. Black-Right-Pointing-Pointer The cycle rate, which is increasing with the ICF, monitors eco-performance. Black-Right-Pointing-Pointer Early internal cycle losses diminish the ICF, the cycle rate and performance. - Abstract: Dynamic annual flow models incorporating consumer discard and usage loss and featuring deterministic and stochastic end-of-cycle (EOC) return by the consumer are developed for reused or remanufactured products (multiple cycle products, MCPs), including fast and slow cycling, short and long-lived products. It is shown that internal flows (reuse and overall consumption) increase proportionally to the dimensionless internal cycle factor (ICF) which is related to environmental impact reduction factors. The combined reuse/recycle (or cycle) rate is shown capable for shortcut, albeit effective, monitoring of environmental performance in terms of waste production, virgin material extraction and manufacturing impacts of all MCPs, a task, which physical variables (lifetime, cycling frequency, mean or total number of return trips) and conventional rates, via which environmental policy has been officially implemented (e.g. recycling rate) cannot accomplish. The cycle rate is shown to be an increasing (hyperbolic) function of ICF. The impact of the stochastic EOC return characteristics on total reuse and consumption flows, as well as on eco-performance, is assessed: symmetric EOC return has a small, positive effect on performance compared to deterministic, while early shifted EOC return is more beneficial. In order to be efficient, environmental policy should set higher minimum reuse targets for higher trippage MCPs. The results may serve for monitoring, flow accounting and comparative eco-assessment of MCPs. They may be useful in identifying reachable and efficient reuse/recycle targets for consumer products and in planning return via appropriate labelling and digital coding for enhancing environmental performance, while satisfying consumer demand.

12 MANAGEMENT OF RADIOACTIVE AND NON-RADIOACTIVE W↗