Enable hipAddressModeBorder. Fix default of height of hipMallocArray(). Some code improvement. Change-Id: I57045118e7adf915074c547cbe76349a4cfd72d8