mirror of
https://github.com/morluto/rea.git
synced 2026-11-22 14:35:45 +00:00
refactor(schemas): select native and GPU variants by name
This commit is contained in:
1 parent
d14f199736
commit
c602fe8828
3 files changed
+39
-32
No files matched your search
@@ -4,7 +4,7 @@ import { z } from "zod";
|
||||
import {
|
||||
gpuCodeObjectsSchema,
|
||||
gpuCodeObjectsObjectSchema,
|
||||
gpuCodeObjectsSelectionSchema,
|
||||
gpuCodeObjectsSelectionSchemas,
|
||||
gpuObjectSchema,
|
||||
gpuKernelSchema,
|
||||
gpuTargetSchema,
|
||||
@@ -31,16 +31,16 @@ import { AnalysisResourceConstraintError } from "../analysisErrorCore.js";
|
||||
export const gpuCodeObjectsViewRequestSchema = z.discriminatedUnion(
|
||||
"collection",
|
||||
[
|
||||
gpuCodeObjectsSelectionSchema.options[0].extend({
|
||||
gpuCodeObjectsSelectionSchemas.objects.extend({
|
||||
kind: z.literal("gpu-code-objects"),
|
||||
}),
|
||||
gpuCodeObjectsSelectionSchema.options[1].extend({
|
||||
gpuCodeObjectsSelectionSchemas.kernels.extend({
|
||||
kind: z.literal("gpu-code-objects"),
|
||||
}),
|
||||
gpuCodeObjectsSelectionSchema.options[2].extend({
|
||||
gpuCodeObjectsSelectionSchemas.ptx.extend({
|
||||
kind: z.literal("gpu-code-objects"),
|
||||
}),
|
||||
gpuCodeObjectsSelectionSchema.options[3].extend({
|
||||
gpuCodeObjectsSelectionSchemas.targets.extend({
|
||||
kind: z.literal("gpu-code-objects"),
|
||||
}),
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user