Skip to content

Commit

Permalink
Simplify BsplineAllocator template parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
ye-luo committed Sep 25, 2024
1 parent 1368e54 commit 9ecee5b
Show file tree
Hide file tree
Showing 4 changed files with 170 additions and 193 deletions.
4 changes: 2 additions & 2 deletions src/QMCWaveFunctions/BsplineFactory/SplineC2COMPTarget.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class SplineC2COMPTarget : public BsplineSet
///\f$GGt=G^t G \f$, transformation for tensor in LatticeUnit to CartesianUnit, e.g. Hessian
Tensor<ST, 3> GGt;
///multi bspline set
std::shared_ptr<MultiBspline<ST, OffloadAllocator<ST>, OffloadAllocator<SplineType>>> SplineInst;
std::shared_ptr<MultiBspline<ST, OffloadAllocator>> SplineInst;

std::shared_ptr<OffloadVector<ST>> mKK;
std::shared_ptr<OffloadPosVector<ST>> myKcart;
Expand Down Expand Up @@ -173,7 +173,7 @@ class SplineC2COMPTarget : public BsplineSet
void create_spline(GT& xyz_g, BCT& xyz_bc)
{
resize_kpoints();
SplineInst = std::make_shared<MultiBspline<ST, OffloadAllocator<ST>, OffloadAllocator<SplineType>>>();
SplineInst = std::make_shared<MultiBspline<ST, OffloadAllocator>>();
SplineInst->create(xyz_g, xyz_bc, myV.size());

app_log() << "MEMORY " << SplineInst->sizeInByte() / (1 << 20) << " MB allocated "
Expand Down
4 changes: 2 additions & 2 deletions src/QMCWaveFunctions/BsplineFactory/SplineC2ROMPTarget.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class SplineC2ROMPTarget : public BsplineSet
///number of complex bands
int nComplexBands;
///multi bspline set
std::shared_ptr<MultiBspline<ST, OffloadAllocator<ST>, OffloadAllocator<SplineType>>> SplineInst;
std::shared_ptr<MultiBspline<ST, OffloadAllocator>> SplineInst;

std::shared_ptr<OffloadVector<ST>> mKK;
std::shared_ptr<OffloadPosVector<ST>> myKcart;
Expand Down Expand Up @@ -179,7 +179,7 @@ class SplineC2ROMPTarget : public BsplineSet
void create_spline(GT& xyz_g, BCT& xyz_bc)
{
resize_kpoints();
SplineInst = std::make_shared<MultiBspline<ST, OffloadAllocator<ST>, OffloadAllocator<SplineType>>>();
SplineInst = std::make_shared<MultiBspline<ST, OffloadAllocator>>();
SplineInst->create(xyz_g, xyz_bc, myV.size());

app_log() << "MEMORY " << SplineInst->sizeInByte() / (1 << 20) << " MB allocated "
Expand Down
Loading

0 comments on commit 9ecee5b

Please sign in to comment.