Search NASA⌕ Search

SEARCH · Search NASA

Results for “Programming languages”

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 847 records · Page 47

High-Performance Design Patterns for Modern Fortran

This paper presents ideas for using coordinate-free numerics in modern Fortran to achieve code flexibility in the partial differential equation (PDE) domain. We also show how Fortran, over the last few decades, has changed to become a language well-suited for state-of-the-art software development. Fortran’s new coarray distributed data structure, the language’s class mechanism, and its side-effect-free, pure procedure capability provide the scaffolding on which we implement HPC software. These features empower compilers to organize parallel computations with efficient communication. We present some programming patterns that support asynchronous evaluation of expressions comprised of parallel operations on distributed data. We implemented these patterns using coarrays and the message passing interface (MPI). We compared the codes’ complexity and performance. The MPI code is much more complex and depends on external libraries. The MPI code on Cray hardware using the Cray compiler is 1.5–2 times faster than the coarray code on the same hardware. The Intel compiler implements coarrays atop Intel’s MPI library with the result apparently being 2–2.5 times slower than manually coded MPI despite exhibiting nearly linear scaling efficiency. As compilers mature and further improvements to coarrays comes in Fortran 2015, we expect this performance gap to narrow.

Haveraaen, Magne↗

Building Energy Baseline Analysis Package

The package includes several programs that perform calculations involving time-series energy data (also known as "interval load data", including "smart meter" and "green button" data). The software is written in Python and R and requires both of those languages. It also requires Python packages (??), and the RT "optparse" library.

Price, Phillip↗

Connecting Minds: AI Use Cases to Bridge Power Systems and Large Language Models for Practical Applications

Recent advances in artificial intelligence (AI) and development of large language models (LLMs) present the opportunity to develop a new generation of power systems applications. In contrast with early power system AI applications based on structured numerical data, LLMs offer unique capabilities to perform logical reasoning using text documents, unstructured data, and application programming interface (API) calls to computational software. This paper seeks to bridge the knowledge gap between power systems engineers and LLM developers through a crosscutting explanation of use cases, characteristics, requirements, practical considerations from the perspectives of both LLM capabilities and industry needs. Specific focus is given to applications that can be realistically deployed by electric utilities. After introducing the architecture of LLMs and unique challenges of the power systems domain, this paper proposes twenty representative LLM applications grouped into categories of 1) power system operations, 2) asset management, 3) system planning and analytics, and 4) energy management and protection systems. Five use cases are presented within each category with descriptions of the motivation, objectives, approaches, example inputs / outputs, and benefits of each use case.

24 POWER TRANSMISSION AND DISTRIBUTION↗

Fiats: Functional inference and training for surrogates

Fiats provides a platform for research on the training and deployment of neural-network surrogate models for computational science. Fiats also supports exploring, advancing, and combining functional, object-oriented, and parallel programming patterns in Fortran 2023. As such, the Fiats name has dual expansions: “Functional Inference And Training for Surrogates” or “Fortran Inference And Training for Science.” Fiats inference and training procedures are pure and therefore satisfy a language constraint imposed on procedure invocations inside Fortran’s parallel loop construct: do concurrent. Furthermore, the Fiats training procedures are built around a do concurrent parallel reduction. Several compilers can automatically parallelize do concurrent on Central Processing Units (CPUs) or Graphics Processing Units (GPUs). Fiats thus aims to achieve performance portability through standard language mechanisms.

Rouson, Damian [Lawrence Berkeley National Laborat↗

Clean Energy Innovation Ecosystems Discovery - Measuring Innovation Through Data Analytics (MIDAS)

As part of the Mission Innovation rollout at the Paris COP 21, 20 countries announced to double their R&D budgets over 5 years to accelerate lab-to-market clean energy innovations. These innovations must address technical urgency and navigate complex institutional, social and financial environments. To inform budget and program development, policymakers need to understand existing clean energy innovation ecosystems (IE) and their characteristics at the local, state, and regional levels within the US. Researchers at ORNL have implemented a ground-breaking application of natural language processing, link analysis, and other computational techniques to transform text and numerical data into metrics on clean energy innovation activity and geography. The 'Measuring Innovation through Data Analytics' (MIDAS) application uses data to determine where clean energy innovation ecosystems exist and the underlying scoring algorithm "ranks" the strength of the ecosystem for several clean energy technologies. The selection of the data sources is driven by the fact that a clean energy IE can be identified as an intersection of nascent clean technology efforts and financing mechanisms and related large companies located in a geographically concentrated area with an enabling environment to encourage commercialization and networking assets to facilitate communication. MIDAS is a machine-assisted methodology that provides the user with a replicable method to rapidly identify, quantify and characterize clean energy innovation ecosystems. This software application and the underlying datasets have the potential to address many important policy questions. The initial broad list of U.S. clean energy ecosystems, with geographic area, technology focus, and list and types of involved organizations can help describe regional tech activities and capabilities. Other potential applications include understanding the effect of private sector investments on ecosystem activity, and trends analysis.

Chinthavali, Supriya↗

Evaluating Age Effects on HEPA Filter Performance

Nuclear grade high efficiency particulate air (HEPA) filters are routinely employed as the final control element in confinement ventilation systems. The traditional HEPA filter utilizes a pleated filter medium of fibrous glass that has been produced in a manner analogous to manufacturing paper. These filters are the physically weakest element in a containment ventilation system. Containment ventilation systems are designed to condition the air-stream (temperature, relative humidity, moisture, particle size distribution of aerosols, and aerosol concentration) to levels/conditions that fibrous glass HEPA filters can handle. Approximately 6000 nuclear grade HEPA filters are purchased each year for use in the DOE/NNSA complex. Additional filters are purchased for use in commercial nuclear power generation and ventilation systems of other nuclear applications. These filters are designed and tested in accordance with the American Society of Mechanical Engineers (ASME) AG-1 Code Nuclear Air and Gas Treatment. This code establishes design requirements and qualification procedures. Qualification testing of axial flow filters is described in paragraphs 5000 and following of AG-1. The series of qualification tests are intended to describe the operating envelope of HEPA filters and verify the reliability of a filter design. AG-1 qualification also confirms the pedigree of components used in manufacture for that filter design. The collective set of qualification tests establishes the assumed operating envelope for AG-1 filters. The effects of age on HEPA filter performance have been a concern for at least two decades. A combination of physical evaluation of aged filter media and a review of filter failure records resulted in Appendix C of the Nuclear Air Cleaning Handbook (NACH), Determination of HEPA Filter Life. This states that HEPA filters are not to be used beyond 10 years from the date of manufacture. Additionally, filters put into service in locations where they may become wet are to be taken out of service five years from date of manufacture. Filters that have become wet are to be taken out of service immediately. Finally, it should also be pointed out that filters held in Level B storage are subject to the same 10-year service life. Very limited bench-scale testing in the 1990's raised concern that aging HEPA filters do not have the strength to withstand an accident scenario. In May of 1999, the DNFSB released a Technical Report 23 entitled HEPA Filters Used in the Department of Energy's Hazardous Facilities. This report expressed concerns for the potential vulnerability of HEPA filters in vital safety systems. Concerns and uncertainty associated with degradation of HEPA filter performance over time led the DOE sites to limit HEPA filter service life to 10 years from the date of manufacture or five years in cases where filters may become wet. Establishment of a conservative service life needs to be based on data from a structured series of tests comparing the performance envelope of new and aged full-scale filters. A service life that is insufficiently conservative endangers workers and the public. One that is excessively conservative costs can cause hundreds of otherwise unnecessary filter changes. This increases exposure of employees, disrupts facility operations, and increase disposal costs by millions of dollars annually. Conclusive data are needed to resolve uncertainty associated with the damaging effects of aging on durability of HEPA filters. Therefore, this study needs to provide a sufficient body of evidence to allow DOE and site professionals to make prudent decisions. An updated version of ASME AG-1 Section FC included a non-mandatory appendix that would include the DOE guidance for service life of HEPA filters. Balloting of this revision generated significant resistance to inclusion of any kind of service life language citing the lack of supporting experimental data. Efforts to resolve negative votes failed and resistance to acceptance of the language increased. The result has been to not include service language in Section FC and requests to remove it from sections that already include such language. The recent activity of the ASME AG-1 Committee on Nuclear Air and Gas Treatment effectively de-emphasizes following DoE's service life guidelines. The DOE Office of Nuclear Safety under its NSR and D program provided the Mississippi State University Institute for Clean Energy Technology (ICET) finding to initiate a study to determine the effects of aging on AG-1 axial flow filters just prior to actions taken within the AG-1 committee regarding service life. The NSR and D funding facilitated timely development of a national technical working group comprised of members from the regulatory community, DOE complex, and commercial power to resolve uncertainty associated with effects of aging. The Department of Energy Office of Environmental Management (DOE-EM) has been funding the ICET to evaluate the performance envelope for AG-1 HEPA filters. ICET is one of DOE-EM's qualified suppliers. Synergy has been achieved by associating the NSR and D aged filter activities to testing activities evaluating the performance envelopes of separator and separator-less AG-1 HEPA filters funded by DOE-EM. The DOE-EM funded activities establish baseline data for the aged filter study and future EM funding will provide long term support for testing additional aged filters. EM funding of new filters includes analytical evaluation of media tensile strength by thermal analysis to establish baseline values and determine mass loss of moisture resistance and acrylic binders due to use. All of these values can be used for comparison of test results for aged filters. (authors)

07 ISOTOPE AND RADIATION SOURCES↗

Mojo: MLIR-based Performance-Portable HPC Science Kernels on GPUs for the Python Ecosystem

We explore the performance and portability of the novel Mojo language for scientific computing workloads on GPUs. As the first language based on the LLVM’s Multi-Level Intermediate Representation (MLIR) compiler infrastructure, Mojo aims to close performance and productivity gaps by combining Python’s interoperability and CUDA-like syntax for compile-time portable GPU programming. We target four scientific workloads: a seven-point stencil (memory-bound), BabelStream (memory-bound), miniBUDE (compute-bound), and Hartree–Fock (compute-bound with atomic operations); and compare their performance against vendor baselines on NVIDIA H100 and AMD MI300A GPUs. We show that Mojo’s performance is competitive with CUDA and HIP for memory-bound kernels, whereas gaps exist on AMD GPUs for atomic operations and for fast-math compute-bound kernels on both AMD and NVIDIA GPUs. Although the learning curve and programming requirements are still fairly low-level, Mojo can close significant gaps in the fragmented Python ecosystem in the convergence of scientific computing and AI.

Godoy, William [ORNL] (ORCID:0000000225905178)↗

KLOKKOS: Automated test generation for performance-portable programs

SAND2024-13830O The KLOKKOS project provides a suite of test generation and validation tools to increase maintainability and portability of Kokkos programs. KLOKKOS, a portmanteau of Klee and Kokkos, is developing an automated test generation for performance-portable programs using Clang/low-level virtual machine (LLVM) and formal methods. KLOKKOS is based on several topics in computer science: the development of symbolic and concolic analysis of LLVM and C++ codes, formal semantics and type theory, C++ templates and language features, LLVM compiler infrastructure, and data parallel primitives. Sandia National Laboratories is a multimission laboratory managed and operated by National Technology & Engineering Solutions of Sandia, LLC, a wholly owned subsidiary of Honeywell International Inc., for the U.S. Department of Energy’s National Nuclear Security Administration under contract DE-NA0003525

SciDAC↗

Domain Specific Language Support for Exascale. Final Project Report

The project developed a domain specific translator enable legacy MPI source code to tolerate communication delays, which are increasing over time due to technological factors. The translator performs source-to-source translation that incorporates semantic information into the translation process. The output of the translator is a C program runs as a data driven program, and uses an existing run time to overlap communication automatically

97 MATHEMATICS AND COMPUTING↗

TenSQL v.2023.01.20

SAND2024-02520O Tensor SQL Database performs certain relational database management system/structured query language (RDBMS/SQL) queries faster than is possible using existing state-of-the-art databases. Tensor SQL is optimized for sparse linear algebra problems and other whole-table queries. Currently, the database is being used only for research and program development. Sandia National Laboratories is a multimission laboratory managed and operated by National Technology & Engineering Solutions of Sandia, LLC, a wholly owned subsidiary of Honeywell International Inc., for the U.S. Department of Energy’s National Nuclear Security Administration under contract DE-NA0003525.

Roose, Jonathan↗

Hanford River Protection Project Life cycle Cost Modeling Tool to Enhance Mission Planning - 13396

The Life cycle Cost Model (LCM) Tool is an overall systems model that incorporates budget, and schedule impacts for the entire life cycle of the River Protection Project (RPP) mission, and is replacing the Hanford Tank Waste Operations Simulator (HTWOS) model as the foundation of the RPP system planning process. Currently, the DOE frequently requests HTWOS simulations of alternative technical and programmatic strategies for completing the RPP mission. Analysis of technical and programmatic changes can be performed with HTWOS; however, life cycle costs and schedules were previously generated by manual transfer of time-based data from HTWOS to Primavera P6. The LCM Tool automates the preparation of life cycle costs and schedules and is needed to provide timely turnaround capability for RPP mission alternative analyses. LCM is the simulation component of the LCM Tool. The simulation component is a replacement of the HTWOS model with new capability to support life cycle cost modeling. It is currently deployed in G22, but has been designed to work in any full object-oriented language with an extensive feature set focused on networking and cross-platform compatibility. The LCM retains existing HTWOS functionality needed to support system planning and alternatives studies going forward. In addition, it incorporates new functionality, coding improvements that streamline programming and model maintenance, and capability to input/export data to/from the LCM using the LCM Database (LCMDB). The LCM Cost/Schedule (LCMCS) contains cost and schedule data and logic. The LCMCS is used to generate life cycle costs and schedules for waste retrieval and processing scenarios. It uses time-based output data from the LCM to produce the logic ties in Primavera P6 necessary for shifting activities. The LCM Tool is evolving to address the needs of decision makers who want to understand the broad spectrum of risks facing complex organizations like DOE-RPP to understand how near-term programmatic decisions affect life cycle costs and commitments. (authors)

54 ENVIRONMENTAL SCIENCES↗

FOSTERING MULTI-LATERAL COOPERATION BETWEEN THE GOVERNMENTS OF MEXICO, COLOMBIA, AND THE UNITED STATES TO ENHANCE THE PROTECTION OF HIGH-ACTIVITY RADIOACTIVE SOURCES

The Global Threat Reduction Initiative (GTRI) reduces and protects vulnerable nuclear and radiological material located at civilian sites worldwide from sabotage, theft or diversion. The GTRI program has worked successfully with foreign countries to remove and protect nuclear and radioactive materials including high-activity sources used in medical, commercial, and research applications. There are many barriers to successful bilateral cooperation that must be overcome including language, preconceived perceptions, long distances, and different views on the threat and protection requirements. Successful cooperation is often based on relationships and building trusting relationships takes time. In the case of Mexico, GTRI first made contact in 2005. The project then lost momentum and stalled. At the same time, GTRI’s cooperation with the Republic of Colombia was a resounding success resulting in the securing of forty sites; the consolidation of numerous disused/orphan sources at a secure national storage facility; and, the development of a comprehensive approach to security including, inter alia, training and sustainability. The government of Colombia also showcased this comprehensive approach to thirteen Central American and Caribbean countries at a GTRI regional security conference held in Panama in October 2004. Representatives from the Colombian government were aware of GTRI’s interest in initiating cooperation with the Government of Mexico and to facilitate this cooperation, they offered to invite their Mexican counterparts to Colombia to observe its successful cooperation with GTRI. Shortly after that visit, the Government of Mexico agreed to move forward and requested that the cooperative efforts in Mexico be performed in a tripartite manner, leveraging the skills, experience, and resources of the Colombians. As a result, 22 of Mexico’s largest radioactive sites have had security upgrades in place within 18 months of cooperation.

11 NUCLEAR FUEL CYCLE AND FUEL MATERIALS↗

Power/energy use cases for high performance computing

Power and Energy have been identified as a first order challenge for future extreme scale high performance computing (HPC) systems. In practice the breakthroughs will need to be provided by the hardware vendors. But to make the best use of the solutions in an HPC environment, it will likely require periodic tuning by facility operators and software components. This document describes the actions and interactions needed to maximize power resources. It strives to cover the entire operational space in which an HPC system occupies. The descriptions are presented as formal use cases, as documented in the Unified Modeling Language Specification [1]. The document is intended to provide a common understanding to the HPC community of the necessary management and control capabilities. Assuming a common understanding can be achieved, the next step will be to develop a set of Application Programing Interfaces (APIs) to which hardware vendors and software developers could utilize to steer power consumption.

97 MATHEMATICS AND COMPUTING↗

Using Verified Lifting to Optimize Legacy Stencil Codes (Final Project Report)

This project investigated new techniques for compiling stencil and stencil-like computations. Stencils computations are commonly found in applications such as image processing, physical simulations, image processing, and machine learning. In recent years, many high-performance domain-specific languages (DSLs) have been proposed to optimize stencil computations. To leverage such DSLs, however, existing codes often need to be rewritten. Such rewriting is manual, labor intensive, and error-prone. To alleviate such issues, this project investigated the application of program synthesis and artificial learning techniques to enable stencil computations to automatically leverage new high-performance DSLs. Rather than constructing syntax driven rules, verified lifting uses program synthesis to search for a target code fragment to compile the given input code into. In addition, it also searches for a proof that validates how the found target code fragment preserves the semantics of the original input. Thus, the target code fragment is guaranteed to be semantically equivalent to the input.

97 MATHEMATICS AND COMPUTING↗

Language games: Advanced R & R packages: Book Review

Readers who wrangle answers from data by extended refinement of available computational tools have many options and resources available. Inevitably, they will develop their own methods tailored to the problem at hand.Two new books have recently been published, each of which is useful addition to the library for a scientist who programs with data. The two books reviewed are both written by H. Wickham. The titles are ''Advanced R'' and ''R Packages'', both published in 2015.

97 MATHEMATICS AND COMPUTING↗

MR-2016 US-Japan Workshop on Magentic Reconnection Travel Support

The US-Japan workshop on Magnetic Reconnection (MR2016), was held in Napa California from March 7th through 11th, 2016. Details about the program, including invited speakers can be found here: (http://www.magneticreconnection.org/mr2016). Background: The MR Workshop is an international meeting that began in 2000 with its original focus on magnetic reconnection serving as a link between the research groups in US and Japan. Since then, the meeting has grown and is now recognized as one of the primary international workshops on magnetic reconnection. In its format, researchers from both the laboratory community and from the space research community have held 12 workshops bringing together the diverse researchers from the space and laboratory experimental fields. Plasma physics is the common language that ties together all scientists who study the waves, particle acceleration and heating, magnetic reconnection, dynamos, global and micro-stability of plasmas, magnetic turbulence and plasma’s transport problems. The meeting received $9,575 from the U.S. Dept. of Energy funding. This support was used to cover the registration fees ($575 per person) and accommodations for ten junior colleagues (graduate students and postdocs). Applications were solicited and then reviewed by the program committee based on recommendations from the applicants’ advisers.

70 PLASMA PHYSICS AND FUSION TECHNOLOGY↗

Andra's Memory Program - Linguistics and Semiology - 15587

In the framework of its Memory Program, Andra has launched various studies related to semiotics, for the medium and long term. Part of this work, dealing with linguistics and semiotics, is performed at the Centre de Recherches Semiotiques (CeReS) of the University of Limoges. Preliminary results highlight the fact that language durability may be reasonably considered for the medium term, but cannot be expected beyond a few thousands of years, and that languages cannot guarantee message appropriation. The role of Man and of the disposal site itself in message transmission is emphasized. In this context, art may play an important role in this transmission, by transmitting the meaning without necessarily using language. By the way, Andra has been exploring for several years the role of art for memory transmission, by supporting the work of artists interested in this field. In future research, Andra will promote more cross fertilization of artistic and academic reflections. (authors)

99 GENERAL AND MISCELLANEOUS↗

Lifeline-based Global Load Balancing

On shared-memory systems, Cilk-style work-stealing has been used to effectively parallelize irregular task-graph based applications such as Unbalanced Tree Search (UTS). There are two main difficulties in extending this approach to distributed memory. In the shared memory approach, thieves (nodes without work) constantly attempt to asynchronously steal work from randomly chosen victims until they find work. In distributed memory, thieves cannot autonomously steal work from a victim without disrupting its execution. When work is sparse, this results in performance degradation. In essence, a direct extension of traditional work-stealing to distributed memory violates the work-first principle underlying work-stealing. Further, thieves spend useless CPU cycles attacking victims that have no work, resulting in system inefficiencies in multi-programmed contexts. Second, it is non-trivial to detect active distributed termination (detect that programs at all nodes are looking for work, hence there is no work). This problem is well-studied and requires careful design for good performance. Unfortunately, in most existing languages/frameworks, application developers are forced to implement their own distributed termination detection. In this paper, we develop a simple set of ideas that allow work-stealing to be efficiently extended to distributed memory. First, we introduce lifeline graphs: low-degree, low diameter, fully connected directed graphs. Such graphs can be constructed from k-dimensional hypercubes. When a node is unable to find work after w unsuccessful steals, it quiesces after informing the outgoing edges in its lifeline graph. Quiescent nodes do not disturb other nodes. A quiesced node is reactivated when work arrives from a lifeline and itself shares this work with those of its incoming lifelines that are activated. Termination occurs precisely when computation at all nodes has quiesced. In a language such as X10, such passive distributed termination can be detected automatically using the finish construct -- no application code is necessary.

99 GENERAL AND MISCELLANEOUS↗