mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
allow ptx kernel export
This commit is contained in:
parent
65f860bef7
commit
85c6b0f0bc
@ -21397,7 +21397,12 @@ fn validateExternType(
|
||||
},
|
||||
.Fn => {
|
||||
if (position != .other) return false;
|
||||
return !Type.fnCallingConventionAllowsZigTypes(ty.fnCallingConvention());
|
||||
return switch (ty.fnCallingConvention()) {
|
||||
// For now we want to authorize PTX kernel to use zig objects, even if we end up exposing the ABI.
|
||||
// The goal is to experiment with more integrated CPU/GPU code.
|
||||
.PtxKernel => true,
|
||||
else => !Type.fnCallingConventionAllowsZigTypes(ty.fnCallingConvention()),
|
||||
};
|
||||
},
|
||||
.Enum => {
|
||||
var buf: Type.Payload.Bits = undefined;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user