-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgcc_cmaq_mnt_nvme.csh
executable file
·42 lines (35 loc) · 1.64 KB
/
gcc_cmaq_mnt_nvme.csh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/csh -f
# -----------------------
# Download and build CMAQ
# -----------------------
setenv IOAPI_DIR /mnt/nvme/build/ioapi-3.2/Linux2_x86_64gfort
setenv NETCDF_DIR /mnt/nvme/build/netcdf/lib
setenv NETCDFF_DIR /mnt/nvme/build/netcdf/lib
cd /mnt/nvme/build/
#git clone -b 5.3.2_singularity https://github.com/lizadams/CMAQ.git CMAQ_REPO
git clone -b main https://github.com/USEPA/CMAQ.git CMAQ_REPO_v533
echo "downloaded CMAQ"
cd CMAQ_REPO_v533
cp /mnt/nvme/cyclecloud-cmaq/bldit_project_v533_mnt_nvme.csh /mnt/nvme/build/CMAQ_REPO_v533
./bldit_project_v533_mnt_nvme.csh
#module load openmpi
cd /mnt/nvme/build/openmpi_gcc/CMAQ_v533/CCTM/scripts/
cp /mnt/nvme/cyclecloud-cmaq/config_cmaq_mnt_nvme.csh ../../config_cmaq.csh
./bldit_cctm.csh gcc |& tee ./bldit_cctm.log
cp /mnt/nvme/cyclecloud-cmaq/run_scripts/run* /mnt/nvme/build/openmpi_gcc/CMAQ_v533/CCTM/scripts/
cd /mnt/nvme/build/openmpi_gcc/CMAQ_v533/CCTM/scripts/
# submit job to the queue using
# sbatch run_cctm_2016_12US2.256pe.csh
# if you get the following error it means the compute nodes are not running
#sbatch: error: Batch job submission failed: Required partition not available (inactive or drain)
# if you get this error
# sbatch run_cctm_2016_12US2.256pe.csh
#sbatch: error: Batch job submission failed: More processors requested than permitted
# Check the number of processors on the machine, and whether you have hyperthreading turned off
#!/bin/csh -f
#SBATCH --nodes=16
#SBATCH --ntasks-per-node=16
#Model vCPU Memory (GiB) Instance Storage (GiB)
# c5.4xlarge 16 32 EBS-Only
# created a run script to use only 8 cpu per node for 128 pe job
#sbatch run_cctm_2016_12US2.128pe.csh