Environment and cache¶
Run options are arguments of lm.md, lm.Simulation and loupmd md. The few process-wide settings on this page are
environment variables. The variables in the first table are for users. The last table lists switches for testing and
development; they are not for production runs. Installation is in Install; common problems are in
the FAQ.
Variables for users¶
| Variable | Value | Default | What it does | Read by |
|---|---|---|---|---|
LOUPMD_MODELS |
directory | unset | searched for a label's checkpoint file before <cache root>/models; an empty file there is skipped |
loupmd/models.py |
LOUPMD_CACHE |
directory | ~/.cache/loupmd |
the cache root (below) | loupmd/cache.py |
LOUP_CACHE_DIR |
directory | unset | an older name of the cache root, used when LOUPMD_CACHE is unset; also the directory where the engine keeps its GEMM plan files (below); set from LOUPMD_CACHE when only that is set |
loupmd/cache.py, src/engine.cu |
LOUPMD_BENCH_STRUCTURES |
directories separated like PATH |
unset | folders searched for the structure files of loupmd bench that are not shipped with the package |
loupmd/bench/suites.py |
LOUP_LIB |
path to a libloupmd.so |
unset | the library this process loads, instead of the one shipped in the package (loupmd/_lib/libloupmd.so) or, in a source checkout, the one make installs at its root |
loupmd/_core.py |
LOUP_FT_LIB |
path to a libloupmd_ft.so |
unset | pure-CUDA foundation fine-tuning library loaded by loupgym.finetune, instead of the wheel's (loupgym/_lib) or a checkout's (make mace-ft-lib) |
loupgym/_lib.py |
LOUP_LRSK_FT_LIB |
path to a libloup_lrsk_full_train_v3.so |
unset | pure-CUDA FastLR-SK student training library loaded by loupgym.distill, instead of the wheel's or a checkout's (make lrsk-train-lib) |
loupgym/_lib.py |
LOUP_STRAIN_LIB |
path to a libloupstrain.so |
unset | Loup-S training library loaded by loupgym.fasttrain, instead of the wheel's or a checkout's (make train-lib, build/sm_XY/) |
loupgym/fasttrain/cuda.py |
LOUP_KERNEL_PATH |
directories separated like PATH |
<cache root>/lib is appended |
folders the engine searches for kernel plugins loupmd-kernels-<signature>.so when a bundle needs kernels the library was not built with |
loupmd/kernels.py, src/generic.cu |
LOUP_GATE_CACHE |
directory | <cache root>/gate_refs |
where the accuracy gate keeps its cached MACE references | loupmd/validate/references.py |
CUDA_HOME, CUDA_PATH |
CUDA toolkit root | unset | where loupmd build-kernels looks for bin/nvcc after the PATH and before /usr/local/cuda |
loupmd/kernels.py |
LOUP_RETUNE |
any value | unset | the engine times every GEMM again instead of reading its plan file; the new plans still overwrite the file | src/engine.cu |
LOUP_LIB must name a library with the package's C interface version. Another version raises BackendError with
the advice to rebuild or unset LOUP_LIB (Errors).
The search order for a label's file is in Models.
Variables LoupMD sets¶
| Variable | Set to | When |
|---|---|---|
LOUP_KERNEL_PATH |
what the caller set, followed by <cache root>/lib |
in the process's own environment, each time an engine is made (LoupEngine) |
PYTHONPATH |
the package's parent directory first | in the export process that writes a bundle, so it imports the same package |
TORCH_FORCE_NO_WEIGHTS_ONLY_LOAD |
1, where unset |
by the modules that unpickle checkpoints: the exporter, the gate's references, the model probe and loupmd bench --compare |
CUDA_VISIBLE_DEVICES |
empty, where unset | in the export process, which then sees no GPU |
Cache¶
The cache root is $LOUPMD_CACHE, else $LOUP_CACHE_DIR, else ~/.cache/loupmd. It must lie outside the Python
installation (sys.prefix); a root inside it raises CacheLocationError, since a cache there is deleted and copied
with the environment.
| Kind | Directory | Content | Removed by loupmd cache prune |
|---|---|---|---|
models |
<root>/models/ |
downloaded checkpoints (--download) |
only with --kind models |
bundles |
<root>/bundles/ |
exported .loup bundles, one per model contents and path, element set, head, charge and spin, and exporter sources |
yes |
plans |
plans_*.bin files in the root itself (and a <root>/plans/ folder, which no current version writes) |
GEMM plans: the timed choice of GEMM kernel per shape and GPU | yes |
gate_refs |
<root>/gate_refs/ |
MACE float64 and float32 references of the accuracy gate | yes |
lib |
<root>/lib/ |
kernel plugins built by loupmd build-kernels |
only with --kind lib |
train |
<root>/train/ |
what training runs derive and can make again: mace's Clebsch-Gordan matrices (loupgym.fasttrain) |
yes |
loupmd cache list shows every cached file with its size and last use, loupmd cache size the bytes per kind, and
loupmd cache prune --older-than DAYS or --max-size SIZE removes files (Command-line reference). Prune
leaves files another process holds a lock on. Bundles and plans are made
again when they are missing; models are downloaded again only with --download.
The engine writes its plans_*.bin files into the root itself, and ensure_loup_bundle (the flat cache of a
source checkout) keeps its .loup bundles there; loupmd cache counts them as plans and bundles.
GEMM plan files¶
The engine times the GEMM kernels for each matrix shape once and stores the choice in a plan file,
plans_<gpu>_sm<major><minor>_lt<cublasLt version>_hyb<0|1>_<library build>[_c<cubin hash>].bin. The engine reads
the directory from LOUP_CACHE_DIR, else $HOME/.cache/loupmd; when only LOUPMD_CACHE is set, the package sets
LOUP_CACHE_DIR to the cache root before it makes an engine, so the plan files lie in the root, where loupmd cache
counts them. A
plan file is keyed by the GPU, the library build and the loaded tensor-core cubin, so a new library times again.
Different plan choices can make two runs of the same build differ in speed by a few percent; a fresh
LOUP_CACHE_DIR per run gives each its own plans.
Testing switches¶
These switches change which kernels or code paths run. They exist for the accuracy gate, for comparisons and for debugging. They are not for production runs: a result obtained with them has not been through the release's gates in that form. Most are read when an engine is made; the MD-loop switches are read at each call.
| Variable | Values | Effect | Read in |
|---|---|---|---|
LOUP_GENERIC |
any | ignored (0.0.1: 0 selected the kernels specialised to MACE-OMAT-0 medium, which were retired with their switches LOUP_SPLINE_VARIANT, LOUP_WPRIME_THREADS, LOUP_WPRIME_RCV and LOUP_M1_CHUNK) |
loupmd/bundles.py |
LOUP_REORDER |
0, 1 |
atom reordering off or on | src/engine.cu |
LOUP_ROW_SORT |
global |
every neighbour row sorted in global scratch, the path of rows over 4,096 edges | src/engine.cu |
LOUP_NB_GROUPS |
0, 1 |
the lane-group neighbour-list kernels off, or on any GPU (default: on for compute capability 12.0, 8.9, 8.6 and 8.0, and for ILMLIP students on 9.0) | src/engine.cu |
LOUP_POLAR_FOLD |
0, 1 |
MACE-POLAR-1: 0: the unfolded SCF and electron-energy GEMMs; 1: the fold on GPUs other than those of compute capability 12.0, 8.9, 8.6 and 8.0 |
src/polar.cu |
LOUP_CHAIN_FOLD |
0, 1 |
0: whole systems of multi-layer models on the generic kernels without the skip-chain fold; 1: the fold on GPUs other than those of compute capability 12.0, 8.9, 8.6 and 8.0 (LOUP_TILE_FOLD=0: not in tiled calls) |
src/generic.cu |
LOUP_SPECIES_TABLES |
0, 1 |
0: layer 0's species-only GEMMs instead of the per-species tables (OMOL-0, MH-1, POLAR-1); 1: the tables on GPUs other than those of compute capability 12.0, 8.9, 8.6 and 8.0 |
src/generic.cu |
LOUP_CONV_FWD_VARIANT |
0, 1, 2 |
forces the generic conv forward variant | src/generic.cu |
LOUP_CONV_TUNE |
0, 1 |
per-system timing of the conv forward variants off, or on for any GPU | src/generic.cu |
LOUP_CONV_PRUNE |
0 |
keeps every conv path of a layer whose higher-degree projections are exactly zero (MACE-MP-0 medium's second layer), instead of the pruned paths and the scalar-only product | src/generic.cu |
LOUP_LIN_COMPACT |
0 |
the dense projections and product kernels instead of a layer's live channels (MACE-MPtrj-2022.9, MACE-MP-0 medium's first layer) | src/generic.cu |
LOUP_SENDER_BWD |
0 |
the receiver-owned backward of a pruned conv layer on whole systems too (tiles and open domains always run it) | src/generated_generic.cu |
LOUP_GATE_FUSE, LOUP_GATE_FUSE_FWD |
0 |
the gate kernels of gated layers (MH-1, OMOL-0, POLAR-1) instead of the gate in the neighbouring GEMM's epilogue, backward / forward | src/engine.cu |
LOUP_GATE_FWD_L1 |
0, 1, 2 |
the gated store of later gated layers in their projections' epilogue: 0 off, 1 with the own SGEMM forced for those projections above 1,600 rows and none fused at or below (the default on compute capability 12.0, 8.9 and 8.6), 2 only where the autotune picked it; it needs the own-SGEMM extensions (LOUP_OWN_EXT) |
src/engine.cu |
LOUP_W2T_HALF, LOUP_W2F_HALF, LOUP_LIN_HALF |
0, 1 |
the two-half FP16 tensor-core GEMMs of the reverse projections, the forward projections and the plain linear maps (each operand split into two binary16 halves, FP32 accumulation) off, or on any GPU; default: on for compute capability 12.0, 8.9, 8.6 and 8.0. A system whose operands leave binary16's range falls back to the FP32 GEMMs by itself. LOUP_LIN_HALF does not apply to MACE-POLAR-1 |
src/generic.cu |
LOUP_LIN_HALF_PARTS, LOUP_LIN_HALF_EXP, LOUP_W2F_HALF_EXP, LOUP_LIN_HALF_SPECIES_ROWS, LOUP_LIN_HALF_FOLD_TILES, LOUP_H2_SPLITK |
integers | which products run on the two-half kernel (a bit mask), the split exponents, the row count from which a species' rows take it, the fold's tile count, and 0 for no split-K on small, long products |
src/generic.cu, src/engine.cu |
LOUP_RES_BWD |
0 to 3 |
how the residual connection's backward is formed (default 3: one product per degree) |
src/generic.cu |
LOUP_GATE_FWD_L0 |
1, 2 |
layer 0's gated store in its projection's epilogue, as LOUP_GATE_FWD_L1 |
src/engine.cu |
LOUP_GATE_FWD_TILED, LOUP_SWEEP_ZERO, LOUP_TILE_FOLD |
0 |
tiled calls: the gated store in the last-layer sweep off; sweeps zero every buffer instead of their accumulators; no skip-chain fold | src/generic.cu, src/engine.cu |
LOUP_EVAL_MAPPED |
0, 1 |
loup_evaluate's upload and results through copy nodes (0), or staged without them on any GPU; default: on for compute capability 12.0, 8.9, 8.6 and 8.0 |
src/engine.cu |
LOUP_POLAR_H2 |
0, 1 |
MACE-POLAR-1: the long-range GEMMs on the per-row two-half kernel off, or on any GPU; default: on for compute capability 12.0, 8.9, 8.6 and 8.0. LOUP_POLAR_H2_MINM sets the row count from which a product takes it |
src/generic.cu, src/polar.cu |
LOUP_POLAR_KSPLIT, LOUP_POLAR_WBLK |
integer; 0 |
MACE-POLAR-1: the k passes' blocks per multiprocessor (default 4); 0: the strided weight slices instead of contiguous blocks |
src/polar.cu |
LOUP_POLAR_HFOLD |
0 to 3 |
MACE-POLAR-1: the long-range hidden fold per degree (bit l - 1: degree l); 0: every layer's output formed |
src/generic.cu |
LOUP_POLAR_ZBLK |
0 |
MACE-POLAR-1: runs the GEMMs of exactly-zero weight blocks, which are skipped by default | src/polar.cu |
LOUP_JIT |
0, 1 |
the run-time compiler: 0 off; unset: conv layers whose width the library has no instance for, and products it was not built with, are compiled when a bundle is loaded, where NVRTC (libnvrtc.so) is found (else the built-in kernels run); 1 also the first layer's kernels |
src/jit.cu |
LOUP_NVRTC |
path | the NVRTC library the run-time compiler loads | src/jit.cu |
LOUP_JIT_PRODUCTS, LOUP_CONV_GENERIC |
1 |
every product compiled from the bundle's source; every conv layer on the run-time-width kernels (tests of the run-time compiler) | src/generic.cu, src/generated_generic.cu |
LOUP_JIT_PAIR, LOUP_JIT_BAKE_GRID |
0; 1 |
the run-time compiler's first-layer kernels without the paired-edge decode; with the radial grid's numbers written into the kernel source (comparisons) | src/generic.cu |
LOUP_POLAR_MONO |
0 |
MACE-POLAR-1 models of lmax 0 without the monopole shortcut: the dipole columns, which are exactly zero there, are computed (tests, A/B) |
src/polar.cu |
LOUP_EVAL_ARM |
0, 1 |
loup_set_evaluate_ahead for every handle: 0 keeps it off, 1 switches it on. With it on, other GPU work of the process between two loup_evaluate calls can wait forever (include/loupmd.h) |
src/engine.cu |
LOUP_NO_HYBRID |
1 |
no tensor-core hybrid GEMM cubin | src/engine.cu |
LOUP_HYBRID_CUBIN |
path | loads this GEMM cubin instead of the shipped one | src/engine.cu |
LOUP_LR_HYBRID |
1 |
the hybrid cubin for long-range models too | src/engine.cu |
LOUP_FORCE_TC |
1 |
every GEMM the tensor-core cubin can take runs on it; no plans are read or stored | src/engine.cu |
LOUP_OWN_EXT |
0, 1 |
the own-SGEMM extensions off, or on any GPU (default: on for compute capability 12.0, 8.9 and 8.6) | src/engine.cu |
LOUP_DEBUG_HIDE_KERNEL |
signature | hides the library's own kernels of that signature, so a plugin can be tested | src/generic.cu |
LOUP_TILE_GEMM_BUCKETS |
0 |
tiled call: times every tile row count's GEMMs | src/engine.cu |
LOUP_TILE_WAVEFRONT |
0, 1 |
tiled call: forces the wavefront schedule off or on | src/engine.cu |
LOUP_TILE_KEEP_ACTIVE |
0, count |
tiled call: no tile keeps its active edges across its sweeps, or at most that many slots | src/engine.cu |
LOUP_TILE_KEEP_COMPACT |
0, count |
tiled call: no compact slots of kept active edges, or at most that many | src/engine.cu |
LOUP_TILE_KEEP_L0 |
0, 1 |
tiled call: each tile's first-layer messages kept for its backward sweep, off or on | src/engine.cu |
LOUP_TILE_HOST_LISTS |
0, 1 |
tiled plan: the tile lists' edges on the device, or in pinned host memory | src/engine.cu |
LOUP_TILE_HOST_STAGE |
0, 1 |
tiled call: host lists read over the bus, or copied into device buffers one sweep ahead | src/engine.cu |
LOUP_TILE_HOST_STATE |
0, 1 |
tiled plan: the layer outputs and their gradients never in host memory, or there (a plan that would pin over 90% of the available host memory is refused) | src/engine.cu |
LOUP_TILE_HOST_PIPE |
0 |
tiled call: the host state's copies one after another, not overlapped with the sweeps | src/engine.cu |
LOUP_TILE_HOST_ALIAS |
0 |
tiled call: a separate gradient array in the host state | src/engine.cu |
LOUP_TILE_HOST_COMPACT |
0 |
tiled call: host lists in the full form (28 B per edge) instead of 8 B | src/engine.cu |
LOUP_TILE_DEVICE_COMPACT |
0 |
tiled call: device lists in the full form (28 B per edge) instead of 8 B | src/engine.cu |
LOUP_TILE_SHARE_LAYERS |
0 |
tiled call: every layer's buffers its own instead of one arena the layers share | src/generic.cu |
LOUP_VARIABLE_CELL |
1 |
sends a loup_run call through the variable-cell step |
src/engine.cu |
LOUP_DEBUG_CELL_RATE |
number r | scales the cell and positions by 1 + r in every variable-cell step | src/engine.cu |
LOUP_MIN_AHEAD |
0, 1 |
the minimiser's list check before or after the force pass | src/engine.cu |
LOUP_MD_REBUILD |
host, fallback |
MD loop: every neighbour rebuild on the host, or the device rebuild's fallback to the host in every rebuild | src/engine.cu |
LOUP_NO_FLAT_MD |
1 |
MD loop: the per-step path instead of the flat loop, which takes NVE, Langevin, CSVR and Berendsen NVT runs with a skin, no thermo output and a fixed cell | src/engine.cu |
LOUP_NO_BURST_MD |
1 |
MD loop: no bursts (the flat loop's graphs of several steps between list checks, NVE and Langevin without a fixed centre of mass) | src/engine.cu |
LOUP_BURST_STEPS |
0 to 32 |
MD loop: the steps of a burst (default 24; below 2, no bursts) | src/engine.cu |
LOUP_FORCE_BURST_MD |
1 |
MD loop: the first burst runs whatever the displacement estimate says (tests) | src/engine.cu |
LOUP_NVE_BLK |
32, 64, 128, 256 |
MD loop: the block size of the integrator's per-atom kernels (default 64 for ILMLIP students on compute capability 8.0 and 9.0, else 256) | src/engine.cu |
LOUP_NL_LANES |
16, 32 |
neighbour list: lanes per atom of the lane-group count and fill kernels (default 32 for ILMLIP students on compute capability 8.0 and 9.0, else 8) | src/engine.cu |
LOUP_NL_ONEPASS |
0, 1 |
neighbour list: the one-pass rebuild in the MD loop's device rebuild off or on (default on for ILMLIP students on compute capability 8.0 and 9.0) | src/engine.cu |
LOUP_NL_ONEPASS_CHECK |
1 |
neighbour list: after a host-driven rebuild, the one-pass kernels run again into scratch and are compared bit for bit with the list | src/engine.cu |
LOUP_D3_KSUM |
direct |
D3 split sum: the direct k sum instead of the mesh | src/dispersion/d3_pair.cu |
LOUP_D3_PME_ORDER |
4, 5, 6, 8 |
D3 mesh: the B-spline order | src/dispersion/d3_pair.cu |
LOUP_D3_ATM_PROJ |
0 |
D3 three-body term: the per-triangle C6 table walk | src/dispersion/d3_pair.cu |
LOUP_SWEEP_REPLAY |
any value | generic path: a whole system runs the sweep schedule of a tiled one, without the skip-chain fold (not for long-range models) | src/generic.cu |
LOUP_DEBUG_PACK |
any value | prints the packed tables' relative error per layer | src/generic.cu |
LOUP_DEBUG_W2T_HALF, LOUP_DEBUG_GOUT, LOUP_DEBUG_LIN_AMAX |
any value | print the two-half GEMMs' deviation from FP32, the gate outputs' and the linear maps' largest magnitudes | src/engine.cu, src/generic.cu |
LOUP_DEBUG_ERRORS |
any value | prints every library error to standard error | src/engine.cu |
LOUP_DEBUG_JIT, LOUP_DEBUG_COMPACT, LOUP_DEBUG_ARM |
1 |
print what the run-time compiler builds or reads from its cache, the compacted layers, and why nothing is queued ahead | src/generic.cu, src/jit.cu, src/engine.cu |
LOUP_DEBUG_EVAL_TIMES |
1 |
when a handle is destroyed, prints where its loup_evaluate calls spent their time |
src/engine.cu |
LOUP_DEBUG_GRAPHS, LOUP_DEBUG_GEMM, LOUP_DEBUG_GEMM_BUCKETS, LOUP_DEBUG_SPLINE |
any value | print diagnostics of CUDA graphs, GEMM plans, bucketed GEMM timings and kernel-variant timings | src/engine.cu, src/generic.cu |
LOUP_DEBUG_TILE_TIMES |
1 |
prints the tiled call's phase times, the row pool and the kept slots | src/engine.cu |
LOUP_TILED_HOST_MD |
1 |
tiled MD: the integrator on the host (NVE and Langevin only, with its own Langevin noise stream) instead of on the device | loupmd/tiled_engine.py |
LOUP_NO_NVML |
1 |
the device's free memory from CUDA alone instead of the smaller of CUDA's and NVML's figures | src/engine.cu |
LOUP_DEBUG_PLAN |
1 |
prints the free device memory at the steps of a system's set-up and first call, and the memory plan's counters | src/engine.cu |
LOUP_DEBUG_PLAN_FREE |
MiB | the capacity plan counts at most this much device memory as free (tests of its thresholds) | src/engine.cu |
LOUP_DEBUG_ALLOC_FREE |
MiB | the allocations of a system's buffers count at most this much device memory as free, and fail with "out of memory" above it (test of the refusal) | src/engine.cu |
LOUP_DEBUG_EDGE_LIMIT |
integer | lowers the largest neighbour-edge count of a whole-system list, for the test of its refusal | src/engine.cu |
LOUP_ILMLIP_DISP |
0 |
ILMLIP students: a bundle's built-in D3(BJ) dispersion off (distillation) | src/ilmlip.cu |
LOUP_ILMLIP_F64_FORCES |
1 |
ILMLIP students: forces accumulated in FP64 instead of FP32 (not the default on the A100: not free on two of four students, ledger ilm-f64-forces) |
src/ilmlip.cu |
LOUP_ILMLIP_H2, LOUP_ILMLIP_H2_CC90 |
0; 1 |
ILMLIP students: the readout and node GEMMs on FP32 instead of the two-half FP16 tensor-core kernel (default: the two-half kernel on compute capability 12.0, 8.9, 8.6 and 8.0); 1: the two-half kernel on compute capability 9.0 too |
src/ilmlip.cu |
LOUP_ILMLIP_NO_NODE_H2 |
1 |
ILMLIP students: the node GEMMs off the two-half kernel (the readout keeps it) | src/ilmlip.cu |
LOUP_ILMLIP_RO_FUSE, LOUP_ILMLIP_RO_FULL |
0; 0, 2, 3 |
ILMLIP students' readout: no fused kernels; no fully fused form, 2 the single fused kernel forced, 3 the split form forced |
src/ilmlip.cu |
LOUP_LRSK_RO2_FUSE |
0, 1, 2 |
FastLR-SK students' two-layer readout of width 64: 0 unfused, 2 fused at any size (default: fused up to 4,608 atoms) |
src/ilmlip.cu |
LOUP_ILMLIP_L1_SW16, LOUP_ILMLIP_PRE_SW16 |
0, 1 |
ILMLIP students' layer 1: 0 the 32-lane forms of the edge forward and of the precontracted backward instead of the 16-lane ones; the backward's default is 16 lanes, 32 on compute capability 8.0 and 9.0, and LOUP_ILMLIP_L1_SW16 sets it when LOUP_ILMLIP_PRE_SW16 is unset; LOUP_ILMLIP_PRE_SW16=1 takes 16 lanes for lmax 3 too |
src/ilmlip.cu |
LOUP_ILMLIP_L2_SENDER |
0 |
ILMLIP students' layer 2: the receiver-side edge backward instead of the sender-side one (which runs only without ghost atoms) | src/ilmlip.cu |
LOUP_ILMLIP_NO_LF2_FAST |
1 |
ILMLIP students: the general node and layer-2 kernels instead of the fast lf2 forms |
src/ilmlip.cu |
LOUP_ILMLIP_NO_COMPACT, LOUP_ILMLIP_NO_F32_COMPACT |
1 |
ILMLIP students: every listed edge instead of the compacted active edges (r < r_max); the compaction without the FP32 displacement deltas | src/engine.cu |
LOUP_ILMLIP_PACK_VS |
0 |
ILMLIP students: compacted edges with a separate sender array instead of the sender packed with the edge vector | src/engine.cu |
LOUP_COMPACT_PF, LOUP_COMPACT_L2 |
1, 2 |
ILMLIP edge compaction: the prefetching kernels; the reference vectors' loads with an L2 policy (screens p13 and p22, both rejected) | src/engine.cu |
LOUP_LRSK_Q16, LOUP_LRSK_Q32 |
0; 1 |
FastLR-SK polarisation forward: 0 without the 16-lane multipole kernel; 1 the 32-lane form (rejected on the A100, ledger ilm-q32) |
src/ilmlip_lrsk_fast.cu |
LOUP_LRSK_HEADS_PER_SM |
a or a,b |
FastLR-SK heads kernels: at most a blocks per multiprocessor with small staged tables and b with large ones (default on compute capability 8.0 and 9.0: 8 and 5.33) |
src/ilmlip.cu |
LOUP_LRSK_HEADS_SMEM |
0 |
FastLR-SK heads kernels without shared-memory staging (rejected on the A100, ledger ilm-heads-no-smem) |
src/ilmlip_lrsk_fast.cu |
LOUP_LRSK_MLP4 |
0, 1 |
FastLR-SK polarisation MLP on four warps off or on (default on for compute capability 8.0 and 9.0, off from 40,000 atoms on 9.0 and from 10,000 on 8.0, see LOUP_LRSK_MLP2_MIN_N). A set value holds at every size |
src/ilmlip.cu |
LOUP_LRSK_MLP2_MIN_N |
integer | From this many atoms on, the two-warp polarisation MLP where the four-warp one is the default (default 40,000 on compute capability 9.0, 10,000 on 8.0, else 0 = never) | src/ilmlip.cu |
LOUP_P29_FWD_HOIST |
1 |
FastLR-SK layer-1 node forward (four-message form, compute capability 8.0 and 9.0): the feature-scale loads with the A loads (rejected on the A100, ledger ilm-node-lf1) |
src/ilmlip_lrsk_fast.cu |
LOUP_ZBL_STREAM |
1 |
ILMLIP students' ZBL repulsion on its own stream instead of inline on the main one | src/ilmlip.cu |
LOUP_ZBL_PER_SM |
number | ILMLIP students' ZBL kernel: at most that many blocks per multiprocessor | src/ilmlip.cu |
LOUP_ZBL_FOLD |
0 |
ILMLIP FastLR-SK students on compute capability 8.0: 0 runs the two ZBL kernels instead of the ZBL work folded into the L1 node kernels (default folded; other GPUs always run the two kernels) |
src/ilmlip.cu |
LOUP_PDL |
0, 1 |
ILMLIP students on compute capability 9.0: the per-step kernels launched with programmatic dependent launch, so each one's start and weight staging overlap the previous kernel's last wave (default on; 0 gives plain launches; timed on an H200, not on an H100) |
src/pdl.cuh |
LOUP_H2_SPLITK_KPS, LOUP_H2ROW_BM |
1 to 4; 32, 64, 128 |
the per-row two-half GEMM: the fewest K steps per split-K slice (default 4); the row tile forced | src/hgemm2.cu |
LOUP_FT_PROFILE |
1 |
FastLR-SK training library: prints the phase times of two training steps (the eighth and ninth) | src/train/lrsk/lrsk_full_train.cu |
LOUPMD_EXPORT_FASTMACE |
path to a FastMACE checkout | the exporter takes its names from that checkout instead of the vendored copy | loupmd/export/_fastmace.py |