Hi, in order to consolidate things, I have decided to re-post all "hsa testsuite" patches under this thread. With the patches applied, we do no not get any spurious failures because of hsa warnings or libgomp testcases failing because they are run on the host fallback. Moreover, the first patch adds a simple dump-scan compile-time gridification tests and the last patch adds a special directory for run-time C tests of hsa which are run only when HSA devices are actually selected for offloading. In the future, I'll likely propose similar C++ and Fortran directories.
All patches were tested by running the whole testsuite on patched trunk: - that was configured for all languages except go but not configured for HSA, - that was configured for all languages except go and also for HSA offloading, but an HSA device was not present on the machine, and - running the whole suite after configuring trunk for C, C++ and Fortran on a computer with an HSA APU, and subsequently comparing generated .sum files with unpatched trunk. Thanks for any feedback (and approvals ;-), Martin