-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathinstall_log.txt
146 lines (95 loc) · 3.55 KB
/
install_log.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
Download miniconda to provide the conda package manager from
https://conda.io/miniconda.html
(64-bit linux bash installer)
Ran the install script from my home/workshops/Valters folder:
~/Valters$ bash Miniconda3-latest-Linux-x86_64.sh
Accept the licence and all the default install paths
~/Valters$ export PATH=/home/workshops/miniconda3/bin:$PATH
Follow the instructions provided by the RSE team to install the Intel python distribution
https://software.intel.com/en-us/articles/using-intel-distribution-for-python-with-anaconda
~/Valters$ conda update conda
~/Valters$ conda config --add channels intel
~/Valters$ conda create -n idp intelpython3_core python=3
## ACTIVATE THE CONDA ENVIRONMENT
~/Valters$ source activate idp
Now install the workshop specific packages:
~/Valters$ conda install cython mpi4py numba
Added these just in case people prefer them for note taking:
~/Valters$ conda install ipython jupyter matplotlib
Some C and C++ compilers, and an MPI implementation will also be needed:
~/Valters$ sudo apt-get install gcc g++ openmpi-bin
Some utilities to install for people's favourite editors etc.:
~/Valters$ sudo apt-get install vim emacs vim-gtk git
All the packages installed with conda are listed in package-list.txt
This was created with:
conda list -n idp --export > package-list.txt
## TESTING
==========
## Running all the tests at once
Run the bash script:
./run_all_workshop_tests.sh
It should produce the output in the test_correct_output_log.txt
i.e.
(idp) workshops@RSE2018-workshops:~/Valters$ ./run_all_workshop_tests.sh
running build_ext
[2, 3, 5, 7, 11, 13, 17, 19, 23, 29]
running build_ext
435
pi is approximately 3.1415927369231262, error is 0.0000000833333331
main line
module name: __main__
parent process: 19099
process id: 19100
function f
module name: __main__
parent process: 19100
process id: 19101
hello bob
3.1415927
[0, -1, -2, -3, -4, -5, -6, -7, -8, -9]
[[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
...
[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]]
## Running individual tests
# Testing the Multiprocessing module (and Jupyter notebooks)
In the test_multiprocessing directory, run "run_tests.sh". It should print out:
(idp) workshops@RSE2018-workshops:~/Valters/test_multiprocessing$ python simple.py
main line
module name: __main__
parent process: 9019
process id: 18483
function f
module name: __main__
parent process: 18483
process id: 18484
hello bob
3.1415927
[0, -1, -2, -3, -4, -5, -6, -7, -8, -9]
# Testing Cython
In the test_cython_basic directory, run the "run_tests.sh" script. It should print out:
(idp) workshops@RSE2018-workshops:~/Valters/test_cython_basic$ ./run_test.sh
running build_ext
[2, 3, 5, 7, 11, 13, 17, 19, 23, 29]
# Testing Cython with openmp
In the test_cython_openmp directory, run the "run_tests.sh" script. It should print out:
(idp) workshops@RSE2018-workshops:~/Valters/test_cython_openmp$ ./run_tests.sh
running build_ext
435
# Testing mpi4py
In the test_mpi4py directory, run the "run_tests.sh" script. You should get the following output (or very similar to...):
(idp) workshops@RSE2018-workshops:~/Valters/test_mpi4py$ ./run_tests.sh
pi is approximately 3.1415927369231262, error is 0.0000000833333331
# Testing numba
In the test_numba directory, run the "run_tests.sh" script. It should print out:
(idp) workshops@RSE2018-workshops:~/Valters/test_numba$ ./run_tests.sh
[[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
...
[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]]