File size: 886 Bytes
7502e01 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | {
"name": "loop_124",
"op_type": "loop_124",
"description": "Sort integers by digit using a single radix counting pass",
"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"
},
{
"name": "hist",
"dtype": "int32"
},
{
"name": "prfx",
"dtype": "int32"
}
]
}
}
|