rocPRIM's tests and benchmarks employ numerous utilities that are common in implementation. This folder hosts these for an easier and less error-prone maintenance.
When adding a new test or benchmark that depends on a utility, the following cases must be considered:
- If the utility is already implemented in some
commonheader, then there's nothing to do except perhaps extending its functionality. - If the utility does not exit yet in any
commonheader, then fisrt it must be checked whether somebenchmarkortest1 utility header implements this functionality. If so, then it must be moved to the appropriate common header. - If the utility does not exit yet in any
commonnortestnorbenchmarkutility header, then it must be added to the appropriatetestorbenchmarkheader.
Footnotes
-
When adding a new test check the
benchmarkutilities, and viceversa. ↩