Make sure you're using the latest spack
from the develop
branch and the
latest mochi-margo
from the main
branch. Note: The mochi-margo
package is
contained in the default spack
repo, but we can't use that one. We must use
the version at https://github.com/mochi-hpc/mochi-spack-packages. That is the
only way we can get a new enough margo
and mercury
that have the GPU
capabilities we're testing. For reference, the GPU capabilites were added to
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
#!/bin/bash | |
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh | |
chmod +x miniconda.sh | |
./miniconda.sh -b -p /opt/miniconda | |
export PATH=/opt/miniconda/bin:$PATH | |
conda create -n mp -c chogan/label/dev -c chogan -c conda-forge pymeep-parallel boto3 | |
chown -R ec2-user:ec2-user /opt/miniconda | |
function fix_boot_disable_ht() { |
![absorber_boundaries.png](https://gist.github.com/ChristopherHogan/ef11991fa505634b6c3556f079e716bb/raw/046f53e3f9bc79b2c183a1e7e66949304707950d/absorber_boundaries.png)
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
#!/bin/bash | |
PREFIX=/root/miniconda | |
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh | |
bash Miniconda3-latest-Linux-x86_64.sh -b -p ${PREFIX} | |
CONDA=${PREFIX}/bin/conda | |
${CONDA} create -y -n mp -c chogan/label/dev -c chogan -c conda-forge pymeep boto3 |
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 argparse | |
from time import time | |
from math import pi | |
from random import randrange | |
import boto3 | |
import meep as mp | |
from meep.materials import Al | |
![absorber_boundaries.png](https://gist.github.com/ChristopherHogan/23d0741d75852c535db0c48a8ac19804/raw/6b51e5aa756ab61b4b9a1f9d47adcf4efc4c16ea/absorber_boundaries.png)
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 math | |
import time | |
from multiprocessing import Pool | |
import boto3 | |
import meep as mp | |
from meep.materials import Al | |
def get_results(fragment_stats, total_pixels, total_time): |
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 time | |
from multiprocessing import Pool | |
import boto3 | |
import botocore | |
import meep as mp | |
def make_dft_data(flx_reg=None, n2f_reg=None, frc_reg=None, fldc=None, flds=None, fldw=None, fld_cmp=None): | |
dft_data = { |
PyMeep conda packages are currently only available for python 2.7 and 3.6 on Linux (tested on Debian Jessie and Ubuntu Xenial). Note that PyMeep is still in its development stages, and should be considered alpha software. The conda packages are subject to change at any time.
1. Install Miniconda
It doesn't really matter if you install the python 2.7 or 3.6 version, since you can create conda environments with any version you want.
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b -p <desired_prefix>/miniconda3
export PATH=<desired_prefix>/miniconda3/bin:$PATH