/clio-core-skills:gpu-vectorfrom clio-core-skills
Guides writing, porting, optimizing, and debugging GPU kernels using CLIO's paged out-of-core vector (gv::Vector / gv::DeviceVector). Covers page/cache sizing, fetch/hold/flush placement, eviction safety, and tier policy.
Ships in clio-core-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A gv::Vector<T> is one logical array whose pages live in CLIO's tiered store
(GPU memory, host DRAM, NVMe, object stores, parallel filesystems, across
nodes) and are cached on each GPU in a shared, set-associative page cache.
Kernels read and write it through block-collective coroutine verbs: a block
that has to wait for data exits the kernel and the host relaunches it when
the data lands.
Source paths in these files are relative to the root of the iowarp/clio-core repository.
This skill is general. It describes the API, rules that hold for any access pattern, and measured costs. It deliberately contains no worked implementations: design your kernel from the workload in front of you.
| file | read when |
|---|---|
| API.md | before writing any code. The contract, from the headers. Where a comment in the tree disagrees, the code wins. |
| DESIGN.md | before choosing a data layout or decomposition. The rules that decide whether a kernel is 1x or 10x its baseline. |
| COSTS.md | before optimizing, choosing page/cache sizes, or adding a tier policy. |
| PITFALLS.md | before running anything, and whenever a result looks too good, too bad, or hangs. Also: validation and debugging. |
| ORGANIZER.md | only when designing a tier-placement policy (data organizer, phase hints, prefetch). |
Fetch names the element ranges a block is about to touch, pins those pages, and brings them in. It is the only verb that moves data in.HoldPage never faults. It resolves an offset to a pointer into a pinned, resident frame, and the result never crosses a page (run() elements).UnpinRange gives the pin back. Every fetched page needs exactly one.Flush writes back exactly the byte ranges you name. Nothing is ever written back for you: eviction does no I/O, so an unpinned unflushed page can silently lose its writes.noinline plain functions over raw pointers.__syncthreads_or. Stores may be predicated; suspensions may not.Init(yv.Block()), never blockIdx.x -- the driver compacts the grid between rounds.PageLo/PageSpan to fetch whole pages).UnpinRange. Never flush bytes you did not write.__shared__ and registers do not survive a park (C++20 coroutine locals do; coroc locals must be trivially copyable). Use CLIO_SHARED_PERSIST or re-stage after every suspend.HitRoundCap() after every run: hitting the round cap is a livelock that otherwise looks like a pass.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
12 skills in this plugin
/chimod-devUse when writing your own CLIO Core runtime module (ChiMod) outside the clio-core repo: install with headers, clio_mod.yaml, tasks, runtime, client, codegen, CMake, loading, testing, or a CTE interposer layer. Triggers on "new chimod", "custom module", "add a method", "clio_mod.yaml", "clio-run refresh", "CreateParams", "CLIO_REPO_PATH", "CoreInterposer". Not for configuring shipped modules; use storage-compose. Not for GPU paged-vector kernels; use gpu-vector./clio-bdevUse when configuring CLIO Core block devices: a clio_bdev pool (ram, file, hbm, pinned, noop, s3, gcs, daos), a CTE storage tier entry, capacity, persistence_level, alloc_log and --fresh, or a clio_safe_bdev erasure-coded array (members, parity, max_failures, rebuild). Triggers on "bdev_type", "capacity_limit", "alloc_log", "persistence_level", "safe_bdev", "parity disk", "S3 tier". Not for designing the whole chain (use storage-compose) or CTE core keys (use clio-cte-core)./clio-caeUse when importing external data into CLIO Core with the Context Assimilation Engine: writing OMNI files, running clio-cae, calling ParseOmni or clio_cee context_bundle from Python/C++, choosing sources (file, HDF5, HTTP, S3, GCS, Globus), allowed_roots, or composing the LLM summarizer (401.0). Triggers on "OMNI file", "clio-cae", "assimilate", "ParseOmni", "context_bundle", "label_matches", "summarizer". Not for searching imported data (use clio-indexer) or chain ordering (use storage-compose)./clio-compressorUse when enabling, configuring or debugging clio_cte_compressor (pool 562.0): building with CLIO_CTE_ENABLE_COMPRESS or Spack +compress, default_compress and presets, static vs dynamic (model-chosen) codecs, GPU codecs, chain placement, and stored vs logical size. Triggers on "compress my blobs", "default_compress", "zstd", "lz4", "kCompressDynamic", "562.0", "compression ratio". Not for choosing or ordering the whole chain; use storage-compose. Not for the blob API itself; use clio-cte-core./clio-cte-cachesUse when choosing, composing, tuning or debugging a CLIO Core CTE cache module: write-back (567.0), write-thru, the shared-memory cache (568.0) or the node-copy cache (563.0). Covers keys, chain order, ack and fsync semantics, staleness and loss per failure. Triggers on "write-back cache", "flush_period_ms", "fsync is slow", "lost writes after crash", "md_only", "invalidate_on_flush", "stale size on another node". Not for the core or chain design; use clio-cte-core or storage-compose./clio-cte-coreUse when configuring, calling or debugging the Context Transfer Engine core (clio_cte_core): the persistent core at 512.0, the volatile core at 540.0, tiers, scores, the metadata WAL and the C++/Python blob API (Tag, PutBlob, GetBlob, TagQuery, SyncTag) every chain speaks. Triggers on "clio_cte_core", "512.0", "540.0", "PutBlob rc=11", "metadata_log_path", "clio_cte_core_ext", "persistence_level". Not for choosing or ordering the chain; use storage-compose. Not for bdev keys; use clio-bdev.npx claudepluginhub iowarp/clio-kit --plugin clio-core-skillsOther plugins' skills for the same job