This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make sure system drive has some free space | |
# Setup docker | |
curl -fsSL https://get.docker.com/ | sh | |
systemctl enable docker | |
systemctl start docker | |
# Fetch an image from Docker hub | |
docker pull centos:7.3.1611 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --name centos_base-7.3.1611 -d -t centos:7.3.1611 /bin/bash | |
docker exec -t -i centos_base /bin/bash | |
# in container | |
yum -y install epel-release | |
yum -y install environment-modules | |
yum -y install which make m4 bc | |
yum -y install gcc gcc-gfortran | |
yum -y install mvapich2-2.2 mvapich2-2.2-devel | |
yum -y install mpich-3.2 mpich-3.2-devel | |
yum -y install mpich mpich-devel |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/letsencrypt/letsencrypt | |
cd letsencrypt | |
./letsencrypt-auto certonly --standalone -d mit-12-010-fall2019.cyberinfrastructure.org.tld | |
key: /etc/letsencrypt/live/mit-12-010-fall2019.cyberinfrastructure.org.tld/privkey.pem | |
cert: /etc/letsencrypt/live/mit-12-010-fall2019.cyberinfrastructure.org.tld/fullchain.pem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Julia code for Helmholtz solve with tridiag Neumann in inner dimension and | |
# periodic in outer up to 2 dimensions. | |
# Set environment | |
using Pkg | |
Pkg.add("LinearAlgebra") | |
using LinearAlgebra | |
Pkg.add("FFTW") | |
using FFTW |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Functions for eigvfft notebook. | |
## to use: include("./eigvfft.jl") | |
# Set environment | |
using Pkg | |
Pkg.add("LinearAlgebra") | |
using LinearAlgebra | |
Pkg.add("FFTW") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include("./eigvfft-for-oliver.jl"); | |
IJulia.clear_output(); | |
dz=ones(4,1)[:];dz[1]=4.;dz | |
dz=[1.,2.,3,4.] | |
# dz=[ones(1,10) ones(1,20)*2 ones(1,100)*5 ] | |
Az=mkA_N(dz);Nz=size(Az,1) | |
Ah,Nx,Ny,Nzz,NN=mkA_PPN(3,3,1); | |
Nh=size(Ah,1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# demo for profiling python using command | |
# | |
# nvprof --print-gpu-trace python cuml_tsne.py | |
from sklearn.datasets import load_digits | |
X, y = load_digits().data, load_digits().target | |
from cuml.manifold import TSNE | |
tsne = TSNE(n_components = 2) | |
X_hat = tsne.fit_transform(X) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#BSUB -L /bin/bash | |
## | |
## Begin LSF Directives (change only no of required GPUs processes/GPUs and job-name-single name as desired/need) | |
## - "-n 4" for single AC922, "-n 8" for 2x AC922s, "-n 16" for 4x AC922s etc | |
## | |
#BSUB -J "energy-ai" | |
#BSUB -o "energy-ai_o.%J" | |
#BSUB -e "energy-ai_e.%J" | |
#BSUB -n 16 | |
#BSUB -R "span[ptile=4]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import time | |
import json | |
from github import Github | |
import pandas as pd | |
import os | |
gt = os.getenv('GIT_TOKEN') # Get this from your Github Oauth tokens | |
print(gt) | |
# Get list of all PRs |
OlderNewer