Skip to content

Instantly share code, notes, and snippets.

import argparse
import boto3
class ClusterDestroyer:
"""Destroy all ParallelCluster clusters in a given region."""
def __init__(self, region, dryrun):
self.__created_clusters = []
self.region = region
import argparse
import boto3
class ClusterDestroyer:
"""Destroy all ParallelCluster clusters in a given region."""
def __init__(self, region, dryrun):
self.__created_clusters = []
self.region = region
@sean-smith
sean-smith / schedulers.md
Last active July 30, 2020 00:19
Scheduler Cheatsheet for AWS ParallelCluster

General

sge slurm torque
Submit Interactive Job qlogin srun qsub -I
Submit Batch Job qsub sbatch qsub
Number of Slots -pe mpi [n] -n [n] -l ppn=[n]
Number of Nodes -pe mpi [slots * n] -N [n] -l nodes=[n]
Cancel Job qdel scancel qdel
See Queue qstat squeue qstat
@sean-smith
sean-smith / pcluster_networking.md
Last active May 11, 2020 20:47
Setup AWS ParallelCluster with a subnet in a specific Availibility Zone

AWS ParallelCluster Specific AZ Deployment

To use AWS ParallelCluster in a specific Availibility Zone, do the following:

  1. In the VPC Dashboard , click "VPC Wizard"

image

@sean-smith
sean-smith / multi-instance-type-pcluster.md
Last active August 24, 2021 23:10
AWS ParallelCluster Multi Instance Type

AWS ParallelCluster Multi-Instance Type

AWS ParallelCluster Architecture Diagram

This guide will help you setup a SPOT-based multi-instance type cluster. In order to accomplish this, we make a few assumptions:

a. Instances share the same number of vcpus, in this case it's all 96 vcpus:

@sean-smith
sean-smith / intel_psxe_install.md
Created July 31, 2020 23:13
Install Intel Parallel Studio on AWS ParallelCluster

Install Intel Parallel Studio Runtime on AWS ParallelCluster

Tested on Amazon Linux 2

On all AWS ParallelCluster clusters /opt/intel is already shared out via NFS:

$ showmount -e
Export list for ip-172-31-41-183:
@sean-smith
sean-smith / pcluster_dcv_native_client.md
Last active August 15, 2022 06:32
Connect to DCV setup with AWS ParallelCluster using the Native Client

DCV Native Client w/ AWS ParallelCluster

  1. Setup a cluster with DCV
  2. Install the Native client: NICE DCV | Download
  3. Create a script pcluster-dcv-connect.py with the contents as shown below:
  4. Execute that script
# make sure you have pcluster installed
$ pcluster list --color
@sean-smith
sean-smith / OneAPI.md
Created September 3, 2020 21:32
Steps to install the Intel Compiler (ICC) using OneAPI

Intel oneAPI for AWS ParallelCluster

First setup yum to get the right repo:

tee > /tmp/oneAPI.repo << EOF
[oneAPI]
name=Intel(R) oneAPI repository
baseurl=https://yum.repos.intel.com/oneapi
enabled=1
@sean-smith
sean-smith / spack.md
Created September 23, 2020 22:20
Install Spack on AWS ParallelCluster

Install Spack on AWS ParallelCluster

  1. Create a File spack.sh
  2. Upload to S3:
aws s3 cp --acl public-read spack.sh s3://[bucket]
  1. Include in your config file"
[cluster mycluster]