diff --git a/utils/BLASWrapperDevice.hip.cc b/utils/BLASWrapperDevice.hip.cc index 0bc0a822e..50632c7f8 100644 --- a/utils/BLASWrapperDevice.hip.cc +++ b/utils/BLASWrapperDevice.hip.cc @@ -645,12 +645,16 @@ namespace dftfe const ValueType2 beta, ValueType1 * y) const { - hipLaunchKernelGGL(axpbyDeviceKernel,n / dftfe::utils::DEVICE_BLOCK_SIZE) + - 1,dftfe::utils::DEVICE_BLOCK_SIZE,0,0,n, - dftfe::utils::makeDataTypeDeviceCompatible(x), - dftfe::utils::makeDataTypeDeviceCompatible(y), - alpha, - beta); + hipLaunchKernelGGL(axpbyDeviceKernel, + n / dftfe::utils::DEVICE_BLOCK_SIZE + 1, + dftfe::utils::DEVICE_BLOCK_SIZE, + 0, + 0, + n, + dftfe::utils::makeDataTypeDeviceCompatible(x), + dftfe::utils::makeDataTypeDeviceCompatible(y), + alpha, + beta); } diff --git a/utils/MPIPatternP2P.t.cc b/utils/MPIPatternP2P.t.cc index 3a7fd833e..51bccf75f 100644 --- a/utils/MPIPatternP2P.t.cc +++ b/utils/MPIPatternP2P.t.cc @@ -423,14 +423,14 @@ namespace dftfe for (unsigned int iGhost = 0; iGhost < d_numGhostProcs; ++iGhost) { const int ghostProcId = d_ghostProcIds[iGhost]; - err = MPI_Isend(&d_numGhostIndicesInGhostProcs[iGhost], + err = MPI_Isend(&d_numGhostIndicesInGhostProcs[iGhost], 1, MPI_UNSIGNED, ghostProcId, tag, d_mpiComm, &sendRequests[iGhost]); - std::string errMsg = "Error occured while using MPI_Isend. " + std::string errMsg = "Error occured while using MPI_Isend. " "Error code: " + std::to_string(err); throwException(err == MPI_SUCCESS, errMsg);