Skip to content

Commit

Permalink
fixed the CI error
Browse files Browse the repository at this point in the history
  • Loading branch information
Fixstars-momoko committed Nov 17, 2023
1 parent e9b2fbc commit 8417b32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bb/image-io/bb.h
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ class BinarySaver : public ion::BuildingBlock<BinarySaver<T, D>> {
GeneratorInput<Halide::Func[]> input_images{ "input_images", Halide::type_of<T>(), D };

GeneratorInput<Halide::Func[]> input_deviceinfo{ "input_deviceinfo", Halide::type_of<uint8_t>(), 1 };
GeneratorInput<Halide::Func> frame_count{ "frame_count", UInt(32), 1 };
GeneratorInput<Halide::Func> frame_count{ "frame_count", Halide::type_of<uint32_t>(), 1 };

GeneratorInput<bool> dispose{ "dispose" };
GeneratorInput<int32_t> width{ "width" };
Expand Down
6 changes: 4 additions & 2 deletions src/bb/image-io/rt_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ int ion_bb_image_io_binary_2gendc_saver(halide_buffer_t * in0, halide_buffer_t *
{
try {
const ::std::string output_directory(reinterpret_cast<const char*>(output_directory_buf->host));
auto& w(Writer::get_instance(std::vector<int32_t>{payloadsize, payloadsize}, output_directory));
std::vector<int32_t>payloadsize_list{payloadsize, payloadsize};
auto& w(Writer::get_instance(payloadsize_list, output_directory));
if (in0->is_bounds_query() || in1->is_bounds_query() || in2->is_bounds_query() || in3->is_bounds_query()) {
int i = 1;
if (in0->is_bounds_query()) {
Expand Down Expand Up @@ -451,7 +452,8 @@ int ion_bb_image_io_binary_1gendc_saver(halide_buffer_t * gendc, halide_buffer_t
{
try {
const ::std::string output_directory(reinterpret_cast<const char*>(output_directory_buf->host));
auto& w(Writer::get_instance(std::vector<int32_t>{payloadsize}, output_directory));
std::vector<int32_t>payloadsize_list{payloadsize};
auto& w(Writer::get_instance(payloadsize_list, output_directory));
if (gendc->is_bounds_query() || deviceinfo->is_bounds_query()) {
if (gendc->is_bounds_query()) {
gendc->dim[0].min = 0;
Expand Down

0 comments on commit 8417b32

Please sign in to comment.