The RMCProfile7 packages for different platforms can be found here – scroll to the bottom of the page. For Linux operating systems, first try the top one in the table. If for some reason you Linux server is running some legacy version of distro, try the ‘Legacy’ version. Once downloaded, untar the package using the command like below (on your Linux server),
tar xvf RMCProfile_V7b35_Linux_X64.tgz
to obtain the ‘RMCProfile_package’ directory. To get the package on your Linux server, there are several options. You can download the package on your local machine use tools like WinSCP (Windows), FileZilla (Windows & MacOS) or Cyberduck (Windows & MacOS) to upload the package to your Linux server. If you local machine is MacOS or Linux, you can use command-line tools like rsync for uploading. Or, you can ssh into your Linux server and use command like wget or curl to directly download the package. In any cases, pick a random GPT chatbot and I am not sure it will do a better job than me to walk you through such a process.
We can choose a place to put the ‘RMCProfile_package’ on your Linux server — any place you have access to on the Linux server should be fine, as long as the path does not contain any white spaces. Then, suppose you are using slurm for job management on your Linux server, the following template can be used for job submission,
#!/bin/bash
#SBATCH -t 12:00:00
#SBATCH -N 1
#SBATCH -o Output_Name_RMC-%j
#SBATCH -q regular
#SBATCH -J Name_RMC
#SBATCH -C cpu
#SBATCH --mail-user=your_email_address
#SBATCH --mail-type=ALL
#OpenMP settings:
export OMP_NUM_THREADS=8
export OMP_PLACES=threads
export OMP_PROC_BIND=spread
RMCProfile_PATH=/full/path/to/RMCProfile_package
export PGPLOT_DIR=$RMCProfile_PATH/exe/libs
export LD_LIBRARY_PATH=$RMCProfile_PATH/exe/libs
export LIBRARY_PATH=$RMCProfile_PATH/exe/libs
export PATH=$PATH:$RMCProfile_PATH/exe
cd $SLURM_SUBMIT_DIR
rmcprofile RMC7_Input_Stem_Name
Replace entries for ‘-o’, ‘-J’, etc. according to your cases. The ‘–mail-user’ and ‘–mail-type’ flags are optional — in case you need email notifications for monitoring the job status, you can fill in your relevant information. Then for sure, you need to update ‘RMC7_Input_Stem_Name’ to your RMC7 stem name, i.e., the stem name of the input ‘.dat’ file. Save the contents above to a file, e.g., ‘submit.sh’ and put it into your RMC7 running directory. Then submit your job using the command below,
sbatch submit.sh
Here, the name of the job submission script can be arbitrary. Use the following command (keep the command as is — `$USER` will tell the command who you are) to monitor the status of your job on the Linux server,
squeue -u $USER
If you want to watch the updated status, use,
watch squeue -u $USER
which will keep the status of your jobs on terminal until you kill it (by pressing ‘[Ctrl]+c’) and the status will be updated every 2 seconds by default.
