Skip to content

Commit

Permalink
hip compilation fix and indentation standard
Browse files Browse the repository at this point in the history
  • Loading branch information
knikhil1995 committed Mar 15, 2024
1 parent c5fb5c7 commit e827236
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 e827236

Please sign in to comment.