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
والد ae9fdf9bc1
کامیت ff9bed6535
7فایلهای تغییر یافته به همراه181 افزوده شده و 96 حذف شده
@@ -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: