-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into graph-library-testing
- Loading branch information
Showing
470 changed files
with
9,182 additions
and
5,041 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
images: | ||
dlami-x64: | ||
runs-on-gpu-pinned: | ||
platform: "linux" | ||
arch: "x64" | ||
owner: "898082745236" # AWS | ||
name: "Deep Learning Base OSS Nvidia Driver GPU AMI (Ubuntu 22.04)*" | ||
owner: "135269210855" # runs-on | ||
name: "runs-on-v2.2-ubuntu22-gpu-x64-20250123194414" | ||
|
||
runners: | ||
gpu-nvidia: | ||
family: ["g4dn.xlarge"] | ||
image: dlami-x64 | ||
runs-on-cpu-pinned: | ||
platform: "linux" | ||
arch: "x64" | ||
owner: "135269210855" # runs-on | ||
name: "runs-on-v2.2-ubuntu22-full-x64-20250101080516" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
lib/compiler/include/compiler/cost_estimator/op_cost_estimate_key.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef _FLEXFLOW_LIB_COMPILER_INCLUDE_COMPILER_COST_ESTIMATOR_OP_COST_ESTIMATE_KEY_H | ||
#define _FLEXFLOW_LIB_COMPILER_INCLUDE_COMPILER_COST_ESTIMATOR_OP_COST_ESTIMATE_KEY_H | ||
|
||
#include "compiler/cost_estimator/op_cost_estimate_key.dtg.h" | ||
#include "pcg/device_id_t.dtg.h" | ||
#include "pcg/machine_specification.dtg.h" | ||
#include "pcg/parallel_computation_graph/parallel_computation_graph.dtg.h" | ||
#include "pcg/parallel_computation_graph/parallel_layer_guid_t.dtg.h" | ||
|
||
namespace FlexFlow { | ||
|
||
OpCostEstimateKey get_mapped_op_cost_estimate_key_for_layer( | ||
ParallelComputationGraph const &pcg, | ||
parallel_layer_guid_t const &layer, | ||
MachineView const &machine_view); | ||
|
||
} // namespace FlexFlow | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
lib/compiler/include/compiler/cost_estimator/tensor_set_movement.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef _FLEXFLOW_LIB_COMPILER_INCLUDE_COMPILER_COST_ESTIMATOR_TENSOR_SET_MOVEMENT_H | ||
#define _FLEXFLOW_LIB_COMPILER_INCLUDE_COMPILER_COST_ESTIMATOR_TENSOR_SET_MOVEMENT_H | ||
|
||
#include "compiler/cost_estimator/tensor_set_movement.dtg.h" | ||
#include "pcg/machine_view.dtg.h" | ||
#include "pcg/parallel_computation_graph/parallel_computation_graph.dtg.h" | ||
#include "pcg/parallel_computation_graph/parallel_computation_graph_edge.dtg.h" | ||
|
||
namespace FlexFlow { | ||
|
||
TensorSetMovement get_tensor_set_movement_from_pcg_edge( | ||
ParallelComputationGraphEdge const &edge, | ||
ParallelComputationGraph const &pcg, | ||
MachineView const &src_mv, | ||
MachineView const &dst_mv); | ||
|
||
} // namespace FlexFlow | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
lib/compiler/include/compiler/machine_mapping/unstructured_device_mapping.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef _FLEXFLOW_COMPILER_MACHINE_MAPPING_UNSTRUCTURED_DEVICE_MAPPING_H | ||
#define _FLEXFLOW_COMPILER_MACHINE_MAPPING_UNSTRUCTURED_DEVICE_MAPPING_H | ||
|
||
#include "compiler/machine_mapping/machine_mapping.dtg.h" | ||
#include "compiler/machine_mapping/unstructured_device_mapping.dtg.h" | ||
#include "pcg/machine_specification.dtg.h" | ||
#include "pcg/parallel_computation_graph/parallel_computation_graph.dtg.h" | ||
|
||
namespace FlexFlow { | ||
|
||
UnstructuredDeviceMapping | ||
get_unstructured_device_mapping(MachineMapping const &machine_mapping, | ||
MachineSpecification const &machine_spec, | ||
ParallelComputationGraph const &pcg); | ||
|
||
} // namespace FlexFlow | ||
|
||
#endif |
26 changes: 26 additions & 0 deletions
26
lib/compiler/include/compiler/machine_mapping/unstructured_device_mapping.struct.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
namespace = "FlexFlow" | ||
name = "UnstructuredDeviceMapping" | ||
features = [ | ||
"eq", | ||
# "ord", | ||
"hash", | ||
# "json", | ||
# "rapidcheck", | ||
"fmt", | ||
] | ||
|
||
includes = [ | ||
"pcg/parallel_computation_graph/parallel_layer_guid_t.dtg.h", | ||
"pcg/device_id_t.dtg.h" | ||
] | ||
|
||
src_includes = [ | ||
"utils/hash/unordered_map.h", | ||
"utils/fmt/unordered_map.h", | ||
"utils/hash/unordered_set.h", | ||
"utils/fmt/unordered_set.h" | ||
] | ||
|
||
[[fields]] | ||
name = "raw_device_map" | ||
type = "std::unordered_map<::FlexFlow::parallel_layer_guid_t, std::unordered_set<::FlexFlow::device_id_t>>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
lib/compiler/include/compiler/task_graph_simulator/in_progress_task.struct.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
namespace = "FlexFlow" | ||
name = "InProgressTask" | ||
|
||
features = [ | ||
"eq", | ||
"hash", | ||
"fmt", | ||
"ord" | ||
] | ||
|
||
includes = [ | ||
"utils/graph/node/node.dtg.h" | ||
] | ||
|
||
|
||
[[fields]] | ||
name = "start_time" | ||
type = "float" | ||
|
||
[[fields]] | ||
name = "end_time" | ||
type = "float" | ||
|
||
[[fields]] | ||
name = "node" | ||
type = "::FlexFlow::Node" |
13 changes: 13 additions & 0 deletions
13
lib/compiler/include/compiler/task_graph_simulator/in_progress_task_comparator.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef _FLEXFLOW_LIB_COMPILER_INCLUDE_COMPILER_COST_ESTIMATOR_IN_PROGRESS_TASK_COMPARATOR_H | ||
#define _FLEXFLOW_LIB_COMPILER_INCLUDE_COMPILER_COST_ESTIMATOR_IN_PROGRESS_TASK_COMPARATOR_H | ||
|
||
#include "compiler/task_graph_simulator/in_progress_task.dtg.h" | ||
#include <tuple> | ||
|
||
namespace FlexFlow { | ||
struct InProgressTaskComparator { | ||
bool operator()(InProgressTask const &lhs, InProgressTask const &rhs) const; | ||
}; | ||
} // namespace FlexFlow | ||
|
||
#endif // _FLEXFLOW_LIB_COMPILER_INCLUDE_COMPILER_COST_ESTIMATOR_IN_PROGRESS_TASK_COMPARATOR_H |
20 changes: 20 additions & 0 deletions
20
lib/compiler/include/compiler/task_graph_simulator/pcg_task.variant.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace = "FlexFlow" | ||
name = "PCGTask" | ||
features = [ | ||
"eq", | ||
"hash", | ||
"fmt", | ||
] | ||
|
||
includes = [ | ||
"compiler/cost_estimator/op_cost_estimate_key.dtg.h", | ||
"compiler/cost_estimator/tensor_set_movement.dtg.h", | ||
] | ||
|
||
[[values]] | ||
type = "::FlexFlow::OpCostEstimateKey" | ||
key = "operator" | ||
|
||
[[values]] | ||
type = "::FlexFlow::TensorSetMovement" | ||
key = "tensor_movement" |
17 changes: 17 additions & 0 deletions
17
lib/compiler/include/compiler/task_graph_simulator/pcg_task_graph.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#ifndef _FLEXFLOW_LIB_COMPILER_INCLUDE_COMPILER_COST_ESTIMATOR_PCG_TASK_GRAPH_H | ||
#define _FLEXFLOW_LIB_COMPILER_INCLUDE_COMPILER_COST_ESTIMATOR_PCG_TASK_GRAPH_H | ||
|
||
#include "compiler/machine_mapping/machine_mapping.dtg.h" | ||
#include "compiler/task_graph_simulator/pcg_task_graph.dtg.h" | ||
#include "pcg/machine_specification.dtg.h" | ||
#include "pcg/parallel_computation_graph/parallel_computation_graph.dtg.h" | ||
|
||
namespace FlexFlow { | ||
|
||
PCGTaskGraph get_pcg_task_graph(ParallelComputationGraph const &pcg, | ||
MachineMapping const &machine_mapping, | ||
MachineSpecification const &machine_spec); | ||
|
||
} // namespace FlexFlow | ||
|
||
#endif |
Oops, something went wrong.