compiler bug squashing #3

This commit is contained in:
Nicholas Young 2024-10-11 18:11:23 -07:00
parent f4830215a2
commit d8f9ff9742
4 changed files with 9 additions and 2 deletions

View file

@ -28,6 +28,10 @@
GST_DEV_PATH = pkgs.gst_all_1.gstreamer.dev; GST_DEV_PATH = pkgs.gst_all_1.gstreamer.dev;
GLIB_DEV_PATH = pkgs.glib.dev; GLIB_DEV_PATH = pkgs.glib.dev;
GLIB_PATH = pkgs.glib.out; GLIB_PATH = pkgs.glib.out;
HAILORT_LOGGER_PATH = "./logs";
HAILORT_CONSOLE_LOGGER_LEVEL = "info";
HAILO_MONITOR = 1;
}; };
} }
); );

0
logs/hailort.log Normal file
View file

View file

@ -7,8 +7,7 @@ const hlo = @cImport({
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
// const hef_file = "yolov5s.hef"; const hef_file = "yolov7.hef";
const hef_file = "./libhailort/examples/hefs/shortcut_net";
const max_edge_layers = 32; const max_edge_layers = 32;
@ -36,6 +35,10 @@ pub fn main() void {
var input_vstream_size : usize = max_edge_layers; var input_vstream_size : usize = max_edge_layers;
var output_vstream_size : usize = max_edge_layers; var output_vstream_size : usize = max_edge_layers;
@memset(device_params, 0);
@memset(&input_vstream_params, 0);
@memset(&output_vstream_params, 0);
status = hlo.hailo_create_vdevice(null, &vdevice); status = hlo.hailo_create_vdevice(null, &vdevice);
assert(status == hlo.HAILO_SUCCESS); assert(status == hlo.HAILO_SUCCESS);

BIN
yolov7.hef Normal file

Binary file not shown.