adding base for Xeon Phi driver
Test / build_and_test (push) Successful in 36s
Build / build (push) Successful in 42s

This commit is contained in:
2026-07-01 14:58:55 +02:00
parent 5b182580a7
commit bbc975fb38
30 changed files with 2653 additions and 2 deletions
+26 -2
View File
@@ -45,6 +45,13 @@ const implementations = [_]ImplementationDesc{
.custom = customFlint,
.options = optionsFlint,
},
.{
.name = "phi",
.root_source_file = "src/phi/lib.zig",
.vulkan_version = .{ .major = 1, .minor = 0, .patch = 0 },
.custom = customPhi,
.options = optionsPhi,
},
};
const RunningMode = enum {
@@ -291,8 +298,6 @@ fn customFlint(
_: bool,
) !void {
lib_mod.addImport("intel_c", base_c_mod);
lib_mod.addImport("soft_c", base_c_mod);
}
fn optionsFlint(b: *std.Build, options: *Step.Options) !void {
@@ -300,6 +305,25 @@ fn optionsFlint(b: *std.Build, options: *Step.Options) !void {
_ = options;
}
fn customPhi(
_: *std.Build,
_: *Step.Compile,
lib_mod: *std.Build.Module,
_: *std.Build.Module,
_: *std.Build.Module,
base_c_mod: *std.Build.Module,
_: std.Build.ResolvedTarget,
_: std.builtin.OptimizeMode,
_: bool,
) !void {
lib_mod.addImport("phi_c", base_c_mod);
}
fn optionsPhi(b: *std.Build, options: *Step.Options) !void {
_ = b;
_ = options;
}
fn addCTS(b: *std.Build, target: std.Build.ResolvedTarget, impl: *const ImplementationDesc, impl_lib: *Step.Compile, comptime mode: RunningMode) !*Step {
const cts = b.dependency("cts_bin", .{});