-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.txt
279 lines (191 loc) · 4.41 KB
/
readme.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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
# OpenCL SNP Simulation
An OpenCL implementation of a simulator for Spiking Neural Systems.
The project uses OpenCL 1.2 libraries on top of C++14.
Limitations
------
- Non-determenism is not yet supported
- Built-in Environment not yet supported
- This means you have still have to create an "Environment neuron" to simulate an environment
- As an effect, input and output spike train not yet supported
- Tested upto input with 2752 neurons and 4032 rules
Dependencies
------
This project is hardware dependent so machines with different GPUs have different dependencies.
### GENERAL DEPENDENCIES
- Git
- OpenCL ICD Loader
- OpenCL headers
- C++ Boost library
- GNU Make
- GNU g++
- Google re2
### MACHINES WITH NVIDIA CARD
- nVidia drivers for the card in your machine
- CUDA SDK
- opencl-nvidia (Needed for execution) - cuda (Note: Nvidia implementation only currently supports OpenCL 1.1)
### MACHINES WITH ATI CARD
- ATI drivers for the card in your machine
- AMD App SDK
- opencl-catalyst or opencl-mesa
- amdapp-sdk
Software Versions
------
### Linux Distributions
- git 2.7.0
- g++ 5.3.0
- boost 1.6.0
- make 4.1
- cuda 8.0
### Windows
- git 2.7.0
- g++ 4.8.1
- boost 1.55.0
- cuda 8.0
Installing Dependencies
------
### Arch-Linux and Arch-based Linux Distributions
1. Update repositories
```bash
$ sudo pacman -Syu
```
2. Install packer
```
$ sudo pacman -S wget expac jshon
$ mkdir packer
$ cd packer
$ sudo wget https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=packer
$ mv PKGBUILD?h=packer PKGBUILD
$ makepkg
$ sudo pacman -U packer-*********-*-any.pkg.tar.xz
$ cd ..
$ sudo rm -dR packer
```
3. Install gcc
```bash
$ sudo pacman -S gcc
```
4. Install and configure git
```bash
$ sudo pacman -S git
$ git config --global user.name "your name"
$ git config --global user.email your@email.com
```
5. Install OpenCL headers and ICD Loaders
``` bash
$ sudo pacman -S ocl-icd opencl-headers
```
6. Install GPU dependent dependencies
AMD
```bash
$ sudo packer -S opencl-catalyst amdapp-sdk
```
NVIDIA
```bash
$ sudo pacman -S opencl-nvidia cuda
```
7. Install boost
```bash
$ sudo pacman -S boost
```
8. Install re2
```bash
$ sudo pacman -S re2-git
```
### Ubuntu and Ubuntu based systems
1. Update apt repositories
```
$ sudo apt-get update
```
2. Install git
```
$ sudo apt-get install git
```
3. Install boost
```
$ sudo apt-get install libboost-all-dev
```
4. Install boost compute: https://boostorg.github.io/compute/boost_compute/getting_started.html
5. Install google re2 https://github.com/google/re2/wiki/Install
6. Install opencl icd headers
```
$ sudo apt install ocl-icd-opencl-dev
```
7. Install [AMD App SDK](http://developer.amd.com/tools-and-sdks/opencl-zone/amd-accelerated-parallel-processing-app-sdk/) or [CUDA SDK](http://docs.nvidia.com/cuda/cuda-installation-guide-linux/)
### Windows
1. Install the latest driver for your GPU
2. Install and configure git
1. Open git bash
2. Set global variables
```bash
> git config --global user.name "your name"
> git config --global user.email your@email.com
```
3. Install OpenCL SDK
1. For NVIDIA install CUDA SDK
2. For AMD install AMD App SDK
4. Install MinGW
1. Set destination folder as "C:\MinGW" (default)
2. On installer select
* mingw-developer-toolkit
* mingw32-base
* mingw32-gcc-g++
* msys-base
* msys-make (optional)
3. Add C:\MinGW\bin to PATH environment variable
5. Download Boost 1.60 for windows then extract to C:\
1. Rename folder to boost
2. cd into boost folder
```
> cd C:\boost
```
3. Build boost
```
> bootsrap mingw
> b2 toolset=gcc
````
Building
------
### On Linux Distros
1. CD into project root
2. Build the project using make
```bash
$ make
```
### On Windows
1. CD into project root
2. CD into scripts
```
> cd scripts
```
3. Run compile.bat
```
> compile
```
Running
------
### On Linux Distros
1. cd into bin from project root
```bash
$ cd bin
```
2. For Parallel
```bash
$ ./oclsnp <input_binary> [--o output_file] [--txt | --silent]
```
3. For Linear
```bash
$ ./linsnp <input_binary> [--o output_file] [--txt | --silent]
```
### On Windows
1. cd into bin from project root
```
> cd bin
```
2. For Parallel
```
> oclsnp <input_binary>
```
3. For Linear
```
> linsnp <input_binary>
```