Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/repo-refactor' into utils-testin…
Browse files Browse the repository at this point in the history
…g-improvements
  • Loading branch information
lockshaw committed Oct 10, 2024
2 parents 8322f9b + 65c3911 commit c9f6e8a
Show file tree
Hide file tree
Showing 781 changed files with 22,869 additions and 4,196 deletions.
File renamed without changes.
File renamed without changes.
49 changes: 30 additions & 19 deletions .github/workflows/per-lib-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
- name: Add helpers directory to path
run: echo "${PWD}/.github/workflows/helpers" >> $GITHUB_PATH

- name: Free additional space on runner
run: free_space_on_runner.sh

- name: Install nix
uses: cachix/install-nix-action@v25
with:
Expand Down Expand Up @@ -62,71 +65,79 @@ jobs:
- name: Build utils
run: |
build_libs.sh utils
build_target.sh utils
- name: Build op-attrs
run: |
build_libs.sh op-attrs
build_target.sh op-attrs
- name: Build pcg
run: |
build_libs.sh pcg
build_target.sh pcg
- name: Build kernels
run: |
build_libs.sh kernels
build_target.sh kernels
- name: Build substitutions
run: |
build_libs.sh substitutions
build_target.sh substitutions
- name: Build compiler
run: |
build_libs.sh compiler
build_target.sh compiler
- name: Build substitution-generator
run: |
build_libs.sh substitution-generator
build_target.sh substitution-generator
- name: Build local-execution
run: |
build_libs.sh local-execution
build_target.sh local-execution
- name: Build models
run: |
build_libs.sh models
build_target.sh models
- name: Build substitution-to-dot
run: |
build_target.sh substitution-to-dot
- name: Build export-model-arch
run: |
build_target.sh export-model-arch
- name: Test utils
run: |
test_libs.sh utils
test_target.sh utils
- name: Test op-attrs
run: |
test_libs.sh op-attrs
test_target.sh op-attrs
- name: Test pcg
run: |
test_libs.sh pcg
test_target.sh pcg
- name: Test substitutions
run: |
test_libs.sh substitutions
test_target.sh substitutions
# - name: Test compiler
# run: |
# test_libs.sh compiler
- name: Test compiler
run: |
test_target.sh compiler
- name: Test substitution-generator
run: |
test_libs.sh substitution-generator
test_target.sh substitution-generator
- name: Test local-execution
run: |
test_libs.sh local-execution
test_target.sh local-execution
- name: Test models
run: |
test_libs.sh models
test_target.sh models
- name: Generate code coverage
run: |
Expand Down
2 changes: 2 additions & 0 deletions .proj.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ build_targets = [
"substitution-generator",
"local-execution",
"models",
"export-model-arch",
"substitution-to-dot",
]

test_targets = [
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ option(FF_BUILD_UNIT_TESTS "build non-operator unit tests" OFF)
option(FF_BUILD_SUBSTITUTION_TOOL "build substitution conversion tool" OFF)
option(FF_BUILD_VISUALIZATION_TOOL "build substitution visualization tool" ON)
option(FF_BUILD_ARG_PARSER "build command line argument parser" OFF)
option(FF_BUILD_BIN_EXPORT_MODEL_ARCH "build export-model-arch utility" ON)

set(FF_CUDA_ARCH "autodetect" CACHE STRING "Target CUDA Arch")
if (FF_CUDA_ARCH STREQUAL "")
Expand Down
6 changes: 5 additions & 1 deletion bin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ if(FF_BUILD_SUBSTITUTION_TOOL)
endif()

if(FF_BUILD_VISUALIZATION_TOOL)
add_subdirectory(substitutions-to-dot)
add_subdirectory(substitution-to-dot)
endif()

if(FF_BUILD_ARG_PARSER)
add_subdirectory(arg_parser)
endif()

if(FF_BUILD_BIN_EXPORT_MODEL_ARCH)
add_subdirectory(export-model-arch)
endif()
12 changes: 12 additions & 0 deletions bin/export-model-arch/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ff_add_executable(
NAME
export-model-arch
SRC_PATTERNS
src/*.cc
PRIVATE_INCLUDE
include/
DEPS
utils
models
compiler
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
namespace = "FlexFlow"
name = "JsonSPModelExport"
features = [
"eq",
"hash",
"fmt",
"json",
]

includes = [
"pcg/file_format/v1/v1_computation_graph.dtg.h",
"pcg/file_format/v1/v1_binary_sp_decomposition/v1_binary_sp_decomposition.dtg.h",
]

src_includes = [
"pcg/file_format/v1/v1_binary_sp_decomposition/json.h",
]

[[fields]]
name = "sp_decomposition"
type = "::FlexFlow::V1BinarySPDecomposition"

[[fields]]
name = "computation_graph"
type = "::FlexFlow::V1ComputationGraph"
Loading

0 comments on commit c9f6e8a

Please sign in to comment.