Skip to content

Commit

Permalink
Merged in hipCompileFIx (pull request #572)
Browse files Browse the repository at this point in the history
hip compilation fix

Approved-by: Sambit Das
  • Loading branch information
knikhil1995 authored and dsambit committed Mar 15, 2024
2 parents c5fb5c7 + e827236 commit 5f63e29
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
16 changes: 10 additions & 6 deletions utils/BLASWrapperDevice.hip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down
4 changes: 2 additions & 2 deletions utils/MPIPatternP2P.t.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5f63e29

Please sign in to comment.