Search NASA⌕ Search

SEARCH · Search NASA

Results for “Kernel optimizations”

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 361 records · Page 20

Extending C++ for Heterogeneous Quantum-Classical Computing

In this report we present qcor - a language extension to C++ and compiler implementation that enables heterogeneous quantum-classical programming, compilation, and execution in a single-source context. Our work provides a first-of-its-kind C++ compiler enabling high-level quantum kernel (function) expression in a quantum-language agnostic manner, as well as a hardware-agnostic, retargetable compiler workflow targeting a number of physical and virtual quantum computing backends. qcor leverages novel Clang plugin interfaces and builds upon the XACC system-level quantum programming framework to provide a state-of-the-art integration mechanism for quantum-classical compilation that leverages the best from the community at-large. qcor translates quantum kernels ultimately to the XACC intermediate representation, and provides user-extensible hooks for quantum compilation routines like circuit optimization, analysis, and placement. This work details the overall architecture and compiler workflow for qcor, and provides a number of illuminating programming examples demonstrating its utility for near-term variational tasks, quantum algorithm expression, and feed-forward error correction schemes.

97 MATHEMATICS AND COMPUTING↗

A Framework for the Analysis of Compiler Optimizations

Compilers transform program source code to machine executable code. During this transformation, they perform a number of compiler optimizations to improve the performance of the generated executable code. Importantly, applying those optimizations depends on the source code structure, such as the parallel programming model used to parallelize an algorithm. Often, implementations of the same algorithm with different programming models have vastly different performance because the compiler optimized them differently. We create FAROS, a framework to structure and automate the analysis of compiler optimizations on programs. FAROS automates the building process, execution profiling, and analysis of compiler optimization of programs, through a configuration interface. It outputs compiler optimization reports to show which optimizations applied to which line of source code, leveraging compilation remarks output by the compiler. Also, FAROS supports benchmarking performance of different program versions by collecting execution time results. In this first release of FAROS, we provide a configuration file to analyze compiler optimization differences for sequential vs OpenMP compilation, including 38 programs consisting of HPC proxy/mini/large applications, and NAS and Rodina kernels for analysis.

Georgakoudis, Giorgis↗

Laser Intertial Fusion Energy: Neutronic Design Aspects of a Hybrid Fusion-Fission Nuclear Energy System

This study investigates the neutronics design aspects of a hybrid fusion-fission energy system called the Laser Fusion-Fission Hybrid (LFFH). A LFFH combines current Laser Inertial Confinement fusion technology with that of advanced fission reactor technology to produce a system that eliminates many of the negative aspects of pure fusion or pure fission systems. When examining the LFFH energy mission, a significant portion of the United States and world energy production could be supplied by LFFH plants. The LFFH engine described utilizes a central fusion chamber surrounded by multiple layers of multiplying and moderating media. These layers, or blankets, include coolant plenums, a beryllium (Be) multiplier layer, a fertile fission blanket and a graphite-pebble reflector. Each layer is separated by perforated oxide dispersion strengthened (ODS) ferritic steel walls. The central fusion chamber is surrounded by an ODS ferritic steel first wall. The first wall is coated with 250-500 μm of tungsten to mitigate x-ray damage. The first wall is cooled by Li 17 Pb 83 eutectic, chosen for its neutron multiplication and good heat transfer properties. The Li 17 Pb 83 flows in a jacket around the first wall to an extraction plenum. The main coolant injection plenum is immediately behind the Li 17 Pb 83 , separated from the Li 17 Pb 83 by a solid ODS wall. This main system coolant is the molten salt flibe (2LiF-BeF 2 ), chosen for beneficial neutronics and heat transfer properties. The use of flibe enables both fusion fuel production (tritium) and neutron moderation and multiplication for the fission blanket. A Be pebble (1 cm diameter) multiplier layer surrounds the coolant injection plenum and the coolant flows radially through perforated walls across the bed. Outside the Be layer, a fission fuel layer comprised of depleted uranium contained in Tristructural-isotropic (TRISO) fuel particles having a packing fraction of 20% in 2 cm diameter fuel pebbles. The fission blanket is cooled by the same radial flibe flow that travels through perforated ODS walls to the reflector blanket. This reflector blanket is 75 cm thick comprised of 2 cm diameter graphite pebbles cooled by flibe. The flibe extraction plenum surrounds the reflector bed. Detailed neutronics designs studies are performed to arrive at the described design. The LFFH engine thermal power is controlled using a technique of adjusting the 6 Li/ 7 Li enrichment in the primary and secondary coolants. The enrichment adjusts system thermal power in the design by increasing tritium production while reducing fission. To perform the simulations and design of the LFFH engine, a new software program named LFFH Nuclear Control (LNC) was developed in C++ to extend the functionality of existing neutron transport and depletion software programs. Neutron transport calculations are performed with MCNP5. Depletion calculations are performed using Monteburns 2.0, which utilizes ORIGEN 2.0 and MCNP5 to perform a burnup calculation. LNC supports many design parameters and is capable of performing a full 3D system simulation from initial startup to full burnup. It is able to iteratively search for coolant 6Li enrichments and resulting material compositions that meet user defined performance criteria. LNC is utilized throughout this study for time dependent simulation of the LFFH engine. Two additional methods were developed to improve the computation efficiency of LNC calculations. These methods, termed adaptive time stepping and adaptive mesh refinement were incorporated into a separate stand alone C++ library name the Adaptive Burnup Library (ABL). The ABL allows for other client codes to call and utilize its functionality. Adaptive time stepping is useful for automatically maximizing the size of the depletion time step while maintaining a desired level of accuracy. Adaptive meshing allows for analysis of fixed fuel configurations that would normally require a computationally burdensome number of depletion zones. Alternatively, Adaptive Mesh Refinement (AMR) adjusts the depletion zone size according to the variation in flux across the zone or fractional contribution to total absorption or fission. A parametric analysis on a fully mixed fuel core was performed using the LNC and ABL code suites. The resulting system parameters are found to optimize performance metrics using a 20 MT DU fuel load with a 20% TRISO packing and a 300 μm kernel radius operated with a fusion input power of 500 MW and a fission blanket gain of 4.0. LFFH potentially offers a proliferation resistant technology relative to other nuclear energy systems primarily because of no need for fuel enrichment or reprocessing. A figure of merit of the material attractiveness is examined and it is found that the fuel is effectively contaminated to an unattractive level shortly after the system is started due to fission product and minor actinide build up.

42 ENGINEERING↗

Modeling and Correcting the Time-Dependent ACS PSF

The ability to accurately measure the shapes of faint objects in images taken with the Advanced Camera for Surveys (ACS) on the Hubble Space Telescope (HST) depends upon detailed knowledge of the Point Spread Function (PSF). We show that thermal fluctuations cause the PSF of the ACS Wide Field Camera (WFC) to vary over time. We describe a modified version of the TinyTim PSF modeling software to create artificial grids of stars across the ACS field of view at a range of telescope focus values. These models closely resemble the stars in real ACS images. Using 10 bright stars in a real image, we have been able to measure HST s apparent focus at the time of the exposure. TinyTim can then be used to model the PSF at any position on the ACS field of view. This obviates the need for images of dense stellar fields at different focus values, or interpolation between the few observed stars. We show that residual differences between our TinyTim models and real data are likely due to the effects of Charge Transfer Efficiency (CTE) degradation. Furthermore, we discuss stochastic noise that is added to the shape of point sources when distortion is removed, and we present MultiDrizzle parameters that are optimal for weak lensing science. Specifically, we find that reducing the MultiDrizzle output pixel scale and choosing a Gaussian kernel significantly stabilizes the resulting PSF after image combination, while still eliminating cosmic rays/bad pixels, and correcting the large geometric distortion in the ACS. We discuss future plans, which include more detailed study of the effects of CTE degradation on object shapes and releasing our TinyTim models to the astronomical community.

Rhodes, Jason↗

Sums over geometries and improvements on the mean field approximation

The saddle points of a Lagrangian due to Efetov are analyzed. This Lagrangian was originally proposed as a tool for calculating systematic corrections to the Bethe approximation, a mean-field approximation which is important in statistical mechanics, glasses, coding theory, and combinatorial optimization. Detailed analysis shows that the trivial saddle point generates a sum over geometries reminiscent of dynamically triangulated quantum gravity, which suggests new possibilities to design sums over geometries for the specific purpose of obtaining improved mean-field approximations to D-dimensional theories. In the case of the Efetov theory, the dominant geometries are locally treelike, and the sum over geometries diverges in a way that is similar to quantum gravity's divergence when all topologies are included. Expertise from the field of dynamically triangulated quantum gravity about sums over geometries may be able to remedy these defects and fulfill the Efetov theory's original promise. The other saddle points of the Efetov Lagrangian are also analyzed; the Hessian at these points is nonnormal and pseudo-Hermitian, which is unusual for bosonic theories. The standard formula for Gaussian integrals is generalized to nonnormal kernels.

72 PHYSICS OF ELEMENTARY PARTICLES AND FIELDS↗

Optimization of Support Vector Machine (SVM) for Object Classification

The Support Vector Machine (SVM) is a powerful algorithm, useful in classifying data into species. The SVMs implemented in this research were used as classifiers for the final stage in a Multistage Automatic Target Recognition (ATR) system. A single kernel SVM known as SVMlight, and a modified version known as a SVM with K-Means Clustering were used. These SVM algorithms were tested as classifiers under varying conditions. Image noise levels varied, and the orientation of the targets changed. The classifiers were then optimized to demonstrate their maximum potential as classifiers. Results demonstrate the reliability of SVM as a method for classification. From trial to trial, SVM produces consistent results.

support vector machice (SVM)↗

Optimized beam sculpting with generalized fringe-rate filters

We generalize the technique of fringe-rate filtering, whereby visibilities measured by a radio interferometer are re-weighted according to their temporal variation. As the Earth rotates, radio sources traverse through an interferometer’s fringe pattern at rates that depend on their position on the sky. Capitalizing on this geometric interpretation of fringe rates, we employ time-domain convolution kernels to enact fringe-rate filters that sculpt the effective primary beam of antennas in an interferometer. As we show, beam sculpting through fringe-rate filtering can be used to optimize measurements for a variety of applications, including mapmaking, minimizing polarization leakage, suppressing instrumental systematics, and enhancing the sensitivity of power-spectrum measurements. We show that fringe-rate filtering arises naturally in minimum variance treatments of many of these problems, enabling optimal visibility-based approaches to analyses of interferometric data that avoid systematics potentially introduced by traditional approaches such as imaging. Our techniques have recently been demonstrated in Ali et al., where new upper limits were placed on the 21 cm power spectrum from reionization, showcasing the ability of fringe-rate filtering to successfully boost sensitivity and reduce the impact of systematics in deep observations.

79 ASTRONOMY AND ASTROPHYSICS↗

A Novel Gradient Projection Approach for Fourier-Based Image Restoration

This work deals with the ill-posed inverse problem of reconstructing a two-dimensional image of an unknown object starting from sparse and nonuniform measurements of its Fourier Transform. In particular, if we consider a priori information about the target image (e.g., the nonnegativity of the pixels), this inverse problem can be reformulated as a constrained optimization problem, in which the stationary points of the objective function can be viewed as the solutions of a deconvolution problem with a suitable kernel. We propose a fast and effective gradient-projection iterative algorithm to provide regularized solutions of such a deconvolution problem by early stopping the iterations. Preliminary results on a real-world application in astronomy are presented.

71 CLASSICAL AND QUANTUM MECHANICS, GENERAL PHYSIC↗

Performance and Portability of a Linear Solver Across Emerging Architectures

A linear solver algorithm used by a large-scale unstructured-grid computational fluid dynamics application is examined for a broad range of familiar and emerging architectures. Efficient implementation of a linear solver is challenging on recent CPUs offering vector architectures. Vector loads and stores are essential to effectively utilize available memory bandwidth on CPUs, and maintaining performance across different CPUs can be difficult in the face of varying vector lengths offered by each. A similar challenge occurs on GPU architectures, where it is essential to have coalesced memory accesses to utilize memory bandwidth effectively. In this work, we demonstrate that restructuring a computation, and possibly data layout, with regard to architecture is essential to achieve optimal performance by establishing a performance benchmark for each target architecture in a low level language such as vector intrinsics or CUDA. In doing so, we demonstrate how a linear solver kernel can be mapped to Intel® Xeon™ and Xeon Phi™, Marvell® ThunderX2®, NEC® SX-Aurora™ TSUBASA Vector Engine, and NVIDIA® and AMD® GPUs. We further demonstrate that the required code restructuring can be achieved in higher level programming environments such as OpenACC, OCCA, and Intel® OneAPI™/SYCL, and that each generally results in optimal performance on the target architecture. Relative performance metrics for all implementations are shown, and subjective ratings for ease of implementation and optimization are suggested.

Programming models↗

Exploring temporal community evolution: algorithmic approaches and parallel optimization for dynamic community detection

Abstract Dynamic (temporal) graphs are a convenient mathematical abstraction for many practical complex systems including social contacts, business transactions, and computer communications. Community discovery is an extensively used graph analysis kernel with rich literature for static graphs. However, community discovery in a dynamic setting is challenging for two specific reasons. Firstly, the notion of temporal community lacks a widely accepted formalization, and only limited work exists on understanding how communities emerge over time. Secondly, the added temporal dimension along with the sheer size of modern graph data necessitates new scalable algorithms. In this paper, we investigate how communities evolve over time based on several graph metrics under a temporal formalization. We compare six different algorithmic approaches for dynamic community detection for their quality and runtime. We identify that a vertex-centric (local) optimization method works as efficiently as the classical modularity-based methods. To its advantage, such local computation allows for the efficient design of parallel algorithms without incurring a significant parallel overhead. Based on this insight, we design a shared-memory parallel algorithm DyComPar , which demonstrates between 4 and 18 fold speed-up on a multi-core machine with 20 threads, for several real-world and synthetic graphs from different domains.

97 MATHEMATICS AND COMPUTING↗

Next generation extended Lagrangian first principles molecular dynamics

Extended Lagrangian Born-Oppenheimer molecular dynamics [Phys. Rev. Lett., 100, 123004 (2008)] is formulated for general Hohenberg-Kohn density functional theory and compared to the extended Lagrangian framework of rst principles molecular dynamics by Car and Parrinello [Phys. Rev. Lett. 55, 2471 (1985)]. It is shown how extended Lagrangian Born-Oppenheimer molecular dynamics overcomes several shortcomings of regular, direct Born-Oppenheimer molecular dynamics, while improving or maintaining important features of Car-Parrinello simulations. The accuracy of the electronic degrees of freedom in extended Lagrangian Born-Oppenheimer molecular dynamics, with respect to the exact Born-Oppenheimer solution, is of second order in the size of the integration time step and of fourth order in the potential energy surface. Improved stability over recent formulations of extended Lagrangian Born-Oppenheimer molecular dynamics is achieved by generalizing the theory to finite temperature ensembles, using fractional occupation numbers in the calculation of the inner-product kernel of the extended harmonic oscillator that appears as a preconditioner in the electronic equations of motion. Materials systems that normally exhibit slow self-consistent field convergence can be simulated using integration time steps of the same order as in direct Born- Oppenheimer molecular dynamics, but without the requirement of an iterative, non-linear electronic ground state optimization prior to the force evaluations and without a systematic drift in the total energy. In combination with proposed low-rank and on-the- y updates of the kernel, this formulation provides an efficient and general framework for quantum based Born-Oppenheimer molecular dynamics simulations.

74 ATOMIC AND MOLECULAR PHYSICS↗

Benchmarking Operators in Deep Neural Networks for Improving Performance Portability of SYCL

SYCL is a portable programming model for heterogeneous computing, so it is important to obtain reasonable performance portability of SYCL. Towards the goal of better understanding and improving performance portability of SYCL for machine learning workloads, we have been developing benchmarks for basic operators in deep neural networks (DNNs). These operators could be offloaded to heterogeneous computing devices such as graphics processing units (GPUs) to speed up computation. In this paper, we introduce the benchmarks, evaluate the performance of the operators on GPU-based systems, and describe the causes of the performance gap between the SYCL and Compute Unified Device Architecture (CUDA) kernels. We find that the causes are related to the utilization of the texture cache for read-only data, optimization of the memory accesses with strength reduction, use of local memory, and register usage per thread. We hope that the efforts of developing benchmarks for studying performance portability will stimulate discussion and interactions within the community.

Jin, Zheming [ORNL] (ORCID:000000027197780X)↗

Population Count on Intel® CPU, GPU, and FPGA

Population count is a primitive used in many applications. Commodity processors have dedicated instructions for achieving high-performance population count. Motivated by the productivity of high-level synthesis and the importance of population count, in this paper we investigated the OpenCL implementations of population count algorithms, and evaluated their performance and resource utilizations on an FPGA. Based on the results, we select the most efficient implementation. Then we derived a reduction pattern from a representative application of population count. We parallelized the reduction with atomic functions, and optimized it with vectorized memory accesses, tree reduction, and compute-unit duplication. We evaluated the performance of the reduction kernel on an Intel (R) Xeon (R) CPU and an Intel (R) IrisT Pro integrated GPU, and an FPGA card that features an Intel (R) Arria (R) 10 FPGA. When DRAM memory bandwidth is comparable on the three computing platforms, the FPGA can achieve the highest kernel performance for large workload. On the other hand, we described performance bottlenecks on the FPGA. To make FPGAs more competitive in raw performance compared to high-performant CPU and GPU platforms, it is important to increase external memory bandwidth, minimize data movement between a host and a device, and reduce OpenCL runtime overhead on an FPGA.

heterogeneous computing↗

Statistical and machine learning models for optimizing energy in parallel applications

Rising power costs and constraints are driving a growing focus on the energy efficiency of high performance computing systems. The unique characteristics of a particular system and workload and their effect on performance and energy efficiency are typically difficult for application users to assess and to control. Settings for optimum performance and energy efficiency can also diverge, so we need to identify trade-off options that guide a suitable balance between energy use and performance. We present statistical and machine learning models that only require a small number of runs to make accurate Pareto-optimal trade-off predictions using parameters that users can control. We study model training and validation using several parallel kernels and more complex workloads, including Algebraic Multigrid (AMG), Large-scale Atomic Molecular Massively Parallel Simulator, and Livermore Unstructured Lagrangian Explicit Shock Hydrodynamics. Here, we demonstrate that we can train the models using as few as 12 runs, with prediction error of less than 10%. Our AMG results identify trade-off options that provide up to 45% improvement in energy efficiency for around 10% performance loss. We reduce the sample measurement time required for AMG by 90%, from 13 h to 74 min.

97 MATHEMATICS AND COMPUTING↗

Evaluating Operators in Deep Neural Networks for Improving Performance Portability of SYCL

SYCL is a portable programming model for heterogeneous computing, so it is important to obtain reasonable performance portability of SYCL. Towards the goal of better understanding and improving performance portability of SYCL for machine learning workloads, we have been developing benchmarks for basic operators in deep neural networks (DNNs). These operators could be offloaded to heterogeneous computing devices such as graphics processing units (GPUs) to speed up computation. In this work, we introduce the benchmarks, evaluate the performance of the operators on GPU-based systems, and describe the causes of the performance gap between the SYCL and Compute Unified Device Architecture (CUDA) kernels. We find that the causes are related to the utilization of the texture cache for read-only data, optimization of the memory accesses with strength reduction, shared local memory accesses, and register usage per thread. We hope that the efforts of developing benchmarks for studying performance portability will stimulate discussion and interactions within the community.

97 MATHEMATICS AND COMPUTING↗

Investigation of Impinging Stream Vortex Chamber Concepts for Liquid Rocket Engine Applications

This paper addresses the progress of technology development of a laser ignition system at NASA Marshall Spac Flight Center (MSFC). Initial hot-fire tests in a small-scale rocket chamber at MSFC have demonstrated the dual pulse laser-induced spark (DPLIS) technique, which has an advantage over existing single-pulse laser ignition techniques in that it can be optimized in its laser pulse format to maximize the initial plasma volume, the plasm: lifetime, as well as the flame kernel growth rate. The distribution of the total laser energy into two separate pulse also lowers the peak power that would need to be sent through fiber optics to the combustion chamber, making the implementation of this technique more practical than other single-pulse techniques. A first generation prototype of an optic fiber-coupled laser ignition system will be tested a rocket chamber with RP-1/GOX and GH2/GOX propellants systems. Other relevant technology, such as optical windows, flight-qualified laser system etc. will be discussed in this paper.

Trinh, Huu P.↗

Neutronic feasibility analysis of fully ceramic microencapsulated fuel for commercial PWRs

The fully ceramic microencapsulated (FCM) fuel is based on tri-structural isotropic (TRISO) coated particles embedded in silicon carbide (SiC) matrix, which is among the accident tolerant fuel concept options. With the strength of high fission product retention, the FCM fuel provides potential superior safety performance. Compared to the conventional standard UO{sub 2} fuel, the deficiency of FCM fuel is its considerable lower fissile inventory, which results in a reduced reactor power or/and life. Supposing the FCM fuel is used as direct replacement of the fuel in commercial PWRs, the spectrum is softened due to the usage of SiC as matrix, and the moderator temperature coefficient is possible to be positive at the beginning of life, leading to high risk during operation. A neutronic feasibility study of FCM fuel utilized in commercial PWRs is performed in the paper. The fuel enrichment and under-moderated lattice are evaluated by analyzing the typical TRISO particle with UO{sub 2} kernels which is widely used in high temperature gas reactors and that with enlarged UN fuel kernels. It was found that under the mandatory constraint of low enriched uranium, the FCM fuel with UO{sub 2} kernels, although relatively mature, is only capable of small reactor designs, and the assembly lattice needs to be modified. The FCM fuel with UN kernels, when directly loading in the commercial PWRs, can yield comparable reactor power and life; however, a higher fuel enrichment and the fuel design and fabrication need to be optimized. (authors)

11 NUCLEAR FUEL CYCLE AND FUEL MATERIALS↗

A case study of CUDA FORTRAN and OpenACC for an atmospheric climate kernel

The porting of a key kernel in the tracer advection routines of the Community Atmosphere Model – Spectral Element (CAM-SE) to use Graphics Processing Units (GPUs) using OpenACC is considered in comparison to an existing CUDA FORTRAN port. The development of the OpenACC kernel for GPUs was substantially simpler than that of the CUDA port. Also, OpenACC performance was about 1.5× slower than the optimized CUDA version. Particular focus is given to compiler maturity regarding OpenACC implementation for modern FORTRAN, and it is found that the Cray implementation is currently more mature than the PGI implementation. Still, for the case that ran successfully on PGI, the PGI OpenACC runtime was slightly faster than Cray. The results show encouraging performance for OpenACC implementation compared to CUDA while also exposing some issues that may be necessary before the implementations are suitable for porting all of CAM-SE. Furthermore, most notable are that GPU shared memory should be used by future OpenACC implementations and that derived type support should be expanded.

54 ENVIRONMENTAL SCIENCES↗