| 9 | #include <cstdio> |
| 10 | |
| 11 | int main(int argc, char **argv) { |
| 12 | int backend = argc > 1 ? atoi(argv[1]) : 0; |
| 13 | setBackend(static_cast<Backend>(backend)); |
| 14 | int device = argc > 2 ? atoi(argv[2]) : 0; |
| 15 | setDevice(device); |
| 16 | int rng = argc > 3 ? atoi(argv[3]) : 100; |
| 17 | setDefaultRandomEngineType(static_cast<randomEngineType>(rng)); |
| 18 | |
| 19 | setSeed(0xfe47fe0cc078ec30ULL); |
| 20 | int samples = 1024 * 1024; |
| 21 | while (1) { |
| 22 | array values = randu(samples, u32); |
| 23 | uint32_t *pvalues = values.host<uint32_t>(); |
| 24 | fwrite((void *)pvalues, samples * sizeof(*pvalues), 1, stdout); |
| 25 | freeHost(pvalues); |
| 26 | } |
| 27 | } |
nothing calls this directly
no test coverage detected