Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit d78477a

Browse files
committed
instructions for tutorial; adding environment file
1 parent ada4e5c commit d78477a

3 files changed

Lines changed: 139 additions & 15 deletions

File tree

tutorial/README.md

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
# HPAT_tutorial
22

3-
To get the full experience you need to setup your python envorinment as follows:
4-
* conda create -n hpatidp -c intel python=3.6 tbb-devel numpy pandas scipy cython jinja2 daal daal-include impi-devel
5-
* conda activate hpatidp # or source activate idp
6-
* conda install jupyter notebook matplotlib boost cmake pyarrow gcc_linux-64 gxx_linux-64 gfortran_linux-64
7-
* conda install -c numba/label/dev -c intel llvmlite
8-
* git clone https://github.com/numba/numba
9-
* pushd numba && python setup.py install && popd
10-
* git clone https://github.com/IntelLabs/hpat
11-
* pushd hpat && python setup.py install && popd
12-
* git clone https://github.com/IntelPython/daal4py hpat
13-
* pushd daal4py && python setup.py install && popd
14-
15-
Now you can use the notebook!
16-
* jupyter notbook
3+
## Setting up your environment
4+
This HPAT tutorial makes use of hpat (latest), numpy, pandas, daal4py (latest) and their dependences.
5+
6+
The easiest and most reliable way is to create a python environment is through using the provided environment configuration:
7+
8+
`conda env create -f environment.yml`
9+
10+
Then activate the environment
11+
12+
`conda activate hpattut`
13+
14+
and you are ready to start the tutorial!
15+
16+
## The Tutorial
17+
18+
The main material is provided as juypter notebooks. To get started simply type
19+
20+
`jupyter notebook`
21+
22+
The main HPAT tutorial is in the notebook `hpat.ipynb`.
23+
An example of an advanced analytics code is provided in `intraday_mean.py`.
24+
A more complete notebook about using daal4py with HPAT can be found in ` daal4py_data_science.ipynb`.

tutorial/environment.yml

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
name: hpattut
2+
channels:
3+
- numba/label/dev
4+
- ehsantn
5+
- intel
6+
- conda-forge
7+
- defaults
8+
dependencies:
9+
- arrow-cpp=0.11.1=py36h3bd774a_0
10+
- attrs=19.1.0=py36_1
11+
- backcall=0.1.0=py36_0
12+
- bleach=3.1.0=py36_0
13+
- boost=1.68.0=py36h8619c78_1001
14+
- boost-cpp=1.68.0=h11c811c_1000
15+
- bzip2=1.0.6=17
16+
- ca-certificates=2019.1.23=0
17+
- certifi=2019.3.9=py36_0
18+
- cycler=0.10.0=py36_7
19+
- daal=2019.3=intel_199
20+
- daal4py=0.2019.2=py36hf484d3e_1
21+
- dbus=1.13.6=h746ee38_0
22+
- decorator=4.4.0=py36_1
23+
- defusedxml=0.5.0=py36_1
24+
- entrypoints=0.3=py36_0
25+
- expat=2.2.6=he6710b0_0
26+
- fontconfig=2.13.0=h9420a91_0
27+
- freetype=2.9.1=h8a8886c_1
28+
- glib=2.56.2=hd408876_0
29+
- gmp=6.1.2=h6c8ec71_1
30+
- gst-plugins-base=1.14.0=hbbd80ab_1
31+
- gstreamer=1.14.0=hb453b48_1
32+
- hpat=0.29=py36hf484d3e_2
33+
- icu=58.2=hf484d3e_1000
34+
- intel-openmp=2019.3=intel_199
35+
- intelpython=2019.3=0
36+
- ipykernel=5.1.0=py36h39e3cac_0
37+
- ipython=7.4.0=py36h39e3cac_0
38+
- ipython_genutils=0.2.0=py36_0
39+
- ipywidgets=7.4.2=py36_0
40+
- jedi=0.13.3=py36_0
41+
- jinja2=2.10=py36_0
42+
- jpeg=9b=h024ee3a_2
43+
- jsonschema=3.0.1=py36_0
44+
- jupyter=1.0.0=py36_7
45+
- jupyter_client=5.2.4=py36_0
46+
- jupyter_console=6.0.0=py36_0
47+
- jupyter_core=4.4.0=py36_0
48+
- kiwisolver=1.0.1=py36_2
49+
- libblas=3.8.0=4_openblas
50+
- libcblas=3.8.0=4_openblas
51+
- libffi=3.2.1=hd88cf55_4
52+
- libgcc-ng=8.2.0=hdf63c60_1
53+
- libgfortran=3.0.0=1
54+
- libpng=1.6.36=2
55+
- libsodium=1.0.16=h1bed415_0
56+
- libstdcxx-ng=8.2.0=hdf63c60_1
57+
- libuuid=1.0.3=h1bed415_2
58+
- libxcb=1.13=h1bed415_1
59+
- libxml2=2.9.9=he19cac6_0
60+
- llvmlite=0.29.0dev0=py36hf484d3e_4
61+
- markupsafe=1.1.1=py36h7b6447c_0
62+
- matplotlib=3.0.1=py36_1
63+
- mistune=0.8.4=py36h7b6447c_0
64+
- mkl=2019.3=intel_199
65+
- mpi=1.0=mpich
66+
- mpich=3.2.1=h26a2512_7
67+
- nbconvert=5.4.1=py36_3
68+
- nbformat=4.4.0=py36_0
69+
- notebook=5.7.8=py36_0
70+
- numba=0.44.0dev0=np116py36hf484d3e_129
71+
- numexpr=2.6.8=py36_2
72+
- numpy=1.16.2=py36h7fc5cc3_0
73+
- openblas=0.3.5=ha44fe06_0
74+
- openssl=1.0.2r=h7b6447c_0
75+
- pandas=0.24.1=py36_3
76+
- pandoc=2.2.3.2=0
77+
- pandocfilters=1.4.2=py36_1
78+
- parquet-cpp=1.5.1=3
79+
- parso=0.3.4=py36_0
80+
- pcre=8.43=he6710b0_0
81+
- pexpect=4.6.0=py36_0
82+
- pickleshare=0.7.5=py36_0
83+
- pip=10.0.1=py36_0
84+
- prometheus_client=0.6.0=py36_0
85+
- prompt_toolkit=2.0.9=py36_0
86+
- ptyprocess=0.6.0=py36_0
87+
- pyarrow=0.11.1=py36hbbcf98d_1002
88+
- pygments=2.3.1=py36_0
89+
- pyparsing=2.2.0=py36_2
90+
- pyqt=5.9.2=py36h05f1152_2
91+
- pyrsistent=0.14.11=py36h7b6447c_0
92+
- python=3.6.8=6
93+
- python-dateutil=2.6.0=py36_12
94+
- pytz=2018.4=py36_3
95+
- pyzmq=18.0.0=py36he6710b0_0
96+
- qt=5.9.6=h8703b6f_2
97+
- qtconsole=4.4.3=py36_0
98+
- send2trash=1.5.0=py36_0
99+
- setuptools=39.0.1=py36_0
100+
- sip=4.19.8=py36hf484d3e_0
101+
- six=1.11.0=py36_3
102+
- sqlite=3.27.2=2
103+
- tbb=2019.4=intel_199
104+
- tcl=8.6.4=22
105+
- terminado=0.8.1=py36_1
106+
- testpath=0.4.2=py36_0
107+
- tk=8.6.4=28
108+
- tornado=6.0.2=py36h7b6447c_0
109+
- traitlets=4.3.2=py36_0
110+
- wcwidth=0.1.7=py36_0
111+
- webencodings=0.5.1=py36_1
112+
- wheel=0.31.0=py36_3
113+
- widgetsnbextension=3.4.2=py36_0
114+
- xz=5.2.4=h14c3975_1001
115+
- zeromq=4.3.1=he6710b0_3
116+
- zlib=1.2.11=5

tutorial/hpat.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@
708708
"name": "python",
709709
"nbconvert_exporter": "python",
710710
"pygments_lexer": "ipython3",
711-
"version": "3.7.2"
711+
"version": "3.6.8"
712712
}
713713
},
714714
"nbformat": 4,

0 commit comments

Comments
 (0)