Skip to content

Dataset

Scientific code datasets from HPC simulation codebases for AI training

A scientific code dataset is a private simulation or numerical codebase delivered whole: C++, Fortran, Julia or Python source with MPI, OpenMP or GPU kernels, its build system, input decks, scheduler job scripts, validation cases with reference results and tolerances, and scaling studies. SourceX sources these to a buyer's spec from established engineering firms, energy and materials companies and commercial research labs that wrote the code and may license it. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Private simulation and numerical source with build files, input decks, job scripts, validation cases, reference results and scaling runs
Typical systems
Git or Subversion, CMake and Spack, Slurm or PBS schedulers, HDF5 and NetCDF files, cluster module environments
Typical history
Varies by code; some have been maintained for many years across several languages and machines
Modality
Source code with scripts and input files; logs, accounting records and reference results as structured data
Delivery formats
Repository bundle or source tree, reference data as HDF5 or NetCDF, logs as text, JSONL manifest
Preparation
Usernames, account codes, hostnames, paths and credentials removed; third-party code and restricted data flagged or excluded
Licensing
Scoped per codebase; permitted use agreed per license; export-control classification and funding terms are checks for your counsel
Availability
Sourced to your spec; supply is not guaranteed and depends on what each organization may license
CodeIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
code_idstringPseudonymous ID for one codebase, used by every case, script and run record in the delivery.
physics_domainobjectEquations solved, discretization method, dimensionality and time integration.
source_treeobjectLines by language and dialect, such as fixed-form and free-form Fortran, with preprocessor variants.
parallel_modelobjectHow work is distributed: MPI decomposition, OpenMP regions, GPU programming model and which kernels were ported.
build_configobjectBuild system files, compilers and flags per target, precision switch and the numerical and I/O libraries linked.
input_decksarrayNamelist, YAML or keyword input files with mesh references and parameter units for each case.
validation_casesarrayEach case with its type, compared quantities, norm, tolerance, expected convergence order and run command.
reference_resultsobjectStored reference fields or series with format, and the commit, compiler and rank count that produced them.
job_scriptsarrayScheduler scripts with resource directives, modules loaded, environment variables, launch line and restart logic.
scaling_runsarrayStrong and weak scaling points with problem size, node counts, wall time, per-phase timers and the machine description.
run_logsarraySolver output and scheduler accounting for runs, including residual history, exit state and peak memory.
rebaseline_eventsarrayCommits that changed numerical results, with the stated reason and the references regenerated.
license_flagsobjectExport-control classification as stated by the partner, funding or consortium terms, and third-party code or data present.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "code_id": "sim_7c41e0",
  "physics_domain": {
    "equations": "compressible Navier-Stokes",
    "discretization": "finite volume, block-structured"
  },
  "source_tree": {"lines": {"fortran": 139000, "cpp": 34000, "python": 9000}},
  "parallel_model": {
    "distributed": "MPI, 3D Cartesian decomposition",
    "threads": "OpenMP",
    "gpu": "OpenACC on flux kernels"
  },
  "build_config": {"system": "CMake", "compilers": ["gfortran", "nvfortran"], "precision": "double"},
  "input_decks": [{"file": "cases/vortex/input.nml", "format": "fortran_namelist"}],
  "validation_cases": [
    {
      "case": "isentropic_vortex",
      "type": "exact_solution",
      "setup": "inviscid",
      "quantity": "density",
      "norm": "L2",
      "expected_order": 2.0,
      "observed_order": 1.97,
      "regression_tolerance_rel": 1e-10,
      "run": "mpirun -n 4 ./solver cases/vortex/input.nml"
    }
  ],
  "reference_results": {"format": "HDF5", "produced_by": {"commit": "a91f3c2", "compiler": "gfortran", "ranks": 4}},
  "job_scripts": [
    {
      "scheduler": "slurm",
      "directives": ["--nodes=64", "--ntasks-per-node=48", "--time=02:00:00"],
      "launch": "srun ./solver input.nml"
    }
  ],
  "scaling_runs": [
    {
      "kind": "strong",
      "cells": 1100000000,
      "machine": "[CLUSTER_A], 48 cores per node",
      "points": [
        {"nodes": 8, "wall_s": 3120, "halo_pct": 6},
        {"nodes": 64, "wall_s": 488, "halo_pct": 27}
      ]
    }
  ],
  "run_logs": [
    {
      "job": "job_55021",
      "nodes": 64,
      "exit_state": "OUT_OF_MEMORY",
      "note": "Output gathered on one rank; later commit writes per block"
    }
  ],
  "rebaseline_events": [
    {
      "commit": "c07d9e1",
      "reason": "Corrected inviscid flux at block corners; vortex reference regenerated"
    }
  ],
  "license_flags": {
    "export_classification": "stated by partner, for buyer's counsel to confirm",
    "funding_terms": "internally funded"
  }
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Train coding models on numerical kernels

Private solvers show stencil loops, sparse solves, particle pushes and mesh handling in Fortran, C++ and Julia at production size.

Port CPU code to GPUs

Codebases that keep a CPU path and a GPU path for the same kernel are paired examples of a port, with the validation suite as the check.

Grade edits against physics

A task that changes a kernel can be scored by rerunning validation cases within tolerance and confirming the convergence order.

Write and repair batch jobs

Job scripts paired with machine descriptions and accounting records train a model to request resources, set thread placement and restart from checkpoints.

Diagnose failed runs

Logs with diverging residuals, NaN values or memory kills, followed by the commit or input change that fixed them, are worked debugging examples.

Use-case guides: Coding agents, Private evaluation sets, Enterprise and computer-use agents

What makes this data valuable

Runnable validation suite

Cases with run commands, inputs and stored references make the code self-grading.

Tolerances with reasons

Named quantities, norms and tolerances show the team checked more than that the run finished.

Raw scaling logs

Per-run logs with phase timers and the job scripts that launched them are worth more than a summary plot.

Machine and toolchain on record

Processor, accelerator, interconnect, compiler and MPI library for each run make the timings interpretable.

Rebaseline history

Commits that regenerate references with an explanation mark the changes that moved the physics.

More than one backend

The same kernel in CPU and GPU form gives aligned examples of parallelization choices.

Document stack

Scientific code dataset

This page covers scientific and HPC simulation codebases.Illustrative

Validation cases and tolerances are the graders

A unit test can pass on a solver that gets the physics wrong. Simulation teams judge their code a different way: by whether it reproduces answers that are known. Some cases have exact solutions, such as a shock tube or laminar flow in a channel. Others use a manufactured solution, where a chosen function is forced through the equations and the error must fall at the scheme's formal order as the mesh is refined. Others compare with a measured experiment, with another code, or with the code's own earlier output. Conservation checks ask whether mass or energy stays constant to round-off. These cases, with their reference results, are what tell a correct change from a wrong one.

The comparison is almost never exact, which is why tolerances are part of the data. Floating-point addition is not associative, so a sum reduced across a different number of MPI ranks, a different thread schedule, a GPU instead of a CPU, or a compiler allowed to reorder arithmetic gives a slightly different answer. Each case therefore names the quantities compared, the norm and the tolerance. A tolerance widened in the same commit that changed a kernel is a warning sign. A commit that regenerates the references after a real bug fix, with a note explaining why the answers moved, is one of the most instructive records in the repository.

A repository clone often lacks all this. Reference fields are large HDF5 or NetCDF files that live on a cluster filesystem, in large-file storage or in a separate baseline repository, with meshes and experimental data beside them. Without them a buyer has source with no grader. Ask that references ship with the commit, compiler and precision that produced them, and that a subset is small enough to run on a workstation, so a model's edit can be scored without a cluster.

Job scripts and scaling runs record behavior at scale

Parallel source shows what the code does and rarely why. The domain is split into pencils and not slabs, output is funneled through a subset of ranks, halo exchanges are batched, a kernel keeps its arrays on the GPU between steps. Each choice answered a measurement. A strong-scaling study, the same problem on more nodes, shows where communication overtakes computation. A weak-scaling study, where the problem grows with the node count, shows whether a global step such as a coarse-grid solve, a reduction or parallel output stops the method scaling. Per-phase timers in the run logs say which part lost the time.

Job scripts carry the configuration that produced those numbers. A Slurm or PBS script states nodes, tasks per node, threads per task and GPUs, the modules loaded for compiler and MPI library, thread placement variables such as OMP_NUM_THREADS and OMP_PROC_BIND, the launch line and the wall-time limit. Scheduler accounting adds elapsed time, peak memory and exit state, including the runs that were killed for memory, timed out or lost a node. None of it can be derived from source, and little can be reproduced cheaply. Failures that appear only at scale, such as a global cell count overflowing a 32-bit integer, never show on a workstation.

Check what survives. Scaling studies are often run once, for an allocation request or a procurement benchmark, and kept as a spreadsheet or a plot after the raw logs were purged from scratch storage. Numbers without the machine mean little, so each run should name the processor, accelerator, interconnect, MPI library and compiler.

What to check before licensing

  • Build the code from a sample on your own hardware and run a subset of validation cases, recording which pass within the stated tolerance.
  • Ask where reference results are stored, whether they are in the delivery, and which commit, compiler, precision and rank count produced them.
  • Ask whether scaling studies come with raw logs, phase timers and the job scripts that launched them, or only as summary tables and plots.
  • Have counsel check the export-control classification of the source, input decks and material data for the simulation domain before any transfer.
  • Ask how the work was funded and request any grant, consortium, university or national laboratory terms that could restrict commercial licensing of the code.
  • Check for third-party content: vendored libraries, routines copied from textbooks, licensed material or property tables, and meshes or decks that embody a customer's design.
  • Confirm that usernames, project account codes, hostnames and file paths were removed from scripts and logs without breaking the build.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

Why do validation cases matter more than unit tests for scientific code?

Because the code is right only if it reproduces physics, and unit tests rarely check that. A validation case runs the solver on a problem with a known answer and compares named quantities within a tolerance, or checks that the error falls at the expected order under mesh refinement. Those cases grade a model's edit to a numerical kernel.

Can the code be run without a supercomputer?

Partly. Most codes build on a workstation and run small validation cases on a few cores or one GPU, and a spec should ask for a subset sized for that. Production-scale behavior cannot be rerun cheaply, which is why scaling logs, job scripts and scheduler accounting belong in the spec as records. Check that the build does not depend on site modules or hard-coded paths.

Which languages and parallel models can be covered?

Whatever the supplying organization wrote, so the spec has to name them. Typical codes are Fortran or C++ with MPI and OpenMP, GPU kernels in CUDA, OpenACC or a portability layer such as Kokkos, and Julia or Python for newer solvers and post-processing. Many codebases mix several, including old fixed-form Fortran beside modern modules. Supply is not guaranteed.

Is version history included?

Only where it exists and the supplying organization agrees to license it. Many scientific codes moved from tarballs to Subversion to Git, and early history may be flattened into one import commit. History matters here because it shows which changes altered numerical results, when references were regenerated and how a CPU kernel became a GPU kernel. Ask how far back the history goes.

How is export control handled?

The buyer and its counsel should check it before any transfer. Simulation software for some domains, for example nuclear, weapons-related and certain aerospace and propulsion work, can be controlled, and input decks or material data can be controlled even when the solver is not. Ask the supplying organization for its classification of the code and data, and exclude anything unresolved.

Are simulation outputs included?

Reference results should be, because they are the graders, and run logs and scaling records should be named in the spec beside them. Full production outputs are usually far too large and often embed a customer's geometry or a proprietary material model, so they are scoped separately if at all. Say whether you need restart files or sample output fields, and in which formats, such as HDF5 or NetCDF.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 25 November 2026.

See if your company qualifies