Skip to content

Commit f4c63e8

Browse files
committed
Added setup directions for Anaconda on the Mac. Used directions from
the workshop repo.
1 parent 3d0f2e5 commit f4c63e8

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

README.setup.mac

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Set up your python environment
2+
# ------------------------------
3+
4+
# Download the Anaconda installer
5+
curl -o Anaconda2-4.3.1-MacOSX-x86_64.sh https://repo.continuum.io/archive/Anaconda2-4.3.1-MacOSX-x86_64.sh
6+
7+
# Make the installer executable
8+
chmod u+x ./Anaconda2-4.3.1-MacOSX-x86_64.sh
9+
10+
# Run the installer, accepting the defaults.
11+
./Anaconda2-4.3.1-MacOSX-x86_64.sh
12+
13+
# Add anaconda2/bin to your path (assumes default install location)
14+
export PATH=$HOME/anaconda2/bin:$PATH
15+
16+
# Install additonal modules not shipped with Anaconda
17+
conda install -c conda-forge tensorflow
18+
conda install -c anaconda hdf5=1.8.17
19+
conda install -c anaconda theano
20+
conda install -c conda-forge keras=2
21+
22+
# Install additional modules for Pilot2 benchmarks
23+
conda install -c conda-forge opencv
24+
conda install -c conda-forge tqdm
25+
conda update -c conda-forge numpy
26+
27+
# Download the source files for the benchmarks
28+
git clone https://github.com/ECP-Candle/benchmarks
29+
30+
# Run the Pilot1 benchmarks
31+
pushd benchmarks/Pilot1/P1B1/
32+
python p1b1_baseline_keras2.py
33+
popd
34+
35+
pushd benchmarks/Pilot1/P1B2/
36+
python p1b2_baseline_keras2.py
37+
popd
38+
39+
pushd benchmarks/Pilot1/P1B3/
40+
python p1b3_baseline_keras2.py
41+
popd
42+
43+
# Run the Pilot2 benchmarks
44+
pushd benchmarks/Pilot2/P2B1/
45+
python p2b1_baseline_keras1.py
46+
popd
47+
48+
pushd benchmarks/Pilot2/P2B2/
49+
python p2b2_baseline_keras1.py
50+
popd
51+
52+
# Run the Pilot3 benchmarks
53+
pushd benchmarks/Pilot3/P3B1/
54+
python p3b1_baseline_keras2.py
55+
popd
56+
57+
pushd benchmarks/Pilot3/P3B2/
58+
python p3b2_baseline_keras2.py
59+
popd
60+

0 commit comments

Comments
 (0)