accelforge 2026.1.13.139__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- accelforge-2026.1.13.139/.gitattributes +2 -0
- accelforge-2026.1.13.139/.github/workflows/documentation.yml +31 -0
- accelforge-2026.1.13.139/.github/workflows/publish.yaml +39 -0
- accelforge-2026.1.13.139/.gitignore +200 -0
- accelforge-2026.1.13.139/Dockerfile +89 -0
- accelforge-2026.1.13.139/LICENSE +19 -0
- accelforge-2026.1.13.139/MANIFEST.in +10 -0
- accelforge-2026.1.13.139/Makefile +75 -0
- accelforge-2026.1.13.139/PKG-INFO +67 -0
- accelforge-2026.1.13.139/README.md +29 -0
- accelforge-2026.1.13.139/accelforge/__init__.py +50 -0
- accelforge-2026.1.13.139/accelforge/_accelerated_imports.py +16 -0
- accelforge-2026.1.13.139/accelforge/_deprecate/_simanneal/evalmapping.py +271 -0
- accelforge-2026.1.13.139/accelforge/_deprecate/_simanneal/mapspaceglobals.py +298 -0
- accelforge-2026.1.13.139/accelforge/_deprecate/_simanneal/simanneal.py +666 -0
- accelforge-2026.1.13.139/accelforge/_deprecate/_simanneal/tracking.py +105 -0
- accelforge-2026.1.13.139/accelforge/_deprecate/_simanneal/wrappers.py +218 -0
- accelforge-2026.1.13.139/accelforge/_deprecate/_simanneal2/__init__.py +7 -0
- accelforge-2026.1.13.139/accelforge/_deprecate/_simanneal2/simanneal.py +493 -0
- accelforge-2026.1.13.139/accelforge/_deprecate/_simanneal2/tracking.py +116 -0
- accelforge-2026.1.13.139/accelforge/_deprecate/compatibility_util.py +181 -0
- accelforge-2026.1.13.139/accelforge/_deprecate/layerdeduplication/__init__.py +2 -0
- accelforge-2026.1.13.139/accelforge/_deprecate/layerdeduplication/group_similar_einsums.py +160 -0
- accelforge-2026.1.13.139/accelforge/_deprecate/layerdeduplication/grouped_einsums.py +84 -0
- accelforge-2026.1.13.139/accelforge/_deprecate/mapping_filter_tags/__init__.py +2 -0
- accelforge-2026.1.13.139/accelforge/_deprecate/mapping_filter_tags/ffmt.py +212 -0
- accelforge-2026.1.13.139/accelforge/_deprecate/mapping_filter_tags/onesplit.py +24 -0
- accelforge-2026.1.13.139/accelforge/_deprecate/mapping_filter_tags/util.py +24 -0
- accelforge-2026.1.13.139/accelforge/_deprecate/tags.py +69 -0
- accelforge-2026.1.13.139/accelforge/_deprecate/viz/__init__.py +0 -0
- accelforge-2026.1.13.139/accelforge/_deprecate/viz/interactive.py +159 -0
- accelforge-2026.1.13.139/accelforge/_deprecate/viz/reservationtree.py +307 -0
- accelforge-2026.1.13.139/accelforge/_deprecate/viz/ski_slope.py +88 -0
- accelforge-2026.1.13.139/accelforge/_version.py +34 -0
- accelforge-2026.1.13.139/accelforge/_version_scheme.py +23 -0
- accelforge-2026.1.13.139/accelforge/examples.py +39 -0
- accelforge-2026.1.13.139/accelforge/exceptions.py +47 -0
- accelforge-2026.1.13.139/accelforge/frontend/__init__.py +21 -0
- accelforge-2026.1.13.139/accelforge/frontend/_binding.py +127 -0
- accelforge-2026.1.13.139/accelforge/frontend/_workload_isl/__init__.py +13 -0
- accelforge-2026.1.13.139/accelforge/frontend/_workload_isl/_isl.py +149 -0
- accelforge-2026.1.13.139/accelforge/frontend/_workload_isl/_symbolic.py +141 -0
- accelforge-2026.1.13.139/accelforge/frontend/arch.py +1782 -0
- accelforge-2026.1.13.139/accelforge/frontend/config.py +59 -0
- accelforge-2026.1.13.139/accelforge/frontend/mapper/__init__.py +5 -0
- accelforge-2026.1.13.139/accelforge/frontend/mapper/ffm.py +122 -0
- accelforge-2026.1.13.139/accelforge/frontend/mapper/mapper.py +7 -0
- accelforge-2026.1.13.139/accelforge/frontend/mapper/metrics.py +30 -0
- accelforge-2026.1.13.139/accelforge/frontend/mapping/__init__.py +23 -0
- accelforge-2026.1.13.139/accelforge/frontend/mapping/mapping.py +1733 -0
- accelforge-2026.1.13.139/accelforge/frontend/model.py +14 -0
- accelforge-2026.1.13.139/accelforge/frontend/renames.py +150 -0
- accelforge-2026.1.13.139/accelforge/frontend/spec.py +360 -0
- accelforge-2026.1.13.139/accelforge/frontend/variables.py +11 -0
- accelforge-2026.1.13.139/accelforge/frontend/workload.py +974 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/__init__.py +19 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/_join_pmappings/__init__.py +0 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/_join_pmappings/compatibility.py +653 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/_join_pmappings/compress_pmappings.py +138 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/_join_pmappings/join_pmappings.py +719 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/_join_pmappings/pmapping_dataframe.py +910 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/_join_pmappings/pmapping_group.py +339 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/_make_pmappings/contraints/__init__.py +0 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/_make_pmappings/contraints/constraints.py +360 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/_make_pmappings/make_pmapping_templates/__init__.py +1 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/_make_pmappings/make_pmapping_templates/make_loops.py +390 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/_make_pmappings/make_pmapping_templates/make_pmapping_templates.py +463 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/_make_pmappings/make_pmapping_templates/make_reservations.py +95 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/_make_pmappings/make_pmapping_templates/make_storage_order.py +397 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/_make_pmappings/make_pmapping_templates/make_storages.py +155 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/_make_pmappings/make_pmappings.py +411 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/_make_pmappings/make_pmappings_from_templates/__init__.py +1 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/_make_pmappings/make_pmappings_from_templates/make_pmappings_from_templates.py +407 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/_make_pmappings/make_pmappings_from_templates/make_tile_shapes.py +1694 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/_make_pmappings/make_pmappings_from_templates/run_model.py +170 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/_make_pmappings/make_pmappings_from_templates/symbol_relations.py +201 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/_make_pmappings/pmapper_job.py +282 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/_pareto_df/df_convention.py +283 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/_pareto_df/pareto.py +508 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/data.py +61 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/main.py +211 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/mappings.py +524 -0
- accelforge-2026.1.13.139/accelforge/mapper/FFM/pmappings.py +319 -0
- accelforge-2026.1.13.139/accelforge/mapper/__init__.py +9 -0
- accelforge-2026.1.13.139/accelforge/mapper.py +0 -0
- accelforge-2026.1.13.139/accelforge/model/__init__.py +5 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/__init__.py +0 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/accesses.py +335 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/capacity/__init__.py +5 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/capacity/aggregators.py +36 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/capacity/capacity.py +47 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/energy.py +150 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/equivalent_ranks.py +29 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/latency/__init__.py +5 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/latency/latency.py +98 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/latency/memory.py +120 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/latency/processors.py +92 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/mapping_utilities.py +71 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/reuse/__init__.py +9 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/reuse/isl/__init__.py +5 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/reuse/isl/des.py +59 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/reuse/isl/isl_functions.py +374 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/reuse/isl/mapping_to_isl/__init__.py +4 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/reuse/isl/mapping_to_isl/analyze_mapping.py +297 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/reuse/isl/mapping_to_isl/skews_from_mapping.py +236 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/reuse/isl/mapping_to_isl/tiling.py +685 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/reuse/isl/mapping_to_isl/types.py +188 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/reuse/isl/spatial.py +260 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/reuse/isl/temporal.py +182 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/reuse/symbolic/__init__.py +13 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/reuse/symbolic/symbolic.py +1396 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/run.py +122 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/types.py +26 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/visualization/__init__.py +0 -0
- accelforge-2026.1.13.139/accelforge/model/_looptree/visualization/occupancy.py +11 -0
- accelforge-2026.1.13.139/accelforge/model/main.py +283 -0
- accelforge-2026.1.13.139/accelforge/plotting/__init__.py +7 -0
- accelforge-2026.1.13.139/accelforge/plotting/mappings.py +219 -0
- accelforge-2026.1.13.139/accelforge/plotting/specs.py +57 -0
- accelforge-2026.1.13.139/accelforge/util/__init__.py +30 -0
- accelforge-2026.1.13.139/accelforge/util/_base_analysis_types.py +24 -0
- accelforge-2026.1.13.139/accelforge/util/_basetypes.py +1011 -0
- accelforge-2026.1.13.139/accelforge/util/_eval_expressions.py +323 -0
- accelforge-2026.1.13.139/accelforge/util/_frozenset.py +36 -0
- accelforge-2026.1.13.139/accelforge/util/_isl.py +29 -0
- accelforge-2026.1.13.139/accelforge/util/_itertools.py +14 -0
- accelforge-2026.1.13.139/accelforge/util/_mathfuncs.py +57 -0
- accelforge-2026.1.13.139/accelforge/util/_picklecache.py +32 -0
- accelforge-2026.1.13.139/accelforge/util/_setexpressions.py +268 -0
- accelforge-2026.1.13.139/accelforge/util/_sympy/__init__.py +0 -0
- accelforge-2026.1.13.139/accelforge/util/_sympy/broadcast_max.py +18 -0
- accelforge-2026.1.13.139/accelforge/util/_visualization.py +112 -0
- accelforge-2026.1.13.139/accelforge/util/_yaml.py +579 -0
- accelforge-2026.1.13.139/accelforge/util/exceptions.py +49 -0
- accelforge-2026.1.13.139/accelforge/util/parallel.py +201 -0
- accelforge-2026.1.13.139/accelforge.egg-info/PKG-INFO +67 -0
- accelforge-2026.1.13.139/accelforge.egg-info/SOURCES.txt +264 -0
- accelforge-2026.1.13.139/accelforge.egg-info/dependency_links.txt +1 -0
- accelforge-2026.1.13.139/accelforge.egg-info/requires.txt +29 -0
- accelforge-2026.1.13.139/accelforge.egg-info/top_level.txt +6 -0
- accelforge-2026.1.13.139/docker-compose.yaml +10 -0
- accelforge-2026.1.13.139/docs/source/_ext/include_attrs.py +550 -0
- accelforge-2026.1.13.139/docs/source/_ext/include_docstring.py +364 -0
- accelforge-2026.1.13.139/docs/source/_ext/include_functions.py +154 -0
- accelforge-2026.1.13.139/docs/source/_ext/include_notebook.py +131 -0
- accelforge-2026.1.13.139/docs/source/_ext/include_yaml.py +119 -0
- accelforge-2026.1.13.139/docs/source/_ext/inherited_attributes.py +222 -0
- accelforge-2026.1.13.139/docs/source/_ext/paths.py +4 -0
- accelforge-2026.1.13.139/docs/source/_static/logo.svg +1 -0
- accelforge-2026.1.13.139/docs/source/accelforge.frontend.mapping.rst +21 -0
- accelforge-2026.1.13.139/docs/source/accelforge.model.rst +21 -0
- accelforge-2026.1.13.139/docs/source/accelforge.plotting.rst +29 -0
- accelforge-2026.1.13.139/docs/source/conf.py +158 -0
- accelforge-2026.1.13.139/docs/source/guide/citation.rst +45 -0
- accelforge-2026.1.13.139/docs/source/guide/contributing.rst +120 -0
- accelforge-2026.1.13.139/docs/source/guide/definitions.rst +75 -0
- accelforge-2026.1.13.139/docs/source/guide/faqs.rst +12 -0
- accelforge-2026.1.13.139/docs/source/guide/guide.rst +175 -0
- accelforge-2026.1.13.139/docs/source/guide/modeling/accelerator_energy_latency.rst +62 -0
- accelforge-2026.1.13.139/docs/source/guide/modeling/component_energy_area.rst +106 -0
- accelforge-2026.1.13.139/docs/source/guide/modeling/mapping.rst +145 -0
- accelforge-2026.1.13.139/docs/source/guide/modeling.rst +33 -0
- accelforge-2026.1.13.139/docs/source/guide/parsing/evaluation.rst +212 -0
- accelforge-2026.1.13.139/docs/source/guide/parsing/yaml_parsing.rst +176 -0
- accelforge-2026.1.13.139/docs/source/guide/spec/architecture.rst +152 -0
- accelforge-2026.1.13.139/docs/source/guide/spec/mapping.rst +70 -0
- accelforge-2026.1.13.139/docs/source/guide/spec/workload.rst +86 -0
- accelforge-2026.1.13.139/docs/source/guide/spec.rst +35 -0
- accelforge-2026.1.13.139/docs/source/index.rst +65 -0
- accelforge-2026.1.13.139/docs/source/modules.rst +22 -0
- accelforge-2026.1.13.139/examples/arches/compute_in_memory/_include.yaml +74 -0
- accelforge-2026.1.13.139/examples/arches/compute_in_memory/_include_functions.py +229 -0
- accelforge-2026.1.13.139/examples/arches/compute_in_memory/_load_spec.py +57 -0
- accelforge-2026.1.13.139/examples/arches/compute_in_memory/components/c2c_multiplier.py +181 -0
- accelforge-2026.1.13.139/examples/arches/compute_in_memory/components/dac_c2c_r2r.py +605 -0
- accelforge-2026.1.13.139/examples/arches/compute_in_memory/components/misc.py +195 -0
- accelforge-2026.1.13.139/examples/arches/compute_in_memory/components/util/bit_functions.py +51 -0
- accelforge-2026.1.13.139/examples/arches/compute_in_memory/components/zero_comparator.py +92 -0
- accelforge-2026.1.13.139/examples/arches/compute_in_memory/isaac.yaml +227 -0
- accelforge-2026.1.13.139/examples/arches/compute_in_memory/memory_cells/ecram_demo.yaml +63 -0
- accelforge-2026.1.13.139/examples/arches/compute_in_memory/memory_cells/rram_example.yaml +63 -0
- accelforge-2026.1.13.139/examples/arches/compute_in_memory/memory_cells/rram_isaac_isca_2016.yaml +64 -0
- accelforge-2026.1.13.139/examples/arches/compute_in_memory/memory_cells/rram_neurosim_default.yaml +63 -0
- accelforge-2026.1.13.139/examples/arches/compute_in_memory/memory_cells/rram_raella_isca_2023.yaml +70 -0
- accelforge-2026.1.13.139/examples/arches/compute_in_memory/memory_cells/rram_wan_nature_2022.yaml +63 -0
- accelforge-2026.1.13.139/examples/arches/compute_in_memory/memory_cells/sram_colonnade_jssc_2021.yaml +63 -0
- accelforge-2026.1.13.139/examples/arches/compute_in_memory/memory_cells/sram_example.yaml +63 -0
- accelforge-2026.1.13.139/examples/arches/compute_in_memory/memory_cells/sram_jia_jssc_2020.yaml +63 -0
- accelforge-2026.1.13.139/examples/arches/compute_in_memory/memory_cells/sram_sinangil_jssc_2021.yaml +63 -0
- accelforge-2026.1.13.139/examples/arches/compute_in_memory/memory_cells/sram_wang_vlsi_2022.yaml +63 -0
- accelforge-2026.1.13.139/examples/arches/compute_in_memory/wang_vlsi_2022.yaml +289 -0
- accelforge-2026.1.13.139/examples/arches/eyeriss.yaml +55 -0
- accelforge-2026.1.13.139/examples/arches/fanout_variations/at_glb.yaml +31 -0
- accelforge-2026.1.13.139/examples/arches/fanout_variations/at_glb_with_fanout_node.yaml +34 -0
- accelforge-2026.1.13.139/examples/arches/fanout_variations/at_mac.yaml +31 -0
- accelforge-2026.1.13.139/examples/arches/fanout_variations/at_mac_with_constraints.yaml +38 -0
- accelforge-2026.1.13.139/examples/arches/fanout_variations/at_mac_with_fanout_node.yaml +34 -0
- accelforge-2026.1.13.139/examples/arches/nvdla.yaml +47 -0
- accelforge-2026.1.13.139/examples/arches/simple.yaml +28 -0
- accelforge-2026.1.13.139/examples/arches/tpu_v4i.yaml +67 -0
- accelforge-2026.1.13.139/examples/mappings/simple_fused.yaml +38 -0
- accelforge-2026.1.13.139/examples/mappings/unfused_matmuls_to_simple.yaml +33 -0
- accelforge-2026.1.13.139/examples/misc/component_annotated.yaml +34 -0
- accelforge-2026.1.13.139/examples/workloads/gpt3_6.7B.yaml +124 -0
- accelforge-2026.1.13.139/examples/workloads/matmuls.yaml +20 -0
- accelforge-2026.1.13.139/examples/workloads/mobilenet_28.yaml +81 -0
- accelforge-2026.1.13.139/examples/workloads/mobilenet_various_separate.yaml +106 -0
- accelforge-2026.1.13.139/examples/workloads/three_matmuls_annotated.yaml +59 -0
- accelforge-2026.1.13.139/notebooks/compute_in_memory/_scripts.py +339 -0
- accelforge-2026.1.13.139/notebooks/compute_in_memory/isaac.guide.ipynb +269 -0
- accelforge-2026.1.13.139/notebooks/compute_in_memory/wang_vlsi_2022.ipynb +526 -0
- accelforge-2026.1.13.139/notebooks/paths.py +4 -0
- accelforge-2026.1.13.139/notebooks/tutorials/_include.py +48 -0
- accelforge-2026.1.13.139/notebooks/tutorials/component_energy_area.ipynb +359 -0
- accelforge-2026.1.13.139/notebooks/tutorials/mapper.ipynb +187 -0
- accelforge-2026.1.13.139/pyproject.toml +68 -0
- accelforge-2026.1.13.139/setup.cfg +4 -0
- accelforge-2026.1.13.139/setup.py +37 -0
- accelforge-2026.1.13.139/tests/Q_mapping.yaml +38 -0
- accelforge-2026.1.13.139/tests/__init__.py +0 -0
- accelforge-2026.1.13.139/tests/conv.mapping.yaml +27 -0
- accelforge-2026.1.13.139/tests/conv.workload.yaml +13 -0
- accelforge-2026.1.13.139/tests/conv_sym.mapping.yaml +43 -0
- accelforge-2026.1.13.139/tests/copy.mapping.yaml +35 -0
- accelforge-2026.1.13.139/tests/copy.workload.yaml +15 -0
- accelforge-2026.1.13.139/tests/distribuffers/__init__.py +0 -0
- accelforge-2026.1.13.139/tests/distribuffers/multicast/test_cases.yaml +482 -0
- accelforge-2026.1.13.139/tests/distribuffers/spec/binding/valid_bindings.yaml +97 -0
- accelforge-2026.1.13.139/tests/distribuffers/spec/distributed.yaml +100 -0
- accelforge-2026.1.13.139/tests/distribuffers/spec/logical_arch.yaml +32 -0
- accelforge-2026.1.13.139/tests/distribuffers/spec/physical_arch.yaml +69 -0
- accelforge-2026.1.13.139/tests/distribuffers/test_binding.py +48 -0
- accelforge-2026.1.13.139/tests/frontend/__init__.py +0 -0
- accelforge-2026.1.13.139/tests/frontend/test_mapping_viz.py +52 -0
- accelforge-2026.1.13.139/tests/mapper/__init__.py +0 -0
- accelforge-2026.1.13.139/tests/mapper/configs/conv1d/conv1d.mapping.yaml +31 -0
- accelforge-2026.1.13.139/tests/mapper/configs/conv1d/conv1d.workload.yaml +11 -0
- accelforge-2026.1.13.139/tests/mapper/configs/two_conv1d/two_conv1d.expected.yaml +38 -0
- accelforge-2026.1.13.139/tests/mapper/configs/two_conv1d/two_conv1d.mapping.yaml +54 -0
- accelforge-2026.1.13.139/tests/mapper/configs/two_conv1d/two_conv1d.workload.yaml +19 -0
- accelforge-2026.1.13.139/tests/mapper/test_mapping_to_isl.py +90 -0
- accelforge-2026.1.13.139/tests/mapper/test_spatial_reuse_analysis.py +67 -0
- accelforge-2026.1.13.139/tests/mapper/test_temporal_reuse_analysis.py +56 -0
- accelforge-2026.1.13.139/tests/mapper/util.py +58 -0
- accelforge-2026.1.13.139/tests/matmul.mapping.yaml +29 -0
- accelforge-2026.1.13.139/tests/matmul.workload.yaml +12 -0
- accelforge-2026.1.13.139/tests/matmul_spatial.mapping.yaml +44 -0
- accelforge-2026.1.13.139/tests/mha.renames.yaml +65 -0
- accelforge-2026.1.13.139/tests/mha.workload.yaml +67 -0
- accelforge-2026.1.13.139/tests/mha.yaml +59 -0
- accelforge-2026.1.13.139/tests/mha_full.workload.yaml +67 -0
- accelforge-2026.1.13.139/tests/mobilenet.workload.yaml +35 -0
- accelforge-2026.1.13.139/tests/mobilenet_long.workload.yaml +64 -0
- accelforge-2026.1.13.139/tests/pmappingcache.py +24 -0
- accelforge-2026.1.13.139/tests/snowcat.arch.yaml +36 -0
- accelforge-2026.1.13.139/tests/test_ffm_join_pmappings.py +106 -0
- accelforge-2026.1.13.139/tests/test_ffm_make_pmappings.py +82 -0
- accelforge-2026.1.13.139/tests/test_ffm_make_tile_shapes.py +49 -0
- accelforge-2026.1.13.139/tests/test_mapper.py +100 -0
- accelforge-2026.1.13.139/tests/test_model.py +37 -0
- accelforge-2026.1.13.139/tests/test_plotting.py +72 -0
- accelforge-2026.1.13.139/tests/test_symbolic_model.py +248 -0
- accelforge-2026.1.13.139/tests/test_toll.py +46 -0
- accelforge-2026.1.13.139/tests/test_workload.py +141 -0
- accelforge-2026.1.13.139/tests/tmp/sim_cache/.gitkeep +0 -0
- accelforge-2026.1.13.139/tests/toll.arch.yaml +40 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# https://medium.com/@ariassbustojonathan/automate-python-documentation-with-sphinx-for-github-3dda2ca690ec
|
|
2
|
+
|
|
3
|
+
name: documentation
|
|
4
|
+
|
|
5
|
+
on: [push, pull_request, workflow_dispatch]
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: write
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
docs:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
- uses: actions/setup-python@v5
|
|
16
|
+
- name: Install dependencies
|
|
17
|
+
run: |
|
|
18
|
+
pip install sphinx pydata-sphinx-theme myst-parser sphinx-autodoc-typehints sphinx-copybutton
|
|
19
|
+
- name: Sphinx build
|
|
20
|
+
run: |
|
|
21
|
+
pip install -e .
|
|
22
|
+
LC_ALL=C.UTF-8 LANG=C.UTF-8 sphinx-apidoc -f -o docs/source/ --tocfile accelforge accelforge
|
|
23
|
+
LC_ALL=C.UTF-8 LANG=C.UTF-8 sphinx-build -b html docs/source docs/build/html
|
|
24
|
+
- name: Deploy to GitHub Pages
|
|
25
|
+
uses: peaceiris/actions-gh-pages@v3
|
|
26
|
+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
|
27
|
+
with:
|
|
28
|
+
publish_branch: gh-pages
|
|
29
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
30
|
+
publish_dir: docs/build/html
|
|
31
|
+
force_orphan: true
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
name: Upload Python Package to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
release:
|
|
8
|
+
types: [created]
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
pypi-publish:
|
|
12
|
+
name: Publish package to PyPI
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
environment:
|
|
15
|
+
name: pypi
|
|
16
|
+
url: https://pypi.org/p/accelforge
|
|
17
|
+
permissions:
|
|
18
|
+
id-token: write
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
with:
|
|
22
|
+
fetch-depth: 0 # Fetch all history and tags for setuptools-scm
|
|
23
|
+
submodules: recursive # Check out all submodules
|
|
24
|
+
- name: Set up Python
|
|
25
|
+
uses: actions/setup-python@v4
|
|
26
|
+
with:
|
|
27
|
+
python-version: "3.12"
|
|
28
|
+
- name: Install dependencies
|
|
29
|
+
run: |
|
|
30
|
+
python -m pip install --upgrade pip
|
|
31
|
+
pip install build
|
|
32
|
+
- name: Build package
|
|
33
|
+
working-directory: .
|
|
34
|
+
env:
|
|
35
|
+
PYTHONPATH: ${{ github.workspace }}
|
|
36
|
+
run: |
|
|
37
|
+
python -m build
|
|
38
|
+
- name: Publish package distributions to PyPI
|
|
39
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Anything titled "* copy"
|
|
10
|
+
* copy*
|
|
11
|
+
|
|
12
|
+
# Distribution / packaging
|
|
13
|
+
.Python
|
|
14
|
+
build/
|
|
15
|
+
develop-eggs/
|
|
16
|
+
dist/
|
|
17
|
+
downloads/
|
|
18
|
+
eggs/
|
|
19
|
+
.eggs/
|
|
20
|
+
lib/
|
|
21
|
+
lib64/
|
|
22
|
+
parts/
|
|
23
|
+
sdist/
|
|
24
|
+
var/
|
|
25
|
+
wheels/
|
|
26
|
+
share/python-wheels/
|
|
27
|
+
*.egg-info/
|
|
28
|
+
.installed.cfg
|
|
29
|
+
*.egg
|
|
30
|
+
MANIFEST
|
|
31
|
+
|
|
32
|
+
# PyInstaller
|
|
33
|
+
# Usually these files are written by a python script from a template
|
|
34
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
35
|
+
*.manifest
|
|
36
|
+
*.spec
|
|
37
|
+
|
|
38
|
+
# Installer logs
|
|
39
|
+
pip-log.txt
|
|
40
|
+
pip-delete-this-directory.txt
|
|
41
|
+
|
|
42
|
+
# Unit test / coverage reports
|
|
43
|
+
htmlcov/
|
|
44
|
+
.tox/
|
|
45
|
+
.nox/
|
|
46
|
+
.coverage
|
|
47
|
+
.coverage.*
|
|
48
|
+
.cache
|
|
49
|
+
nosetests.xml
|
|
50
|
+
coverage.xml
|
|
51
|
+
*.cover
|
|
52
|
+
*.py,cover
|
|
53
|
+
.hypothesis/
|
|
54
|
+
.pytest_cache/
|
|
55
|
+
cover/
|
|
56
|
+
|
|
57
|
+
# Translations
|
|
58
|
+
*.mo
|
|
59
|
+
*.pot
|
|
60
|
+
|
|
61
|
+
# Django stuff:
|
|
62
|
+
*.log
|
|
63
|
+
local_settings.py
|
|
64
|
+
db.sqlite3
|
|
65
|
+
db.sqlite3-journal
|
|
66
|
+
|
|
67
|
+
# Flask stuff:
|
|
68
|
+
instance/
|
|
69
|
+
.webassets-cache
|
|
70
|
+
|
|
71
|
+
# Scrapy stuff:
|
|
72
|
+
.scrapy
|
|
73
|
+
|
|
74
|
+
# Sphinx documentation
|
|
75
|
+
docs/_build/
|
|
76
|
+
|
|
77
|
+
# PyBuilder
|
|
78
|
+
.pybuilder/
|
|
79
|
+
target/
|
|
80
|
+
|
|
81
|
+
# Jupyter Notebook
|
|
82
|
+
.ipynb_checkpoints
|
|
83
|
+
|
|
84
|
+
# IPython
|
|
85
|
+
profile_default/
|
|
86
|
+
ipython_config.py
|
|
87
|
+
|
|
88
|
+
# pyenv
|
|
89
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
90
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
91
|
+
.python-version
|
|
92
|
+
|
|
93
|
+
# pipenv
|
|
94
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
95
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
96
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
97
|
+
# install all needed dependencies.
|
|
98
|
+
#Pipfile.lock
|
|
99
|
+
|
|
100
|
+
# UV
|
|
101
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
102
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
103
|
+
# commonly ignored for libraries.
|
|
104
|
+
#uv.lock
|
|
105
|
+
|
|
106
|
+
# poetry
|
|
107
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
108
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
109
|
+
# commonly ignored for libraries.
|
|
110
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
111
|
+
#poetry.lock
|
|
112
|
+
|
|
113
|
+
# pdm
|
|
114
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
115
|
+
#pdm.lock
|
|
116
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
117
|
+
# in version control.
|
|
118
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
119
|
+
.pdm.toml
|
|
120
|
+
.pdm-python
|
|
121
|
+
.pdm-build/
|
|
122
|
+
|
|
123
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
124
|
+
__pypackages__/
|
|
125
|
+
|
|
126
|
+
# Celery stuff
|
|
127
|
+
celerybeat-schedule
|
|
128
|
+
celerybeat.pid
|
|
129
|
+
|
|
130
|
+
# SageMath parsed files
|
|
131
|
+
*.sage.py
|
|
132
|
+
|
|
133
|
+
# Environments
|
|
134
|
+
.env
|
|
135
|
+
.venv
|
|
136
|
+
env/
|
|
137
|
+
venv/
|
|
138
|
+
ENV/
|
|
139
|
+
env.bak/
|
|
140
|
+
venv.bak/
|
|
141
|
+
# Pyenv local file
|
|
142
|
+
.python-version
|
|
143
|
+
|
|
144
|
+
# Spyder project settings
|
|
145
|
+
.spyderproject
|
|
146
|
+
.spyproject
|
|
147
|
+
|
|
148
|
+
# Rope project settings
|
|
149
|
+
.ropeproject
|
|
150
|
+
|
|
151
|
+
# mkdocs documentation
|
|
152
|
+
/site
|
|
153
|
+
|
|
154
|
+
# mypy
|
|
155
|
+
.mypy_cache/
|
|
156
|
+
.dmypy.json
|
|
157
|
+
dmypy.json
|
|
158
|
+
|
|
159
|
+
# Pyre type checker
|
|
160
|
+
.pyre/
|
|
161
|
+
|
|
162
|
+
# pytype static type analyzer
|
|
163
|
+
.pytype/
|
|
164
|
+
|
|
165
|
+
# Cython debug symbols
|
|
166
|
+
cython_debug/
|
|
167
|
+
|
|
168
|
+
# PyCharm
|
|
169
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
170
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
171
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
172
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
173
|
+
#.idea/
|
|
174
|
+
|
|
175
|
+
# Ruff stuff:
|
|
176
|
+
.ruff_cache/
|
|
177
|
+
|
|
178
|
+
# PyPI configuration file
|
|
179
|
+
.pypirc
|
|
180
|
+
|
|
181
|
+
# Pickles
|
|
182
|
+
*.pkl
|
|
183
|
+
|
|
184
|
+
# MacOS system files
|
|
185
|
+
.DS_Store
|
|
186
|
+
|
|
187
|
+
libraries/*
|
|
188
|
+
!libraries/.gitkeep
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
docs/source/accelforge.frontend.mapper.rst
|
|
192
|
+
docs/source/accelforge.frontend.workload.rst
|
|
193
|
+
docs/source/accelforge.mapper.rst
|
|
194
|
+
docs/source/accelforge.util.rst
|
|
195
|
+
docs/source/accelforge.frontend.rst
|
|
196
|
+
docs/source/accelforge.mapper.FFM.rst
|
|
197
|
+
docs/source/accelforge.rst
|
|
198
|
+
|
|
199
|
+
*_wip
|
|
200
|
+
.vscode
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Main image
|
|
3
|
+
#
|
|
4
|
+
FROM ubuntu:24.04
|
|
5
|
+
|
|
6
|
+
LABEL maintainer="AUTHOR EMAIL"
|
|
7
|
+
|
|
8
|
+
# Arguments
|
|
9
|
+
ARG BUILD_DATE
|
|
10
|
+
ARG VCS_REF
|
|
11
|
+
ARG BUILD_VERSION
|
|
12
|
+
|
|
13
|
+
# Labels
|
|
14
|
+
LABEL org.label-schema.schema-version="1.0"
|
|
15
|
+
LABEL org.label-schema.build-date=$BUILD_DATE
|
|
16
|
+
LABEL org.label-schema.name="AccelForge Infrastructure"
|
|
17
|
+
LABEL org.label-schema.description="Infrastructure AccelForge"
|
|
18
|
+
LABEL org.label-schema.url="https://github.com/Accelergy-Project/accelforge/"
|
|
19
|
+
LABEL org.label-schema.vcs-url="https://github.com/Accelergy-Project/accelforge"
|
|
20
|
+
LABEL org.label-schema.vcs-ref=$VCS_REF
|
|
21
|
+
LABEL org.label-schema.vendor="Author Here"
|
|
22
|
+
LABEL org.label-schema.version=$BUILD_VERSION
|
|
23
|
+
LABEL org.label-schema.docker.cmd="docker run -it --rm -v ~/workspace:/home/workspace accelforge/accelforge-infrastructure"
|
|
24
|
+
|
|
25
|
+
# Install dependencies
|
|
26
|
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
27
|
+
# Python
|
|
28
|
+
python3 \
|
|
29
|
+
git \
|
|
30
|
+
python3-pip \
|
|
31
|
+
python3-dev \
|
|
32
|
+
graphviz \
|
|
33
|
+
# Build tools
|
|
34
|
+
make \
|
|
35
|
+
wget \
|
|
36
|
+
curl \
|
|
37
|
+
gcc \
|
|
38
|
+
g++ \
|
|
39
|
+
libgmp-dev \
|
|
40
|
+
libntl-dev \
|
|
41
|
+
autoconf \
|
|
42
|
+
automake \
|
|
43
|
+
libtool \
|
|
44
|
+
pkg-config \
|
|
45
|
+
make \
|
|
46
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
47
|
+
|
|
48
|
+
# Update certificates (needed for downloading)
|
|
49
|
+
RUN apt-get upgrade -y ca-certificates && \
|
|
50
|
+
update-ca-certificates && \
|
|
51
|
+
rm -rf /var/lib/apt/lists/*
|
|
52
|
+
|
|
53
|
+
WORKDIR /home/build
|
|
54
|
+
COPY Makefile ./
|
|
55
|
+
# ADD https://libntl.org/ntl-11.5.1.tar.gz /home/build/sources/ntl-11.5.1.tar.gz
|
|
56
|
+
# ADD https://barvinok.sourceforge.io/barvinok-0.41.8.tar.gz /home/build/sources/barvinok-0.41.8.tar.gz
|
|
57
|
+
# ADD https://github.com/inducer/islpy/archive/refs/tags/v2024.2.tar.gz /home/build/sources/islpy-2024.2.tar.gz
|
|
58
|
+
|
|
59
|
+
# --- build + install all ---
|
|
60
|
+
# RUN make install-ntl
|
|
61
|
+
# RUN make install-barvinok
|
|
62
|
+
ENV PIP_BREAK_SYSTEM_PACKAGES=1
|
|
63
|
+
|
|
64
|
+
# RUN apt-get update && apt-get install -y python-is-python3
|
|
65
|
+
# RUN git clone --recurse-submodules https://github.com/inducer/islpy.git
|
|
66
|
+
# RUN cd islpy && LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH ./build-with-barvinok.sh /usr/local
|
|
67
|
+
|
|
68
|
+
# RUN make install-islpy
|
|
69
|
+
ENV CC=gcc
|
|
70
|
+
ENV CXX=g++
|
|
71
|
+
RUN make install-hwcomponents CC=gcc CXX=g++
|
|
72
|
+
|
|
73
|
+
# Install jupyterlab and ipywidgets
|
|
74
|
+
RUN pip install jupyterlab ipywidgets
|
|
75
|
+
|
|
76
|
+
# Install accelforge
|
|
77
|
+
RUN pip install accelforge
|
|
78
|
+
# WORKDIR /home/workspace
|
|
79
|
+
|
|
80
|
+
# ENTRYPOINT ["/bin/bash"]
|
|
81
|
+
|
|
82
|
+
EXPOSE 8888
|
|
83
|
+
|
|
84
|
+
CMD ["bash", "-lc", "if ! pip list | grep -q 'accelforge'; then cd /home/workspace && pip install -e .; fi && \
|
|
85
|
+
jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root \
|
|
86
|
+
--NotebookApp.token='' --NotebookApp.notebook_dir=/home/workspace/notebooks"]
|
|
87
|
+
|
|
88
|
+
# One-liner to docker container rm -f the container that has 8888 port
|
|
89
|
+
# docker ps | grep 8888 | awk '{print $1}' | xargs docker rm -f
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (c) 2026 Tanner Andrulis and Michael Gilbert
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
DOCKER_EXE ?= docker
|
|
2
|
+
DOCKER_NAME ?= accelforge
|
|
3
|
+
DOCKER_BUILD ?= ${DOCKER_EXE} buildx build --load
|
|
4
|
+
|
|
5
|
+
VERSION := 0.1
|
|
6
|
+
|
|
7
|
+
USER := rengzheng
|
|
8
|
+
REPO := accelforge
|
|
9
|
+
|
|
10
|
+
NAME := ${USER}/${REPO}
|
|
11
|
+
TAG := $$(git log -1 --pretty=%h)
|
|
12
|
+
IMG := ${NAME}:${TAG}
|
|
13
|
+
|
|
14
|
+
ALTTAG := latest
|
|
15
|
+
ALTIMG := ${NAME}:${ALTTAG}
|
|
16
|
+
|
|
17
|
+
# Install hwcomponents packages from PyPI for Docker builds.
|
|
18
|
+
.PHONY: install-hwcomponents
|
|
19
|
+
install-hwcomponents:
|
|
20
|
+
python3 -m pip install --no-cache-dir hwcomponents hwcomponents-adc hwcomponents-cacti hwcomponents-library hwcomponents-neurosim
|
|
21
|
+
|
|
22
|
+
# Login to docker hub
|
|
23
|
+
login:
|
|
24
|
+
"${DOCKER_EXE}" login --username ${DOCKER_NAME} --password ${DOCKER_PASS}
|
|
25
|
+
|
|
26
|
+
# Build and tag docker image
|
|
27
|
+
build-amd64:
|
|
28
|
+
${DOCKER_BUILD} ${BUILD_FLAGS} --platform linux/amd64 \
|
|
29
|
+
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
|
|
30
|
+
--build-arg VCS_REF=${TAG} \
|
|
31
|
+
--build-arg BUILD_VERSION=${VERSION} \
|
|
32
|
+
-t ${IMG}-amd64 \
|
|
33
|
+
-t ${ALTIMG}-amd64 .
|
|
34
|
+
|
|
35
|
+
build-arm64:
|
|
36
|
+
${DOCKER_BUILD} ${BUILD_FLAGS} --platform linux/arm64 \
|
|
37
|
+
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
|
|
38
|
+
--build-arg VCS_REF=${TAG} \
|
|
39
|
+
--build-arg BUILD_VERSION=${VERSION} \
|
|
40
|
+
-t ${IMG}-arm64 \
|
|
41
|
+
-t ${ALTIMG}-arm64 .
|
|
42
|
+
|
|
43
|
+
# Push docker image
|
|
44
|
+
push-amd64:
|
|
45
|
+
@echo "Pushing ${NAME}:${ALTTAG}-amd64"
|
|
46
|
+
#Push Amd64 version
|
|
47
|
+
"${DOCKER_EXE}" push ${NAME}:${ALTTAG}-amd64
|
|
48
|
+
#Combine Amd64 version into multi-architecture docker image.
|
|
49
|
+
"${DOCKER_EXE}" manifest create \
|
|
50
|
+
${NAME}:${ALTTAG} \
|
|
51
|
+
--amend ${NAME}:${ALTTAG}-amd64 \
|
|
52
|
+
--amend ${NAME}:${ALTTAG}-arm64
|
|
53
|
+
"${DOCKER_EXE}" manifest push ${NAME}:${ALTTAG}
|
|
54
|
+
|
|
55
|
+
push-arm64:
|
|
56
|
+
@echo "Pushing ${NAME}:${ALTTAG}-arm64"
|
|
57
|
+
#Push Arm64 version
|
|
58
|
+
"${DOCKER_EXE}" push ${NAME}:${ALTTAG}-arm64
|
|
59
|
+
#Combine Arm64 version into multi-architecture docker image.
|
|
60
|
+
"${DOCKER_EXE}" manifest create \
|
|
61
|
+
${NAME}:${ALTTAG} \
|
|
62
|
+
--amend ${NAME}:${ALTTAG}-amd64 \
|
|
63
|
+
--amend ${NAME}:${ALTTAG}-arm64
|
|
64
|
+
"${DOCKER_EXE}" manifest push ${NAME}:${ALTTAG}
|
|
65
|
+
|
|
66
|
+
run-docker:
|
|
67
|
+
docker-compose up
|
|
68
|
+
|
|
69
|
+
.PHONY: generate-docs
|
|
70
|
+
generate-docs:
|
|
71
|
+
# pip install sphinx-autobuild sphinx_autodoc_typehints sphinx-copybutton pydata-sphinx-theme
|
|
72
|
+
rm -r docs/_build/html
|
|
73
|
+
rm docs/source/accelforge.*.rst
|
|
74
|
+
LC_ALL=C.UTF-8 LANG=C.UTF-8 sphinx-apidoc -f -o docs/source/ --tocfile accelforge accelforge
|
|
75
|
+
LC_ALL=C.UTF-8 LANG=C.UTF-8 sphinx-autobuild -a docs/source docs/_build/html
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: accelforge
|
|
3
|
+
Version: 2026.1.13.139
|
|
4
|
+
Summary: AccelForge
|
|
5
|
+
Author-email: Michael Gilbert <gilbertm@mit.edu>, Tanner Andrulis <andrulis@mit.edu>
|
|
6
|
+
Requires-Python: >=3.8
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: numpy>=2.2.0
|
|
10
|
+
Requires-Dist: pandas>=2.2.0
|
|
11
|
+
Requires-Dist: scipy>=1.15.0
|
|
12
|
+
Requires-Dist: tqdm>=4.67.0
|
|
13
|
+
Requires-Dist: pydantic>=2.0.0
|
|
14
|
+
Requires-Dist: pydantic_core>=2.33.0
|
|
15
|
+
Requires-Dist: ruamel.yaml>=0.18.0
|
|
16
|
+
Requires-Dist: jinja2>=3.1.0
|
|
17
|
+
Requires-Dist: islpy>=2025.0.0
|
|
18
|
+
Requires-Dist: sympy>=1.14.0
|
|
19
|
+
Requires-Dist: paretoset>=1.2.5
|
|
20
|
+
Requires-Dist: matplotlib>=3.10.0
|
|
21
|
+
Requires-Dist: plotly>=6.1.0
|
|
22
|
+
Requires-Dist: pydot>=4.0.0
|
|
23
|
+
Requires-Dist: platformdirs>=4.3.0
|
|
24
|
+
Requires-Dist: joblib>=1.5.1
|
|
25
|
+
Requires-Dist: hwcomponents
|
|
26
|
+
Requires-Dist: hwcomponents-adc
|
|
27
|
+
Requires-Dist: hwcomponents-cacti
|
|
28
|
+
Requires-Dist: hwcomponents-library
|
|
29
|
+
Requires-Dist: hwcomponents-neurosim
|
|
30
|
+
Provides-Extra: dev
|
|
31
|
+
Requires-Dist: pytest; extra == "dev"
|
|
32
|
+
Requires-Dist: pytest-cov; extra == "dev"
|
|
33
|
+
Requires-Dist: black; extra == "dev"
|
|
34
|
+
Requires-Dist: flake8; extra == "dev"
|
|
35
|
+
Requires-Dist: mypy; extra == "dev"
|
|
36
|
+
Requires-Dist: pydocstyle; extra == "dev"
|
|
37
|
+
Dynamic: license-file
|
|
38
|
+
|
|
39
|
+
# AccelForge
|
|
40
|
+
|
|
41
|
+
AccelForge is a framework to model and design tensor algebra accelerators. Key features
|
|
42
|
+
include:
|
|
43
|
+
|
|
44
|
+
- Flexible and user-defined specifications for components, architectures, and workloads,
|
|
45
|
+
including a suite of example accelerators and deep neural networks.
|
|
46
|
+
- An easy-to-use Python API for specifying and manipulating input specifications.
|
|
47
|
+
- Novel mapping algorithms that maps workloads onto architectures optimally, and in
|
|
48
|
+
orders-of-magnitude less time than prior approaches.
|
|
49
|
+
|
|
50
|
+
To learn more, see the [AccelForge
|
|
51
|
+
documentation](https://accelergy-project.github.io/accelforge/).
|
|
52
|
+
|
|
53
|
+
AccelForge uses [HWComponents](https://github.com/accelergy-project/hwcomponents)
|
|
54
|
+
as a backend to model the area, energy, latency, and leak power of hardware components.
|
|
55
|
+
|
|
56
|
+
## Installation
|
|
57
|
+
|
|
58
|
+
AccelForge is available on PyPI:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
pip install accelforge
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Notebooks and Examples
|
|
65
|
+
|
|
66
|
+
Examples can be found in the [`notebooks`](notebooks) directory. Examples of the input
|
|
67
|
+
files can be found in the [`examples`](examples) directory.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# AccelForge
|
|
2
|
+
|
|
3
|
+
AccelForge is a framework to model and design tensor algebra accelerators. Key features
|
|
4
|
+
include:
|
|
5
|
+
|
|
6
|
+
- Flexible and user-defined specifications for components, architectures, and workloads,
|
|
7
|
+
including a suite of example accelerators and deep neural networks.
|
|
8
|
+
- An easy-to-use Python API for specifying and manipulating input specifications.
|
|
9
|
+
- Novel mapping algorithms that maps workloads onto architectures optimally, and in
|
|
10
|
+
orders-of-magnitude less time than prior approaches.
|
|
11
|
+
|
|
12
|
+
To learn more, see the [AccelForge
|
|
13
|
+
documentation](https://accelergy-project.github.io/accelforge/).
|
|
14
|
+
|
|
15
|
+
AccelForge uses [HWComponents](https://github.com/accelergy-project/hwcomponents)
|
|
16
|
+
as a backend to model the area, energy, latency, and leak power of hardware components.
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
|
|
20
|
+
AccelForge is available on PyPI:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pip install accelforge
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Notebooks and Examples
|
|
27
|
+
|
|
28
|
+
Examples can be found in the [`notebooks`](notebooks) directory. Examples of the input
|
|
29
|
+
files can be found in the [`examples`](examples) directory.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from accelforge.frontend import arch
|
|
4
|
+
from accelforge.frontend import config
|
|
5
|
+
from accelforge.frontend import mapping
|
|
6
|
+
from accelforge.frontend import renames
|
|
7
|
+
from accelforge.frontend import spec
|
|
8
|
+
from accelforge.frontend import variables
|
|
9
|
+
from accelforge.frontend import workload
|
|
10
|
+
from accelforge.frontend.spec import Spec, Spec
|
|
11
|
+
from accelforge.mapper.FFM import Metrics
|
|
12
|
+
from accelforge.util import set_n_parallel_jobs
|
|
13
|
+
from accelforge.util import LiteralString
|
|
14
|
+
import accelforge.mapper as mapper
|
|
15
|
+
from accelforge.examples import examples
|
|
16
|
+
from accelforge.util.exceptions import EvaluationError
|
|
17
|
+
|
|
18
|
+
from accelforge.frontend.variables import Variables
|
|
19
|
+
from accelforge.frontend.arch import Arch
|
|
20
|
+
from accelforge.frontend.config import Config
|
|
21
|
+
from accelforge.frontend.mapping import Mapping
|
|
22
|
+
from accelforge.frontend.renames import Renames
|
|
23
|
+
from accelforge.frontend.spec import Spec
|
|
24
|
+
from accelforge.frontend.workload import Workload
|
|
25
|
+
|
|
26
|
+
__all__ = [
|
|
27
|
+
# Submodules
|
|
28
|
+
"arch",
|
|
29
|
+
"config",
|
|
30
|
+
"mapping",
|
|
31
|
+
"mapper",
|
|
32
|
+
"renames",
|
|
33
|
+
"spec",
|
|
34
|
+
"variables",
|
|
35
|
+
"workload",
|
|
36
|
+
# Main classes
|
|
37
|
+
"Arch",
|
|
38
|
+
"Config",
|
|
39
|
+
"Mapping",
|
|
40
|
+
"Metrics",
|
|
41
|
+
"Renames",
|
|
42
|
+
"Spec",
|
|
43
|
+
"Variables",
|
|
44
|
+
"Workload",
|
|
45
|
+
# Utilities
|
|
46
|
+
"LiteralString",
|
|
47
|
+
"set_n_parallel_jobs",
|
|
48
|
+
"examples",
|
|
49
|
+
"EvaluationError",
|
|
50
|
+
]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import os
|
|
2
|
+
|
|
3
|
+
os.environ["ACCELFORGE_ACCELERATED_IMPORTS"] = "0"
|
|
4
|
+
|
|
5
|
+
if os.environ.get("ACCELFORGE_ACCELERATED_IMPORTS", "0") == "1":
|
|
6
|
+
import cudf as pd
|
|
7
|
+
import cupy as np
|
|
8
|
+
import cupy as scipy
|
|
9
|
+
|
|
10
|
+
ACCELERATED = True
|
|
11
|
+
else:
|
|
12
|
+
import pandas as pd
|
|
13
|
+
import numpy as np
|
|
14
|
+
import scipy
|
|
15
|
+
|
|
16
|
+
ACCELERATED = False
|