-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make latest schema version the new 1.0.0
- Loading branch information
Showing
4 changed files
with
126 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,127 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"description": "TODO", | ||
"type": "object", | ||
"properties": { | ||
"schema_version": { | ||
"type": "string", | ||
"description": "The version of this JSON-schema, adhering to the Semantic Versioning specification.", | ||
"const": "1.0.0" | ||
}, | ||
"device_name": { | ||
"type": "string", | ||
"description": "The name of the device the kernel tuner analysis is run on." | ||
}, | ||
"kernel_name": { | ||
"type": "string", | ||
"description": "The name of the kernel." | ||
}, | ||
"problem_size": { | ||
"type": "array", | ||
"description": "The size of the problem.", | ||
"items": {"type": "integer"} | ||
}, | ||
"tune_params_keys": { | ||
"type": "array", | ||
"description": "The keys (names) of all the parameters being tuned.", | ||
"items": {"type": "string"} | ||
}, | ||
"tune_params": { | ||
"type": "object", | ||
"description": "The nested JSON object containing for each parameter the array of tuning values.", | ||
"additionalProperties": {"type": "array"} | ||
}, | ||
"objective": { | ||
"type": "string", | ||
"description": "The objective with kernel." | ||
}, | ||
"cache": { | ||
"type": "object", | ||
"description": "The actual data; the data of the instances cached.", | ||
"patternProperties": { | ||
"^\\d+(,\\d+)*$": { | ||
"type": "object", | ||
"properties": { | ||
"time": { | ||
"anyOf": [ | ||
{"type": "string"}, | ||
{"type": "number"} | ||
] | ||
}, | ||
"times": { | ||
"type": "array", | ||
"items": {"type": "number"} | ||
}, | ||
"compile_time": {"type": "number"}, | ||
"verification_time": {"type": "number"}, | ||
"benchmark_time": {"type": "number"}, | ||
"GFLOP/s": {"type": "number"}, | ||
"strategy_time": {"type": "number"}, | ||
"framework_time": {"type": "number"}, | ||
"timestamp": {"type": "string", "format": "date-time"} | ||
}, | ||
"required": ["time", "compile_time", "verification_time", "benchmark_time", "strategy_time", "framework_time", "timestamp"], | ||
"additionalProperties": true | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"description": "Schema for analyzing Kernel Tuner cache files, capturing parameters and metrics to facilitate easy comparison of tuning configurations and performance results", | ||
"type": "object", | ||
"properties": { | ||
"schema_version": { | ||
"type": "string", | ||
"description": "The version of this JSON-schema, adhering to the Semantic Versioning specification.", | ||
"const": "1.0.0" | ||
}, | ||
"device_name": { | ||
"type": "string", | ||
"description": "The name of the device the kernel tuner analysis is run on." | ||
}, | ||
"kernel_name": { | ||
"type": "string", | ||
"description": "The name of the kernel." | ||
}, | ||
"problem_size": { | ||
"oneOf": [ | ||
{ | ||
"type": "array", | ||
"items": { | ||
"type": "integer" | ||
} | ||
}, | ||
{ | ||
"type": "integer" | ||
}, | ||
{ | ||
"type": "string" | ||
} | ||
], | ||
"description": "The size of the problem." | ||
}, | ||
"tune_params_keys": { | ||
"type": "array", | ||
"description": "The keys (names) of all the parameters being tuned.", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"tune_params": { | ||
"type": "object", | ||
"description": "The nested JSON object containing for each parameter the array of tuning values.", | ||
"additionalProperties": { | ||
"type": "array" | ||
} | ||
}, | ||
"objective": { | ||
"type": "string", | ||
"description": "The objective with kernel." | ||
}, | ||
"cache": { | ||
"type": "object", | ||
"description": "The actual data; the data of the instances cached.", | ||
"additionalProperties": { | ||
"type": "object", | ||
"properties": { | ||
"time": { | ||
"anyOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"InvalidConfig", | ||
"CompilationFailedConfig", | ||
"RuntimeFailedConfig" | ||
] | ||
}, | ||
{ | ||
"type": "number" | ||
} | ||
] | ||
}, | ||
"times": { | ||
"type": "array", | ||
"items": { | ||
"type": "number" | ||
} | ||
}, | ||
"compile_time": { | ||
"type": "number" | ||
}, | ||
"verification_time": { | ||
"type": "number" | ||
}, | ||
"benchmark_time": { | ||
"type": "number" | ||
}, | ||
"GFLOP/s": { | ||
"type": "number" | ||
}, | ||
"strategy_time": { | ||
"type": "number" | ||
}, | ||
"framework_time": { | ||
"type": "number" | ||
}, | ||
"timestamp": { | ||
"type": "string", | ||
"format": "date-time" | ||
} | ||
}, | ||
"required": [ | ||
"time", | ||
"compile_time", | ||
"verification_time", | ||
"benchmark_time", | ||
"strategy_time", | ||
"framework_time", | ||
"timestamp" | ||
], | ||
"additionalProperties": true | ||
} | ||
} | ||
}, | ||
"propertyNames": { | ||
"pattern": "^\\d+(,\\d+)*$" | ||
} | ||
} | ||
}, | ||
"required": ["schema_version", "device_name", "kernel_name", "problem_size", "tune_params_keys", "tune_params", "objective", "cache"] | ||
} | ||
|
||
}, | ||
"required": [ | ||
"schema_version", | ||
"device_name", | ||
"kernel_name", | ||
"problem_size", | ||
"tune_params_keys", | ||
"tune_params", | ||
"objective", | ||
"cache" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.