Search NASA⌕ Search

SEARCH · Search NASA

Results for “code optimization”

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 235 records · Page 13

Design of a compact, permanent magnet electron cyclotron resonance ion source for proton and H{sub 2}{sup +} beam production

A 2.45 GHz microwave ion source was developed at China Institute of Atomic Energy (CIAE) for proton beam production of over 60 mA [B.-Q. Cui, Y.-W. Bao, L.-Q. Li, W.-S. Jiang, and R.-W. Wang, Proceedings of the High Current Electron Cyclotron Resonance (ECR) Ion Source for Proton Accelerator, APAC-2001, 2001 (unpublished)]. For various proton beam applications, another 2.45 GHz microwave ion source with a compact structure is designed and will be built at CIAE as well for high current proton beam production. It is also considered to be used for the test of H{sub 2}{sup +} beam, which could be injected into the central region model cyclotron at CIAE, and accelerated to 5 MeV before extraction by stripping. The required ECR magnetic field is supplied by all the permanent magnets rather than electrical solenoids and six poles. The magnetic field distribution provided by this permanent magnets configuration is a large and uniformly volume of ECR zone, with central magnetic field of a magnitude of {approx}875 Gs[T. Taylor and J. S. C. Wills, Nucl. Instrum. Methods Phys. Res. A 309, 37 (1991)]. The field adjustment at the extraction end can be implemented by moving the position of the magnet blocks. The results of plasma, coupling with 2.45 GHz microwave in the ECR zone inside the ion source are simulated by particle-in-cell code to optimize the density by adjusting the magnetic field distribution. The design configuration of the ion source will be summarized in the paper.

43 PARTICLE ACCELERATORS↗

Development of uncertainty-aware equation-of-state models: Application to copper

Sophisticated hydrodynamic codes are commonly used to understand and predict events relevant to natural and applied sciences. The degree to which these simulations reflect reality, however, is dependent on how well we understand the materials and underlying physics involved. These research communities need material models that communicate the uncertainty in the physical properties, which at their basest form comes from the uncertainty in the underlying experimental measurements. Additionally, we have constructed a new framework for using both experimental measurements and the associated experimental uncertainties to build equation-of-state models that reflect not only current best measurements but also the accuracy of those measurements. This method had been used to construct an ensemble of equation-of-state models for copper that communicates the experimental uncertainties in the data through the equation-of-state model, which is available for application in any simulation metric of interest.

71 CLASSICAL AND QUANTUM MECHANICS, GENERAL PHYSIC↗

A 3D helical filament surrogate model for 3D tokamak equilibria

A novel approach for efficient representation of three-dimensional (3D) tokamak equilibria is investigated, where a set of helical current filaments occupying the plasma region are employed to resolve deviations from the two-dimensional (2D) axi-symmetric state. A discrete set of 3D filaments, located at rational surfaces for a given toroidal mode number n and following the 2D equilibrium field lines (thus forming closed current loops), are found to provide a surrogate model of 3D equilibria with reasonable accuracy. Specifically, application of the filament model to 3D perturbed equilibria, due to the resonant magnetic perturbation (RMP) in DIII-D and MAST-U discharges, reveals that (1) a single helical filament per rational surface is sufficient; (2) 21 such helical filaments are capable of representing the n = 2 3D response field in MAST-U with less than 10% relative error as compared to that computed by a full magnetohydrodynamic code; (3) optimizing currents (both amplitude and phase) flowing in 3D filaments with fixed geometry, the highest accuracy fitting is found to depend on the characteristics of the 3D equilibria such as the coil current phasing of the RMP coils in our case studies. Here, whis filament approach is also applicable for generating surrogate models of other type of 3D tokamak equilibria, including those during the initial phase of the plasma disruption.

MARS-F↗

Speeding up particle track reconstruction using a parallel Kalman filter algorithm

One of the most computationally difficult problems expected for the High-Luminosity Large Hadron Collider (HL-LHC) is determining the trajectory of charged particles during event reconstruction. Algorithms used at the LHC today rely on Kalman filtering, which builds physical trajectories incrementally while incorporating material effects and error estimation. Recognizing the need for faster computational throughput, we have adapted Kalman-filter-based methods for highly parallel, many-core SIMD architectures that are now prevalent in high-performance hardware. In this paper, we discuss the design and performance of the improved tracking algorithm, referred to as mkFit. A key piece of the algorithm is the Matriplex library, containing dedicated code to optimally vectorize operations on small matrices. The physics performance of the mkFit algorithm is comparable to the nominal CMS tracking algorithm when reconstructing tracks from simulated proton-proton collisions within the CMS detector. We study the scaling of the algorithm as a function of the parallel resources utilized and find large speedups both from vectorization and multi-threading. mkFit achieves a speedup of a factor of 6 compared to the nominal algorithm when run in a single-threaded application within the CMS software framework.

46 INSTRUMENTATION RELATED TO NUCLEAR SCIENCE AND ↗

A Unit Testing Framework for Scientific Legacy Code

Large-scale scientific applications play important roles in supporting research. However, it is often very expensive and time-consuming to make changes to, maintain and evolve the scientific code due to its complexity and poor programming skills of researchers. Therefore, in order to visualize scientific code architecture to optimize software design, understand undocumented source code, and analyze software flow and functionality, we first introduce a unit testing framework (UTF). Then, because such infrastructure's performance is very crucial in practical use since the scientific legacy applications simulate instances in a long period of time, we improve the UTF by applying Message Passing based Parallelization and parallel I/O operations. Furthermore, due to the scientific code has enormous state data and the I/O capacity on the server is limited, we apply in situ data analysis method to encounter fewer resource limitations, and adopt signal processing to greatly reduce data transfer. Last, we demonstrated the correctness and high-efficiency of our framework for legacy Earth model on Titan supercomputer.

97 MATHEMATICS AND COMPUTING↗

Scaling Irregular Applications through Data Aggregation and Software Multithreading

Bioinformatics, data analytics, semantic databases, knowledge discovery are emerging high performance application areas that exploit dynamic, linked data structures such as graphs, unbalanced trees or unstructured grids. These data structures usually are very large, requiring significantly more memory than available on single shared memory systems. Additionally, these data structures are difficult to partition on distributed memory systems. They also present poor spatial and temporal locality, thus generating unpredictable memory and network accesses. The Partitioned Global Address Space (PGAS) programming model seems suitable for these applications, because it allows using a shared memory abstraction across distributed-memory clusters. However, current PGAS languages and libraries are built to target regular remote data accesses and block transfers. Furthermore, they usually rely on the Single Program Multiple Data (SPMD) parallel control model, which is not well suited to the fine grained, dynamic and unbalanced parallelism of irregular applications. In this paper we present {\bf GMT} (Global Memory and Threading library), a custom runtime library that enables efficient execution of irregular applications on commodity clusters. GMT integrates a PGAS data substrate with simple fork/join parallelism and provides automatic load balancing on a per node basis. It implements multi-level aggregation and lightweight multithreading to maximize memory and network bandwidth with fine-grained data accesses and tolerate long data access latencies. A key innovation in the GMT runtime is its thread specialization (workers, helpers and communication threads) that realize the overall functionality. We compare our approach with other PGAS models, such as UPC running using GASNet, and hand-optimized MPI code on a set of typical large-scale irregular applications, demonstrating speedups of an order of magnitude.

Aggregation↗

International Neuroscience Initiatives through the Lens of High-Performance Computing

Neuroscience initiatives aim to develop new technologies and tools to measure and manipulate neuronal circuits. In this paper, to deal with the massive amounts of data generated by these tools, the authors envision the co-location of open data repositories in standardized formats together with high-performance computing hardware utilizing open source optimized analysis codes.

60 APPLIED LIFE SCIENCES↗

Deterministic photon kerma distribution based on the Boltzmann equation for external beam radiation therapy

A photon transport algorithm for fully three-dimensional radiotherapy treatment planning has been developed based on the discrete ordinates (S{sub N}) solution of the Boltzmann equation. The algorithm is characterized by orthogonal adaptive meshes, which place additional points where large gradients occur and a procedure to evaluate the collided flux using the representation of spherical harmonic expansion instead of the summation of the volume-weighted contribution from discrete angles. The Boltzmann equation was solved in the form of S{sub N} spatial, energy, and angular discretization with mitigation of ray effects by the first-collision source method. Unlike existing S{sub N} codes, which were designed for general purpose for multiparticle transport in areas such as nuclear engineering, our code is optimized for medical radiation transport. To validate the algorithm, several examples were employed to calculate the photon flux distribution. Numerical results show good agreement with the Monte Carlo calculations using EGSnrc.

62 RADIOLOGY AND NUCLEAR MEDICINE↗

SU-E-T-523: Investigation of Various MR-Compatible Shielding Materials for Direction Modulated Brachytherapy (DMBT) Tandem Applicator for Cervical Cancer Treatment

Purpose: To evaluate various shielding materials such as Gold (Au), Osmium (Os), Tantalum (Ta), and Tungsten (W) based alloys for use with a novel intensity modulation capable direction modulated brachytherapy (DMBT) tandem applicator for image guided cervical cancer HDR brachytherapy. Methods: The novel MRI-compatible DMBT tandem, made from nonmagnetic tungsten-alloy rod with diameter of 5.4 mm, has 6 symmetric peripheral holes of 1.3 mm diameter with 2.05 mm distance from the center for a high degree intensity modulation capacity. The 0.3 mm thickness of bio-compatible plastic tubing wraps the tandem. MCNPX was used for Monte Carlo simulations of the shields and the mHDR Ir-192 V2 source. MC-generated 3D dose matrices of different shielding materials of Au, Os, Ta, and W with 1 mm3 resolution were imported into an in-house-coded inverse optimization planning system to evaluate 19 clinical patient plans. Prescription dose was 15Gy. All plans were normalized to receive the same HRCTV D90. Results: In general, the plan qualities for various shielding materials were similar. The OAR D2cc for bladder was very similar for Au, Os, and Ta with 11.64±2.30Gy. For W, it was very close 11.65±2.30Gy. The sigmoid D2cc was 9.82±2.46Gy for Au and Os while it was 9.84±2.48Gy for Ta and W. The rectum D2cc was 7.44±3.06Gy for Au, 7.43±3.07Gy for Os, 7.48±3.05Gy for Ta, and 7.47±3.05Gy for W. The HRCTV D98 and V100 were very close with 16.37±1.87 Gy and 97.37±1.93 Gy, on average, respectively. Conclusion: Various MRI-compatible shielding alloys were investigated for the DMBT tandem applicator. The clinical plan qualities were not significantly different among these various alloys, however. Therefore, the candidate metals (or in combination) can be used to select best alloys for MRI image guided cervical cancer brachytherapy using the novel DMBT applicator that is capable of unprecedented level of intensity modulation.

60 APPLIED LIFE SCIENCES↗

SU-E-T-787: Utility of the Two Candidate 192-Ir and 169-Yb HDR Sources for Use with a Novel Direction Modulated Brachytherapy Tandem Applicator for Cervical Cancer Treatment

Purpose: A novel tungsten alloy shielded, MRI-compatible, direction modulated brachytherapy (DMBT) concept tandem applicator, which enables unprecedented intensity modulation, was used to evaluate treatment plan quality improvement over a conventional tandem. The utility of the 192-Ir and 169-Yb HDR sources, for use with the DMBT applicator, was evaluated. Methods: The total diameter of the DMBT tandem applicator is 6.0 mm, which consists of 5.4-mm diameter tungsten alloy and 0.3 mm thick plastic sheath. The tandem has 6 symmetric peripheral 1.3-mm diameter grooves for the source to travel. MCNPX v.2.6 was used to simulate the 192-Ir and 169-Yb sources inside the DMBT applicator. First, TG-43 source parameters were evaluated. Second, 3D dose matrix with 1 mm3 resolution were imported into an in-house-coded inverse optimization treatment planning program to obtain optimal plans for 19 clinical cases. All plans were compared with the standard tandem and ring plans. Prescription dose was 15.0 Gy. All plans were normalized to receive the same HRCTV D90. Results: Generally, the DMBT tandem (and ring) plans were better than the conventional tandem and ring plans for 192-Ir and 169-Yb HDR sources. The mean data of D2cc for bladder, rectum, and sigmoid were 11.65±2.30 Gy, 7.47±3.05 Gy, and 9.84±2.48 Gy for Ir-192 DMBT tandem, respectively. These data for Yb-169 were 11.67±2.26 Gy, 7.44±3.02 Gy, and 9.83±2.38 Gy, respectively. The HR-CTV D98 and V100 were 16.37±1.86 Gy and 97.37 ± 1.92 Gy for Ir-192 DMBT, respectively. The corresponding values for Yb-169 were 16.43±1.86 Gy, and 97.51 ± 1.91 Gy. Plans with the 169-Yb source generally produced more favorable results where V100 increased by 13.65% while D2cc across all OARs reduced by 0.54% compared with the 192-Ir plans. Conclusion: For the DMBT tandem applicator, 169-Yb source seems to produce more directional beams resulting in increased intensity modulation capacity, thus resulting in more conformal plans.

60 APPLIED LIFE SCIENCES↗

SU-F-BRA-05: Utility of the Combined Use of Two Types of HDR Sources with the Direction Modulation Brachytherapy (DMBT) Tandem Applicator for Cervical Cancer Treatment

Purpose: To maximize the dose to HRCTV while minimizing dose to the OARs, the combination of two HDR brachytherapy sources, 192-Ir and 169-Yb, used in combination with the recently-proposed novel direction modulated brachytherapy (DMBT) tandem applicator were examined. Methods: The DMBT tandem, made from nonmagnetic tungsten-alloy rod, with diameter of 5.4mm, has 6 symmetric peripheral holes of 1.3mm diameter. The 0.3mm thick bio-compatible plastic tubing wraps the tandem. MCNPX v.2.6 was used to simulate the mHDR 192-Ir V2 and 4140 HDR 169-Yb sources inside the DMBT applicator. Thought was by combining the higher energy 192-Ir (380keV) and lower energy 169-Yb (92.7keV) sources could create unprecedented level of dose conformality when combined with the high-degree intensity modulation capable DMBT tandem applicator. 3D dose matrices, with 1 mm3 resolution, were imported into an in-house-coded inverse optimization planning system to evaluate plan quality of 19 clinical patient cases. Prescription dose was 15Gy. All plans were normalized to receive the same HRCTV D90. Results: Generally, the use of dual sources produced better plans than using either of the sources alone, with significantly better performance in some patients. The mean D2cc for bladder, rectum, and sigmoid were 11.65±2.30Gy, 7.47±3.05Gy, and 9.84±2.48Gy for 192-Ir-only, respectively. For 169 -Yb-only, they were 11.67±2.26Gy, 7.44±3.02Gy, and 9.83±2.38Gy, respectively. The corresponding data for the dual sources were 11.51±2.24Gy, 7.30±3.00Gy, and 9.68 ±2.39Gy, respectively. The HRCTV D98 and V100 were 16.37±1.86Gy and 97.37±1.92Gy for Ir-192-only, respectively. For 169-Yb-only, they were 16.43±1.86Gy, and 97.51±1.91Gy, respectively. For the dual source, they were 16.42±1.87Gy and 97.47±1.93Gy, respectively. Conclusion: The plan quality improves, in some cases quite significantly, for when dual 192-Ir and 169-Yb sources are used in combination with highly intensity modulation capable DMBT tandem applicator for image guided cervical cancer brachytherapy.

60 APPLIED LIFE SCIENCES↗

A local-view array library for partitioned global address space C++programs

Multidimensional arrays are an important data structure in many scientific applications. Unfortunately, built-in support for such arrays is inadequate in C++, particularly in the distributed setting where bulk communication operations are required for good performance. In this paper, we present a multidimensional library for partitioned global address space (PGAS) programs, supporting the one-sided remote access and bulk operations of the PGAS model. The library is based on Titanium arrays, which have proven to provide good productivity and performance. These arrays provide a local view of data, where each rank constructs its own portion of a global data structure, matching the local view of execution common to PGAS programs and providing maximum flexibility in structuring global data. Unlike Titanium, which has its own compiler with array-specific analyses, optimizations, and code generation, we implement multidimensional arrays solely through a C++library. The main goal of this effort is to provide a library-based implementation that can match the productivity and performance of a compiler-based approach. We implement the array library as an extension to UPC++, a C++library for PGAS programs, and we extend Titanium arrays with specializations to improve performance. We evaluate the array library by porting four Titanium benchmarks to UPC++, demonstrating that it can achieve up to 25% better performance than Titanium without a significant increase in programmer effort..

Kamil, A↗

PoPLAR: Portal for Petascale Lifescience Applications and Research

Background: We are focusing specifically on fast data analysis and retrieval in bioinformatics that will have a direct impact on the quality of human health and the environment. The exponential growth of data generated in biology research, from small atoms to big ecosystems, necessitates an increasingly large computational component to perform analyses. Novel DNA sequencing technologies and complementary high-throughput approaches–such as proteomics, genomics, metabolomics, and meta-genomics–drive data-intensive bioinformatics. While individual research centers or universities could once provide for these applications, this is no longer the case. Today, only specialized national centers can deliver the level of computing resources required to meet the challenges posed by rapid data growth and the resulting computational demand. Consequently, we are developing massively parallel applications to analyze the growing flood of biological data and contribute to the rapid discovery of novel knowledge. Methods: The efforts of previous National Science Foundation (NSF) projects provided for the generation of parallel modules for widely used bioinformatics applications on the Kraken supercomputer. We have profiled and optimized the code of some of the scientific community’s most widely used desktop and small-cluster-based applications, including BLAST from the National Center for Biotechnology Information (NCBI), HMMER, and MUSCLE; scaled them to tens of thousands of cores on high-performance computing (HPC) architectures; made them robust and portable to next-generation architectures; and incorporated these parallel applications in science gateways with a web-based portal. Results: This paper will discuss the various developmental stages, challenges, and solutions involved in taking bioinformatics applications from the desktop to petascale with a front-end portal for very-large-scale data analysis in the life sciences. Conclusions: This research will help to bridge the gap between the rate of data generation and the speed at which scientists can study this data. The ability to rapidly analyze data at such a large scale is having a significant, direct impact on science achieved by collaborators who are currently using these tools on supercomputers.

59 BASIC BIOLOGICAL SCIENCES↗

co2amp: A software program for modeling the dynamics of ultrashort pulses in optical systems with CO 2 amplifiers

We describe a computer code for simulating the amplification of ultrashort mid-infrared laser pulses in CO 2 amplifiers and their propagation through arbitrary optical systems. This code is based on a comprehensive model that includes an accurate consideration of the CO 2 active medium and a physical optics propagation algorithm, and takes into account the interaction of the laser pulse with the material of the optical elements. Finally, the application of the code for optimizing an isotopic regenerative amplifier is described.

43 PARTICLE ACCELERATORS↗

HPC4Energy Final Report : GE Energy

Power System planning tools are being used today to simulate systems that are far larger and more complex than just a few years ago. Advances in renewable technologies and more pervasive control technology are driving planning engineers to analyze an increasing number of scenarios and system models with much more detailed network representations. Although the speed of individual CPU’s has increased roughly according to Moore’s Law, the requirements for advanced models, increased system sizes, and larger sensitivities have outstripped CPU performance. This computational dilemma has reached a critical point and the industry needs to develop the technology to accurately model the power system of the future. The hpc4energy incubator program provided a unique opportunity to leverage the HPC resources available to LLNL and the power systems domain expertise of GE Energy to enhance the GE Concorda PSLF software. Well over 500 users worldwide, including all of the major California electric utilities, rely on Concorda PSLF software for their power flow and dynamics. This pilot project demonstrated that the GE Concorda PSLF software can perform contingency analysis in a massively parallel environment to significantly reduce the time to results. An analysis with 4,127 contingencies that would take 24 days on a single core was reduced to 24 minutes when run on 4,217 cores. A secondary goal of this project was to develop and test modeling techniques that will expand the computational capability of PSLF to efficiently deal with systems sizes greater than 150,000 buses. Toward this goal the matrix reordering implementation time was sped up 9.5 times by optimizing the code and introducing threading.

29 ENERGY PLANNING, POLICY, AND ECONOMY↗

Automated Algorithms for Quantum-Level Accuracy in Atomistic Simulations: LDRD Final Report.

This report summarizes the result of LDRD project 12-0395, titled "Automated Algorithms for Quantum-level Accuracy in Atomistic Simulations." During the course of this LDRD, we have developed an interatomic potential for solids and liquids called Spectral Neighbor Analysis Poten- tial (SNAP). The SNAP potential has a very general form and uses machine-learning techniques to reproduce the energies, forces, and stress tensors of a large set of small configurations of atoms, which are obtained using high-accuracy quantum electronic structure (QM) calculations. The local environment of each atom is characterized by a set of bispectrum components of the local neighbor density projected on to a basis of hyperspherical harmonics in four dimensions. The SNAP coef- ficients are determined using weighted least-squares linear regression against the full QM training set. This allows the SNAP potential to be fit in a robust, automated manner to large QM data sets using many bispectrum components. The calculation of the bispectrum components and the SNAP potential are implemented in the LAMMPS parallel molecular dynamics code. Global optimization methods in the DAKOTA software package are used to seek out good choices of hyperparameters that define the overall structure of the SNAP potential. FitSnap.py, a Python-based software pack- age interfacing to both LAMMPS and DAKOTA is used to formulate the linear regression problem, solve it, and analyze the accuracy of the resultant SNAP potential. We describe a SNAP potential for tantalum that accurately reproduces a variety of solid and liquid properties. Most significantly, in contrast to existing tantalum potentials, SNAP correctly predicts the Peierls barrier for screw dislocation motion. We also present results from SNAP potentials generated for indium phosphide (InP) and silica (SiO 2 ). We describe efficient algorithms for calculating SNAP forces and energies in molecular dynamics simulations using massively parallel computers and advanced processor ar- chitectures. Finally, we briefly describe the MSM method for efficient calculation of electrostatic interactions on massively parallel computers.

Thompson, Aidan Patrick↗

Advanced Output Coupling for High Power Gyrotrons

The Phase II program developed an internal RF coupler that transforms the whispering gallery RF mode produced in gyrotron cavities to an HE11 waveguide mode propagating in corrugated waveguide. This power is extracted from the vacuum using a broadband, chemical vapor deposited (CVD) diamond, Brewster angle window capable of transmitting more than 1.5 MW CW of RF power over a broad range of frequencies. This coupling system eliminates the Mirror Optical Units now required to externally couple Gaussian output power into corrugated waveguide, significantly reducing system cost and increasing efficiency. The program simulated the performance using a broad range of advanced computer codes to optimize the design. Both a direct coupler and Brewster angle window were built and tested at low and high power. Test results confirmed the performance of both devices and demonstrated they are capable of achieving the required performance for scientific, defense, industrial, and medical applications.

70 PLASMA PHYSICS AND FUSION TECHNOLOGY↗