awu12's picture
Add simd-loop definitions (23 loops: scalar-output, array-output, inplace-sort)
19deaec verified
Raw
History Blame
762 Bytes
{
"name": "loop_121",
"op_type": "loop_121",
"description": "Partition an integer array around a pivot (one pass of quicksort)",
"tags": [
"simd-loop"
],
"axes": {
"N": {
"type": "var",
"description": "Array length"
}
},
"inputs": {
"data": {
"shape": [
"N"
],
"dtype": "int32"
}
},
"outputs": {
"sorted_data": {
"shape": [
"N"
],
"dtype": "int32",
"description": "Sorted array (in-place)"
}
},
"reference": "import numpy as np\n\ndef run(data):\n return np.sort(data)\n",
"simd_loop_meta": {
"output_inplace": true,
"array_pad": 0,
"scratch": [
{
"name": "temp",
"dtype": "int32"
}
]
}
}