Changes between Version 6 and Version 7 of DataParallel/VectPragma
- 06/21/11 06:36:59 (2 years ago)
v6 v7 16 16 '''Caveat:''' Currently, the type is indeed checked by the vectoriser by comparing Core types. It would be better to perform that check in the type checker to instantiate the type of `f_v` appropriately if it is overly general. At the moment, the vectorised version of `t` and the inferred type of `e` need to exactly match up (including all dictionaries ''and their order''). 17 17 18 == The NOVECTORISE pragma == 18 == The NOVECTORISE pragma == 19 19 20 20 If a variable `f` is accompanied by a pragma … … 27 27 28 28 29 == The VECTORISE SCALAR pragma == 29 == The VECTORISE SCALAR pragma == 30 30 31 31 Functions that contain no array computations, especially if they are cheap (such as `(+)`), should not be vectorised, but applied by simply mapping them over an array. This could be achieved by using the `VECTORISE` pragma with an appropriate right-hand side, but leads to repetitive code that we rather like the compiler to generate.