Skip to content

Commit

Permalink
Merge branch 'refs/heads/develop' into multi-gpu
Browse files Browse the repository at this point in the history
# Conflicts:
#	mala/descriptors/descriptor.py
  • Loading branch information
RandomDefaultUser committed Apr 25, 2024
2 parents 0400bff + 5cfd0c8 commit 4b228c8
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions mala/descriptors/descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,22 +753,23 @@ def _setup_lammps(
)

else:
size = 1
lammps_dict["ngridx"] = nx
lammps_dict["ngridy"] = ny
lammps_dict["ngridz"] = nz
lammps_dict["switch"] = self.parameters.bispectrum_switchflag
if self.parameters._configuration["gpu"] > 0:
# Tell Kokkos to use one GPU.
lmp_cmdargs.append("-k")
lmp_cmdargs.append("on")
lmp_cmdargs.append("g")
lmp_cmdargs.append("1")

# Tell LAMMPS to use Kokkos versions of those commands for
# which a Kokkos version exists.
lmp_cmdargs.append("-sf")
lmp_cmdargs.append("kk")
pass
if self.parameters._configuration["gpu"] > 0:
# Tell Kokkos to use one GPU.
lmp_cmdargs.append("-k")
lmp_cmdargs.append("on")
lmp_cmdargs.append("g")
lmp_cmdargs.append(str(size))

# Tell LAMMPS to use Kokkos versions of those commands for
# which a Kokkos version exists.
lmp_cmdargs.append("-sf")
lmp_cmdargs.append("kk")
pass

lmp_cmdargs = set_cmdlinevars(lmp_cmdargs, lammps_dict)

Expand Down

0 comments on commit 4b228c8

Please sign in to comment.