Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/pytorchsim_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ on:
# test file, and is not identical to it: a file the allowlist runs as several entries (Gemma's
# --preset) runs here once without arguments, which runs the same presets in one process, and
# tests/system tests the allowlist leaves out run here too: test_compiler_failure,
# test_reduction_tiling and test_select, and test_autotune_tables, test_breakdown_viewer,
# test_reduction_tiling and test_select, and test_autotune_tables,
# test_device_interface, test_launch_dir, test_module_form, test_npuwattch_json, test_one_layer_kv_write,
# test_one_layer_mask, test_one_layer_softcap_mask, test_patch_scope, test_route_allowlist, test_togsim_exit,
# test_togsim_result and test_verify_golden, which emit no kernel and so are no route coverage.
# test_togsim_result, test_gem5_trace_split, test_perfetto_trace, test_profile_dump and test_verify_golden, which emit no kernel and so are no route coverage.
# Regenerate the allowlist with
# python scripts/ci/triton_route_sweep.py --all --update-allowlist
# and mirror its files here; a test absent from both is not gated anywhere.
Expand Down Expand Up @@ -88,12 +88,12 @@ jobs:
- tests/ops/view/test_view3D_2D.py
- tests/system/test_attribute_sources.py
- tests/system/test_autotune_tables.py
- tests/system/test_breakdown_viewer.py
- tests/system/test_bundle_reuse.py
- tests/system/test_bundle_where.py
- tests/system/test_compiler_failure.py
- tests/system/test_device_interface.py
- tests/system/test_eager.py
- tests/system/test_gem5_trace_split.py
- tests/system/test_launch_dir.py
- tests/system/test_launch_record.py
- tests/system/test_module_form.py
Expand All @@ -102,6 +102,8 @@ jobs:
- tests/system/test_one_layer_mask.py
- tests/system/test_one_layer_softcap_mask.py
- tests/system/test_patch_scope.py
- tests/system/test_perfetto_trace.py
- tests/system/test_profile_dump.py
- tests/system/test_reduction_tiling.py
- tests/system/test_route_allowlist.py
- tests/system/test_select.py
Expand Down
4 changes: 4 additions & 0 deletions pytorchsim/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
CONFIG_KVCACHE_LAYOUT = os.environ.get("TORCHSIM_KVCACHE_LAYOUT", "headwise").strip() or "headwise"
if CONFIG_KVCACHE_LAYOUT not in ("headwise", "tokenwise"):
raise ValueError(f"TORCHSIM_KVCACHE_LAYOUT={CONFIG_KVCACHE_LAYOUT!r}: headwise or tokenwise")
#: Set to 1 to have gem5 trace the coprocessor and write tog_tile_timeline.pftrace beside the cycle table.
CONFIG_GEM5_TRACE = os.environ.get("TORCHSIM_GEM5_TRACE", "0") == "1"
#: Set to 1 to write <dump path>/profile/ (Perfetto trace.json, tile traces, a thin index.html) at process exit.
CONFIG_PROFILE_DUMP = os.environ.get("TORCHSIM_PROFILE_DUMP", "0") == "1"
#: The compiler checkout (stages 1-5, ttir to the RISC-V ELF), a separate repository, not vendored.
CONFIG_TORCHSIM_COMPILE_DIR = os.environ.get(
"TORCHSIM_COMPILE_DIR", default=os.path.join(CONFIG_TORCHSIM_DIR, "pytorchsim-triton-compiler"))
Expand Down
Loading