Hello everybody
I followed the steps below to install LAMMPS using Conda Forge on a Linux system, and also installed M3GNET and matgl for additional functionality. However, when running LAMMPS, even with the lmp -in inputfile
command, it uses 100% of the CPU cores. I want to limit the CPU usage to just one core.
Installation Steps:
- Download the Miniconda Installer
Download the appropriate Miniconda installer for Linux:
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
Make the Installer Executable
After downloading, change the file permissions to make the installer executable:
chmod +x Miniconda3-latest-Linux-x86_64.sh
Run the Installer
Execute the installer:
./Miniconda3-latest-Linux-x86_64.sh
Create a New Conda Environment for LAMMPS
Create a new Conda environment called lammps-conda
with Python 3.11:
conda create -n lammps-conda python=3.11
Activate the Conda Environment
Activate the newly created Conda environment:
conda activate lammps-conda
Install LAMMPS via Conda-Forge
Install LAMMPS from the Conda-Forge channel:
conda install -c conda-forge lammps
Install M3GNET and Matgl
Install the M3GNET and Matgl Python packages:
pip install M3GNET
pip install matgl
When I run LAMMPS with the command: lmp -in inputfile, It uses 100% of all available CPU cores, even though I want to limit it to just one core. I would be appreciated it if you guide me how to solve the problem
Best