switching to llvm build to fix Thread.Pool issue

This commit is contained in:
2025-11-10 19:13:06 +01:00
parent b2d964c96a
commit 4c2963f109
2 changed files with 2 additions and 0 deletions

View File

@@ -59,6 +59,7 @@ pub fn build(b: *std.Build) void {
.name = b.fmt("vulkan_{s}", .{impl.name}),
.root_module = lib_mod,
.linkage = .dynamic,
.use_llvm = true, // Fixes some random bugs happenning with custom backend. Investigations needed
});
const lib_install = b.addInstallArtifact(lib, .{});

View File

@@ -77,6 +77,7 @@ pub fn create(allocator: std.mem.Allocator, instance: *const base.Instance) VkEr
};
interface.queue_family_props = std.ArrayList(vk.QueueFamilyProperties).fromOwnedSlice(queue_family_props[0..]);
// TODO: use Pytorch's cpuinfo someday
const info = cpuinfo.get(allocator) catch return VkError.InitializationFailed;
defer info.deinit(allocator);