Skip to content

Commit

Permalink
Make latest schema version the new 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tdejong00 committed Jun 10, 2024
1 parent 1f8a782 commit 9eacf02
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 327 deletions.
197 changes: 125 additions & 72 deletions kernel_tuner/schema/cache/1.0.0/schema.json
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"
]
}
127 changes: 0 additions & 127 deletions kernel_tuner/schema/cache/1.0.1/schema.json

This file was deleted.

Loading

0 comments on commit 9eacf02

Please sign in to comment.