hipHostMalloc allocation are mapped to all devices by default.

Support hipHostMallocPortable flag.
Default flags are hipHostMallocPortable | hipHostMallocMapped.

Also:
-refactor tests to move addCount and addCountReverse into HipTest
namespace.
-test multi-GPU host memory.
This commit is contained in:
Ben Sander
2017-05-10 17:32:25 -05:00
parent e0c3ea15b2
commit c3ccaa01e5
7 changed files with 181 additions and 96 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ inline int zrand(int max)
//=================================================================================================
// Functins to run tests
// Functions to run tests
//=================================================================================================
//--
//Run through a couple simple cases to test lookups and host pointer arithmetic: