| { | |
| "name": "loop_008", | |
| "op_type": "loop_008", | |
| "description": "Sum a double array with exact scalar FP ordering \u2014 result must be bit-identical to sequential scalar addition", | |
| "tags": [ | |
| "simd-loop" | |
| ], | |
| "axes": { | |
| "N": { | |
| "type": "var", | |
| "description": "Array length" | |
| } | |
| }, | |
| "inputs": { | |
| "a": { | |
| "shape": [ | |
| "N" | |
| ], | |
| "dtype": "float64" | |
| } | |
| }, | |
| "outputs": { | |
| "res": { | |
| "shape": null, | |
| "dtype": "float64", | |
| "description": "Scalar result" | |
| } | |
| }, | |
| "reference": "import numpy as np\n\ndef run(a):\n return np.float64(np.sum(a))\n", | |
| "simd_loop_meta": { | |
| "output_inplace": false, | |
| "array_pad": 0, | |
| "scratch": [] | |
| } | |
| } | |