Expand description
Test helpers for teeny-cuda’s own test suite.
Structs§
- Cuda
Test Env - A device + capability pair set up for a test, via
setup_cuda_env.
Functions§
- launch_
config - Build a launch config with an explicit block size.
- launch_
config_ from_ program - Build a launch config using block size from kernel metadata.
- launch_
config_ with_ grid - Build a launch config with a pre-computed grid and block from kernel metadata.
- load_
program_ from_ ptx - Loads a compiled program directly from raw PTX bytes via the driver’s JIT loader (skipping
nvptxcompiler) — useful in tests that already have PTX in hand. - setup_
cuda_ env - Asserts CUDA is available, opens the first device, and resolves its compute capability
(overridable via the
TEENYC_CAPABILITYenv var, e.g.sm_90) — the standard setup forteeny-cuda’s own device-dependent tests.