Skip to content

Instantly share code, notes, and snippets.

@sean-smith
sean-smith / enroot_pyxis.sh
Last active January 3, 2024 00:10
Installs Enroot and Pyxis (+optional hooks) on ParallelCluster
#!/bin/bash
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
# with the License. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and
@sean-smith
sean-smith / 01-led-sectional.md
Last active December 4, 2023 23:01
LED Sectional - update arduino code

LED Sectional - Program Arduino

This guide is an improved version of Kyle Harmon's Guide to programming the LED sectional. This allows you to update WIFI info, change airports and change the lightning or high wind behaviour.

A. Download Arduino

  1. First Download the Arduino IDE: https://www.arduino.cc/en/software
  2. Once you've opened it, paste in the code linked below in 02-led-sectional.ino

That's it! We'll talk about how to update the different parameters after we've installed the dependency libraries.

Run out of EBS space on an ec2 instance?

  1. Make sure the instance has arn:aws:iam::aws:policy/AmazonEC2FullAccess permissions.

  2. Create a script called resize.sh with the following contents:

#!/bin/bash

# Specify the desired volume size in GiB as a command line argument. If not specified, default to 20 GiB.
SIZE=${1:-20}
@sean-smith
sean-smith / pcluster-ssh.md
Last active November 8, 2023 08:02
Easily SSH into your cluster

ParallelCluster Easy SSH

All credit to @tpbrown for this solution.

Usage:

ssh clustername
@sean-smith
sean-smith / intel-mpi.md
Created June 7, 2022 14:46
Install older intel mpi versions

Intel MPI Versions

IntelMPI 2018.2

Download and install

wget http://registrationcenter-download.intel.com/akdlm/irc_nas/tec/12748/l_mpi_2018.2.199.tgz
tar -xzf l_mpi_2018.2.199.tgz
cd l_mpi_2018.2.199/
sudo ./install.sh

Disable Protected Mode in AWS ParallelCluster

If your cluster tries 10 times to launch instances and fails, it'll automatically go into PROTECTED mode. This disables instance provisioning until the compute fleet is restarted.

You'll see inact as the status of the queue when the cluster is in PROTECTED mode:

[ec2-user@ip-10-0-0-98 ~]$ sinfo
PARTITION AVAIL  TIMELIMIT  NODES  STATE NODELIST
default* inact infinite 2 idle~ spot-dy-compute-[1-100]

🚀 Wifi

image

So naturally the first thing I wanted to do when we got fiber internet was to rename the wifi network to something sexier than "CenturyLink0483". I decided on 🚀.

To do so I navigated to the router setup page at 192.168.0.1, cringing with all the 90's tech it employs.

Then I added 🚀 and tried to update.

@sean-smith
sean-smith / rsm_setup.md
Last active July 31, 2023 17:04
Setup Ansys RSM on SOCA

Ansys HPC RSM SOCA

Remote Solve Manager is an Ansys software which enable PBS job submission from Ansys WorkBench interface.

First install

First set your Ansys Root, we'll use this throughout the doc to edit files:

export ANSYS_ROOT=/apps/ansys_inc/v202
@sean-smith
sean-smith / cost-monitoring.md
Created April 12, 2023 19:09
Activate cost allocation tags and check on the status of them programatically

Activate AWS Tags in Cost Explorer

CLI

aws ce update-cost-allocation-tags-status —cost-allocation-tags-status="TagKey='parallelcluster:cluster-name',Status='activate'"
aws ce list-cost-allocation-tags --tag-keys='parallelcluster:cluster-name'
{
    "CostAllocationTags": [
        {
@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