Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing serialization of Dim::partition_policy #7935

Merged
merged 1 commit into from
Nov 7, 2023
Merged
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
2 changes: 2 additions & 0 deletions src/Deserialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1110,11 +1110,13 @@ Dim Deserializer::deserialize_dim(const Serialize::Dim *dim) {
const auto for_type = deserialize_for_type(dim->for_type());
const auto device_api = deserialize_device_api(dim->device_api());
const auto dim_type = deserialize_dim_type(dim->dim_type());
const auto partition_policy = deserialize_partition(dim->partition_policy());
auto hl_dim = Dim();
hl_dim.var = var;
hl_dim.for_type = for_type;
hl_dim.device_api = device_api;
hl_dim.dim_type = dim_type;
hl_dim.partition_policy = partition_policy;
return hl_dim;
}

Expand Down
3 changes: 2 additions & 1 deletion src/Serialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,8 @@ Offset<Serialize::Dim> Serializer::serialize_dim(FlatBufferBuilder &builder, con
const auto for_type_serialized = serialize_for_type(dim.for_type);
const auto device_api_serialized = serialize_device_api(dim.device_api);
const auto dim_type_serialized = serialize_dim_type(dim.dim_type);
return Serialize::CreateDim(builder, var_serialized, for_type_serialized, device_api_serialized, dim_type_serialized);
const auto partition_policy_serialized = serialize_partition(dim.partition_policy);
return Serialize::CreateDim(builder, var_serialized, for_type_serialized, device_api_serialized, dim_type_serialized, partition_policy_serialized);
}

Offset<Serialize::FuseLoopLevel> Serializer::serialize_fuse_loop_level(FlatBufferBuilder &builder, const FuseLoopLevel &fuse_loop_level) {
Expand Down
1 change: 1 addition & 0 deletions src/halide_ir.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ table Dim {
for_type: ForType;
device_api: DeviceAPI;
dim_type: DimType;
partition_policy: Partition;
}

enum LoopAlignStrategy: ubyte {
Expand Down