Search NASA⌕ Search

SEARCH · Search NASA

Results for “Sorting”

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 631 records · Page 35

High-Performance Sparse Matrix-Matrix Products on Intel KNL and Multicore Architectures

Sparse matrix-matrix multiplication (SpGEMM) is a computational primitive that is vastly used in areas ranging from traditional numerical applications to recent big data analysis and machine learning. While many SpGEMM algorithms have been proposed, hardware specific optimizations for multi- and many-core processors are lacking and a detailed analysis of their performance under various use cases and matrices is not available. We firstly identify and mitigate multiple bottlenecks with memory management and thread scheduling on Intel Xeon Phi (Knights Landing or KNL). Specifically targeting multi- and many-core processors, we develop a hash-table-based algorithm and optimize a heap-based shared-memory SpGEMM algorithm. We investigate their performance together with other publicly available codes. Different from the literature, our evaluation also includes use cases that are representative of real graph algorithms, such as multi-source breadth-first search or triangle counting. Our hash-table and heap-based algorithms are showing significant speedups from libraries in the majority of the cases while different algorithms dominate the other scenarios with different matrix size, sparsity, compression factor and operation type. We wrap up in-depth evaluation results and make a recipe to give the best SpGEMM algorithm for target scenario. In conclusion, a critical finding is that hash-table-based SpGEMM gets a significant performance boost if the nonzeros are not required to be sorted within each row of the output matrix.

97 MATHEMATICS AND COMPUTING↗

Modeling protein structures from predicted contacts with modern molecular dynamics potentials: accuracy, sensitivity, and refinement

Protein structure prediction has become increasingly popular and successful in recent years. An essential step for fragment-free, template-free methods is the generation of a final three-dimensional protein model from a set of predicted amino acid contacts that are often described by interresidue pairwise atomic distances. Here we explore the use of modern, open-source molecular dynamics (MD) engines, which have been continually developed over the last three decades with all-atom Hamiltonians to model biomolecular structure and dynamics, to generate accurate protein structures starting from a set of inferred pairwise distances. Additionally, the ability of MD empirical physical potentials to correct inaccuracies in the predicted geometries is tested. We rigorously characterize the effect of modeling parameters on results, the effect of different amounts of error in the predicted distances on the final structures, and test the ability of post-processing analysis to sort the best models out of a set of statistical replicas. We find that with exact distances and with noisy distances, the method can produce excellent structural models, and that the molecular dynamics force field seems to help correct errors in distance predictions, resisting the effects of applied noise.

Davidson, Russ↗

Position-Enhanced Gradient Attack (PEGA) on Medical Language Models

Federated Learning (FL) enables collaborative training of language models on sensitive clinical notes without sharing the data. However, this paradigm is vulnerable to gradient inversion attacks that can reconstruct private data from shared gradients. We find that state-of-the-art attacks are less effective in the medical domain, failing to overcome the unique challenges posed by its specialized vocabulary and unstructured format. To address this, we introduce the Position-Enhanced Gradient Attack (PEGA), a novel attack that makes gradients position-aware by optimizing token and position embeddings simultaneously. PEGA employs two key innovations: a periodic sorting of positional embeddings to resolve token order ambiguity and a late-stage embedding replacement strategy to correct hard-to-recover critical tokens. To evaluate the leakage of sensitive data more directly, we also propose the Unified PHI-Recall (UPHI), a new metric measuring the recovery of Protected Health Information. Experiments on the MIMIC-III dataset show that PEGA significantly outperforms leading attacks like TAG and LAMP, particularly in its ability to reconstruct identifiable patient information, exposing a more severe and nuanced privacy risk in federated medical NLP.

Xu, Nuo [University of Minnesota]↗

Ratchet Effects in Active Matter Systems

Ratchet effects can arise for single or collectively interacting Brownian particles on an asymmetric substrate when a net dc transport is produced by an externally applied ac driving force or by periodically flashing the substrate. Recently, a new class of active ratchet systems that do not require the application of external driving has been realized through the use of active matter; they are self-propelled units that can be biological or nonbiological in nature. When active materials such as swimming bacteria interact with an asymmetric substrate, a net dc directed motion can arise even without external driving, opening a wealth of possibilities such as sorting, cargo transport, or micromachine construction. We review the current status of active matter ratchets for swimming bacteria, cells, active colloids, and swarming models, focusing on the role of particle-substrate interactions. Here, we describe ratchet reversals produced by collective effects and the use of active ratchets to transport passive particles. We discuss future directions including deformable substrates or particles, the role of different swimming modes, varied particle–particle interactions, and nondissipative effects.

75 CONDENSED MATTER PHYSICS, SUPERCONDUCTIVITY AND↗

Futility

The Futility package contains the following: 1) Definition of the size of integers and real numbers; 2) A generic Unit test harness; 3) Definitions for some basic extensions to the Fortran language: arbitrary length strings, a parameter list construct, exception handlers, command line processor, timers; 4) Geometry definitions: point, line, plane, box, cylinder, polyhedron; 5) File wrapper functions: standard Fortran input/output files, Fortran binary files, HDF5 files; 6) Parallel wrapper functions: MPI, and Open MP abstraction layers, partitioning algorithms; 7) Math utilities: BLAS, Matrix and Vector definitions, Linear Solver methods and wrappers for other TPLs (PETSC, MKL, etc), preconditioner classes; 8) Misc: random number generator, water saturation properties, sorting algorithms.

Collins, BenjaminS.↗

miniGraphics v. 1.0

The miniGraphics package provides a collection of reference implementations for parallel rendering. In particular, miniGraphics is focused on sort-last parallel rendering, which is the rendering algorithm of choice for HPC rendering. The miniGraphics package provides a collection of simple serial rendering systems and a collection of parallel image compositing methods, which can be combined to test the behavior of parallel rendering under different conditions.

Peterson, MatthewG.↗

numericalFunctions

The numericalFunction C library is designed to handle point-wise interpolative data representing a mathematical function. The library currently handles 1-d functions (i.e., functions of the format f(x)). The main object is the ptwXYPoints C struct that holds list of x,y pairs sorted by ascending x-values with an interpolation rule. That is, it contains the 1-d function f(x) = y(x). Functions are included that support common unitary and binary operations (e.g., negation, addition, multiplication). As example, if f(x) and g(x) are two ptwXYPoints instances, then routines to calculate f(x) + g(x) and f(x) * g(x) are included. The library support storage of data with lin-lin, lin-log, log-lin, log-log and flat (or histogram) interpolation. Functions to convert any of the supported interpolation to lin-lin are included. However, many of the binary functions only support lin-lin interpolation. The library also contains a C struct for storing a Legendre series representation of a 1-d function, and functions to convert Legendre series to and from a ptwXYPoints instance. A python interface to the library is included, with the ptwXYPoints C struct treated as a class. This class has many of the standard python math methods (e.g., __add__, __mul__).

Beck, Bret↗

LabVIEW Task Manager v. 1.10.0

LabVIEW Task Manager is a debugging tool for use during code development in the National Instruments (NI) LabVIEW® IDE. While providing a dynamic & big-picture view of running code, an expandable/collapsible tree diagram displays detailed information (both static and dynamic) on all VIs in memory, belonging to a selected project/target. It allows for interacting with single or multiple selected VIs at a time, providing significant benefits while troubleshooting, and has the following features: Look & Feel similar to Windows® Task Manager; Selection of project/target; Lists all VIs in memory, grouped by class/library; Searches for and enumerates clones in memory; DropIn VI for including dynamically referenced clones (Clone Beacon); 'Refresh Now' (F5) re-reads all VIs in memory and adds new ones to the tree; Displays VI name, owning class/library, state, path, data size & code size; Displays VI FP Behavior, Reentrant?, Reentrancy Type, Paused? & Highlight?; Sort by any column, including by library name; Filter by item types vi, ctl, and vit/ctt; Filter out vi.lib and global VIs; Tracking of, and ability to toggle, execution highlighting on multiple selected VIs; Tracking of paused VIs with ability to Pause/Resume/TogglePause multiple selected VIs; DropIn VI for pausing on a condition; If a clone initiates a pause, a different pause symbol is used for all clones of that same reentrant original VI; Select multiple VIs and open or close their FPs or BDs; Double Click a VI from the tree to bring the BD (first choice) or FP to front, if already open; and Select multiple top-level VIs and Abort them.

Vargo, TimothyD.↗

Cabana

Physics simulations that use particles in their algorithms are ubiquitous on modern high performance computers. Cabana is a C++ library for developing particle-based simulations on heterogeneous high performance computing platforms. Cabana provides general data structures and algorithms for common particle operations in a way that is both performant and portable on HPC systems. This includes particle data structure allocatable and configurable on GPU and CPU architectures, and threaded and distributed algorithms for sorting particles, halo exchanges, neighbor list generation, and other basic particle operations.

Slattery, StuartR↗

Image Search for Scientific Data (camBIR) v1.0

camBIR is the CAMERA based image retrieval, a software that takes several different kinds of imagery, such as 2 dimensional images, both scientific as well as non scientific. camBIR is specially designed for training different kinds of Deep Convolutional Neural Network, including new Deep Learning architectures, such as ResNet, Inception-ResNet, NasNet, DenseNet…. It can be used to automate the classification, sort and rank of X-ray imagery such as microCT, GISAXS, GIWAXS, SAXS and WAXS.

Ushizima, Daniela↗

Explainable Neural Architecture Search (XNAS)

Code for the paper Learning Interpretable Models Through Multi-Objective Neural Architecture Search by Zachariah Carmichael, Tim Moon, and Sam Ade Jacobs. Monumental advances in deep learning have led to unprecedented achievements across a multitude of domains. While the performance of deep neural networks is indubitable, the architectural design and interpretability of such models are nontrivial. Research has been introduced to automate the design of neural network architectures through neural architecture search (NAS). Recent progress has made these methods more pragmatic by exploiting distributed computation and novel optimization algorithms. However, there is little work in optimizing architectures for interpretability. To this end, we propose a multiobjective distributed NAS framework that optimizes for both task performance and introspection. We leverage the non-dominated sorting genetic algorithm (NSGA-II) and explainable AI (XAI) techniques to reward architectures that can be better comprehended by humans. The framework is evaluated on several image classification datasets. We demonstrate that jointly optimizing for introspection ability and task error leads to more disentangled architectures that perform within tolerable error.

Carmichael, ZachariahJ↗

ErrFilter

ErrFilter is a tool that allows an analyst to explore data by defining simple Boolean filters on data. The tool also allows the user to sort the results by any attribute. The user sees both the distribution of filtered data as well as selected examples. The tool was designed to be applied generally to multivariate data associated with machine learning models.

Arendt, Dustin↗

ninterp: N-dimensional interpolation Rust crate [SWR-25-25]

The ninterp crate provides multivariate interpolation over a regular, sorted, nonrepeating grid of any dimensionality. A variety of interpolation strategies are implemented, however more are likely to be added. Extrapolation beyond the range of the supplied coordinates is supported for 1-D linear interpolators, using the slope of the nearby points. There are hard-coded interpolators for lower dimensionalities (up to N = 3) for better runtime performance. All interpolation is handled through instances of the Interpolator enum, with the selected tuple variant containing relevant data. Interpolation is executed by calling Interpolator::interpolate.

Carow, Kyle↗

Multithreaded copy ('cp')

This is a modification to 'cp' and 'mv' commands to make them multi-threaded. Simple benchmarks showed that multi-threading could reduce the time to copy a large Linux source directory by over 2x. The 'cp' and 'mv' utilities are part of the existing Coreutils (https://www.gnu.org/software/coreutils/) software package that get installed on all Linux distros. Changes: * Add '-j|--parallel ' flags to 'cp' and 'mv'. This allows the utilities to recursively copy regular files in directories in parallel. This does NOT parallelize multiple single file copies to a destination (like 'cp file2 file2 file3 dst/'). Along with this, add in new 'CP_NUM_THREADS' and 'MV_NUM_THREADS' environment variables to set the number of threads. This can be useful when you want to enable parallelism by default in /etc/profile. The maximum number of threads is internally capped to the number of CPUs. * Add a '-j' flag to 'sort' to complement its existing '--parallel' flag. This is only done for consistency with 'cp' and 'mv'. * Add test cases for the new flags. Also, run each 'cp' and 'mv' test both in single-threaded and multithreaded modes for extra coverage.

Hutter, AnthonyJ [Lawrence Livermore National Labo↗

Multiscale Atmospheric Overturning of the Indian Summer Monsoon as Seen through Isentropic Analysis

This study investigates multiscale atmospheric overturning during the 2009 Indian summer monsoon (ISM) using a cloud-permitting numerical model. The isentropic analysis technique adopted here sorts vertical mass fluxes in terms of the equivalent potential temperature of air parcels, which is capable of delineating the atmospheric overturning between ascending air parcels with high entropy and subsiding air parcels with low entropy. The monsoonal overturning is further decomposed into contributions from three characteristic scales: the basinwide ascent over the Indian monsoon domain, the regional-scale overturning associated with synoptic and mesoscale systems, and the convective-scale overturning. Results show that the convective-scale component dominates the upward mass transport in the lower troposphere while the region-scale component plays an important role by deepening the monsoonal overturning. The spatial variability of the convective-scale overturning is analyzed, showing intense convection over the Western Ghats and the Bay of Bengal while the deepest overturning is localized over northern India and the Himalayan foothills. The equivalent potential temperature in convective updrafts is higher over land than over the ocean or coastal regions. There is also substantial variability in the atmospheric overturning associated with the intraseasonal variability. The upward mass and energy transport increase considerably during the active phases of the ISM. A clear northeastward propagation in the peak isentropic vertical mass and energy transport over different characteristic regions can be found during the ISM, which corresponds to the intraseasonal oscillations of the ISM. Altogether, this study further demonstrates the utility of the isentropic analysis technique to characterize the spatiotemporal variations of convective activities in complex atmospheric flows.

54 ENVIRONMENTAL SCIENCES↗

Precipitation and Moisture in Four Leading CMIP5 Models: Biases across Large-Scale Circulation Regimes and Their Attribution to Dynamic and Thermodynamic Factors

As key variables in general circulation models, precipitation and moisture in four leading models from CMIP5 (phase 5 of the Coupled Model Intercomparison Project) are analyzed, with a focus on four tropical oceanic regions. It is found that precipitation in these models is overestimated in most areas. However, moisture bias has large intermodel differences. The model biases in precipitation and moisture are further examined in conjunction with large-scale circulation by regime-sorting analysis. Results show that all models consistently overestimate the frequency of occurrence of strong upward motion regimes and peak descending regimes of 500-hPa vertical velocity $ω500$. In a given $ω500$ regime, models produce too much precipitation compared to observation and reanalysis. But for moisture, their biases differ from model to model and also from level to level. Furthermore, error causes are revealed through decomposing contribution biases into dynamic and thermodynamic components. For precipitation, the contribution errors in strong upward motion regimes are attributed to the overly frequent $ω500$. In the weak upward motion regime, the biases in the dependence of precipitation on $ω500$ and the $ω500$ probability density function (PDF) make comparable contributions, but often of opposite signs. On the other hand, the biases in column-integrated water vapor contribution are mainly due to errors in the frequency of occurrence of $ω500$, while thermodynamic components contribute little. These findings suggest that errors in the frequency of $ω500$ occurrence are a significant cause of biases in the precipitation and moisture simulation.

54 ENVIRONMENTAL SCIENCES↗

Changes in Frequency of Large Precipitation Accumulations over Land in a Warming Climate from the CESM Large Ensemble: The Roles of Moisture, Circulation, and Duration

Projected changes in the frequency of major precipitation accumulations (hundreds of millimeters), integrated over rainfall events, over land in the late twenty-first century are analyzed in the Community Earth System Model (CESM) Large Ensemble, based on the RCP8.5 scenario. Accumulation sizes are sorted by the local average recurrence interval (ARI), ranging from 0.1 to 100 years, for the current and projected late-twenty-first-century climates separately. For all ARIs, the frequency of exceedance of the given accumulation size increases in the future climate almost everywhere, especially for the largest accumulations, with the 100-yr accumulation becoming about 3 times more frequent, averaged over the global land area. The moisture budget allows the impacts of individual factors—moisture, circulation, and event duration—to be isolated. In the tropics, both moisture and circulation cause large future increases, enhancing the 100-yr accumulation by 23% and 13% (average over tropical land), and are individually responsible for making the current-climate 100-yr accumulation 2.7 times and 1.8 times more frequent, but effects of shorter durations slightly offset these effects. In the midlatitudes, large accumulations become about 5% longer in duration, but are predominantly controlled by enhanced moisture, with the 100-yr accumulation (land average) becoming 2.4 times more frequent, and 2.2 times more frequent due to moisture increases alone. In some monsoon-affected regions, the 100-yr accumulation becomes more than 5 times as frequent, where circulation changes are the most impactful factor. These projections indicate that changing duration of events is a relatively minor effect on changing accumulations, their future enhancement being dominated by enhanced intensity (the combination of moisture and circulation).

54 ENVIRONMENTAL SCIENCES↗

Substitution or Shared Utilization? Intrahousehold Vehicle Use in Mixed-Powertrain Households

While previous research has focused heavily on understanding the factors deriving alternative fuel vehicle adoption rates, there remains a significant gap in understanding how households distribute mileage across different powertrains. This study utilizes data from the 2022 Next Generation National Household Travel Survey to investigate vehicle miles traveled within a sample of 150 plug-in electric vehicle (PEV)-owning households (in which at least one battery electric vehicle is present), characterizing how different powertrains are integrated into daily mobility. Leveraging a Seemingly Unrelated Regression (SUR) framework the study jointly models the utilization of PEVs, hybrid electric vehicles (HEV), and internal combustion engine vehicles (ICEVs) while accounting for household-level substitution effects. The results provide evidence of an asymmetric substitution effect. In households with mixed-powertrain configurations, the ICEV captures a substantially higher share of household miles (compared with the PEV), acting as a utility sponge. Conversely, the model identifies specific socioeconomic and geographic cohorts that prioritize PEV as the primary household workhorse, indicating a systematic sorting effect. Although the sample size limits broader generalizability, these findings suggest that PEVs are used for frequent, specific routine-intensive roles, whereas the ICEV remains a specialized utility vehicle. These insights highlight distinct intrahousehold vehicle use behaviors that are often obscured by aggregate fleetwide statistics.

25 ENERGY STORAGE↗