-
Notifications
You must be signed in to change notification settings - Fork 114
1912/1 item schema #1913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 1912/0-identity-config
Are you sure you want to change the base?
1912/1 item schema #1913
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| { | ||
| "$schema": "https://json-schema.org/draft/2020-12/schema", | ||
| "title": "Distributed BLAS", | ||
| "description": "Input for a single BLAS operation with distributed vectors", | ||
| "type": "object", | ||
| "properties": { | ||
| "n": { | ||
| "type": "integer", | ||
| "minimum": 1 | ||
| }, | ||
| "r": { | ||
| "type": "integer", | ||
| "minimum": 1 | ||
| }, | ||
| "stride": { | ||
| "type": "integer", | ||
| "minimum": 1 | ||
| }, | ||
| "stride_x": { | ||
| "type": "integer", | ||
| "minimum": 1 | ||
| }, | ||
| "stride_y": { | ||
| "type": "integer", | ||
| "minimum": 1 | ||
| } | ||
| }, | ||
| "if": { | ||
| "required": [ | ||
| "stride" | ||
| ] | ||
| }, | ||
|
Comment on lines
+28
to
+32
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could you share the documentation for this?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe this can help: https://json-schema.org/understanding-json-schema/reference/conditionals#ifthenelse. |
||
| "then": { | ||
| "not": { | ||
| "anyOf": [ | ||
| { | ||
| "required": [ | ||
| "stride_x" | ||
| ] | ||
| }, | ||
| { | ||
| "required": [ | ||
| "stride_y" | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| "required": [ | ||
| "n" | ||
| ], | ||
| "examples": [ | ||
| { | ||
| "n": 1000 | ||
| }, | ||
| { | ||
| "n": 1000, | ||
| "r": 1000 | ||
| }, | ||
| { | ||
| "n": 1000, | ||
| "stride": 1024 | ||
| }, | ||
| { | ||
| "n": 1000, | ||
| "stride_x": 1024, | ||
| "stride_y": 2048 | ||
| } | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,92 @@ | ||
| { | ||
| "$schema": "https://json-schema.org/draft/2020-12/schema", | ||
| "title": "BLAS", | ||
| "description": "Input for a single BLAS operation", | ||
| "type": "object", | ||
| "properties": { | ||
| "n": { | ||
| "type": "integer", | ||
| "minimum": 1 | ||
| }, | ||
| "r": { | ||
| "type": "integer", | ||
| "minimum": 1 | ||
| }, | ||
| "m": { | ||
| "type": "integer", | ||
| "minimum": 1 | ||
| }, | ||
| "k": { | ||
| "type": "integer", | ||
| "minimum": 1 | ||
| }, | ||
| "stride": { | ||
| "type": "integer", | ||
| "minimum": 1 | ||
| }, | ||
| "stride_x": { | ||
| "type": "integer", | ||
| "minimum": 1 | ||
| }, | ||
| "stride_y": { | ||
| "type": "integer", | ||
| "minimum": 1 | ||
| }, | ||
| "stride_A": { | ||
| "type": "integer", | ||
| "minimum": 1 | ||
| }, | ||
| "stride_B": { | ||
| "type": "integer", | ||
| "minimum": 1 | ||
| }, | ||
| "stride_C": { | ||
| "type": "integer", | ||
| "minimum": 1 | ||
| } | ||
| }, | ||
| "if": { | ||
| "required": [ | ||
| "stride" | ||
| ] | ||
| }, | ||
| "then": { | ||
| "not": { | ||
| "anyOf": [ | ||
| { | ||
| "required": [ | ||
| "stride_x" | ||
| ] | ||
| }, | ||
| { | ||
| "required": [ | ||
| "stride_y" | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| "required": [ | ||
| "n" | ||
| ], | ||
| "examples": [ | ||
| { | ||
| "n": 1000 | ||
| }, | ||
| { | ||
| "n": 1000, | ||
| "r": 1000, | ||
| "m": 1000, | ||
| "k": 1000 | ||
| }, | ||
| { | ||
| "n": 1000, | ||
| "stride": 1024 | ||
| }, | ||
| { | ||
| "n": 1000, | ||
| "stride_x": 1024, | ||
| "stride_y": 2048 | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| { | ||
| "$schema": "https://json-schema.org/draft/2020-12/schema", | ||
| "title": "Conversion", | ||
| "description": "Input for a single conversion operation", | ||
| "type": "object", | ||
| "properties": { | ||
| "operator": { | ||
| "$ref": "operator.reuse.json" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "operator" | ||
| ], | ||
| "not": { | ||
| "required": [ | ||
| "format", | ||
| "reorder" | ||
| ] | ||
| }, | ||
| "examples": [ | ||
| { | ||
| "operator": { | ||
| "filename": "my_file.mtx" | ||
| } | ||
| }, | ||
| { | ||
| "operator": { | ||
| "stencil": { | ||
| "name": "5pt", | ||
| "size": 100 | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| { | ||
| "$schema": "https://json-schema.org/draft/2020-12/schema", | ||
| "title": "Matrix Generator", | ||
| "description": "Input for a single matrix generation operation", | ||
| "type": "object", | ||
| "properties": { | ||
| "filename": { | ||
| "type": "string" | ||
| }, | ||
| "problem": { | ||
| "type": "object", | ||
| "properties": { | ||
| "type": { | ||
| "enum": [ | ||
| "block-diagonal" | ||
| ] | ||
| }, | ||
| "num_blocks": { | ||
| "type": "integer", | ||
|
yhmtsai marked this conversation as resolved.
|
||
| "minimum": 1 | ||
| }, | ||
| "block_size": { | ||
| "type": "integer", | ||
| "minimum": 1 | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "required": [ | ||
| "filename", | ||
| "problem" | ||
| ], | ||
| "examples": [ | ||
| { | ||
| "$comment": "The generated matrix will have a dense block of size <block-size>, with random real values chosen uniformly in the interval [-1, 1], repeated <num-blocks> times on the diagonal" | ||
| }, | ||
| { | ||
| "filename": "output_matrix.mtx", | ||
| "problem": { | ||
| "type": "block-diagonal", | ||
| "num_blocks": 2, | ||
| "block_size": 2 | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| { | ||
| "$schema": "https://json-schema.org/draft/2020-12/schema", | ||
| "title": "Matrix Statistics", | ||
| "description": "Input for a single matrix statistics operation", | ||
| "type": "object", | ||
| "properties": { | ||
| "operator": { | ||
| "$ref": "operator.reuse.json" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "operator" | ||
| ], | ||
| "examples": [ | ||
| { | ||
| "operator": { | ||
| "filename": "my_file.mtx" | ||
| } | ||
| }, | ||
| { | ||
| "operator": { | ||
| "stencil": { | ||
| "name": "5pt", | ||
| "size": 100 | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| { | ||
| "$schema": "https://json-schema.org/draft/2020-12/schema", | ||
| "$id": "operator-distributed.reuse.json", | ||
| "title": "Distributed Operator", | ||
| "description": "Reusable distributed operator definition", | ||
| "type": "object", | ||
| "properties": { | ||
| "filename": { | ||
| "type": "string" | ||
| }, | ||
| "stencil": { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this will also lead the format changes. Is it intentional? now
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, because I find this more consistent. But if others prefer the old version, I can revert. |
||
| "type": "object", | ||
| "properties": { | ||
| "kind": { | ||
| "enum": [ | ||
| "5pt", | ||
| "7pt", | ||
| "9pt", | ||
| "27pt" | ||
| ] | ||
| }, | ||
| "local_size": { | ||
| "type": "integer", | ||
| "exclusiveMinimum": 0 | ||
| }, | ||
| "comm_pattern": { | ||
| "enum": [ | ||
| "stencil", | ||
| "optimal" | ||
| ], | ||
| "default": "stencil" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "kind", | ||
| "local_size" | ||
| ] | ||
| } | ||
| }, | ||
| "additionalProperties": false, | ||
| "oneOf": [ | ||
| { | ||
| "required": [ | ||
| "filename" | ||
| ] | ||
| }, | ||
| { | ||
| "required": [ | ||
| "stencil" | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also need to add the license from nlohmann_json_schema_validator