switching to llvm build to fix Thread.Pool issue
This commit is contained in:
@@ -59,6 +59,7 @@ pub fn build(b: *std.Build) void {
|
|||||||
.name = b.fmt("vulkan_{s}", .{impl.name}),
|
.name = b.fmt("vulkan_{s}", .{impl.name}),
|
||||||
.root_module = lib_mod,
|
.root_module = lib_mod,
|
||||||
.linkage = .dynamic,
|
.linkage = .dynamic,
|
||||||
|
.use_llvm = true, // Fixes some random bugs happenning with custom backend. Investigations needed
|
||||||
});
|
});
|
||||||
const lib_install = b.addInstallArtifact(lib, .{});
|
const lib_install = b.addInstallArtifact(lib, .{});
|
||||||
|
|
||||||
|
|||||||
@@ -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..]);
|
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;
|
const info = cpuinfo.get(allocator) catch return VkError.InitializationFailed;
|
||||||
defer info.deinit(allocator);
|
defer info.deinit(allocator);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user