You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hdsort-compiled/README.md
+11-35Lines changed: 11 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,14 @@
1
-
# HDsort Compiled Docker Images
1
+
# HDsort Compiled Docker Image
2
2
3
3
This documentation is intended to show how to create a Docker image with Matlab compiled HDsort sorter. The main goal of this project is to avoid the requirement of Matlab Licenses and also abstract the installation and setup steps to run the sorter
4
4
5
5
There are three main steps for generating a functional HDsort docker image:
6
6
1. Compile HDsort as Matlab's Standalone Application
7
-
2. Create a (base) docker image with Matlab Runtime and the compiled application from step 1
7
+
2. Create a base docker image with Matlab Runtime and the compiled application from step 1
8
8
3. Extend the docker image from step 2 for improvements and fixes
9
9
10
+
Steps 1 and 2 are done by `compile.sh` script, while step 3 is done by `build.sh` script
11
+
10
12
## Requirements
11
13
- Packaging a MATLAB Docker image is supported on Linux only
12
14
- Docker
@@ -17,45 +19,19 @@ There are three main steps for generating a functional HDsort docker image:
17
19
- Fuzzy_Logic Toolbox
18
20
- More requirements to be checked and listed...
19
21
20
-
## Compiling HDsort as Matlab's Standalone Application
22
+
## Cloning repositories
21
23
- Git clone or Download HDsort [source code](https://git.bsse.ethz.ch/hima_public/HDsort)
22
-
- Open Matlab
23
-
- Set Matlab's workspace folder to `/path/to/spikeinterface-dockerfiles/hdsort-compiled`
24
-
- Run `mcc` command with `hdsort_compiled.m` as base and adding path to git cloned HDSort:
25
-
```matlab
26
-
>> mcc -m hdsort_compiled.m -a <git-cloned-path>/HDsort
27
-
```
24
+
- Git clone or Download spikeinterface [source code](https://github.com/SpikeInterface/spikeinterface)
28
25
29
26
## Generating Base Docker Image
30
-
- To generate the base docker image (called `hdsort-matlab-base`) with the compiled application, run the following command in Matlab console:
Copy file name to clipboardExpand all lines: ironclust-compiled/README.md
+9-32Lines changed: 9 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This documentation is intended to show how to create a Docker image with Matlab
4
4
5
5
There are three main steps for generating a functional ironclust docker image:
6
6
1. Compile Ironclust as Matlab's Standalone Application
7
-
2. Create a (base) docker image with Matlab Runtime and the compiled application from step 1
7
+
2. Create a base docker image with Matlab Runtime and the compiled application from step 1
8
8
3. Extend the docker image from step 2 for improvements and fixes
9
9
10
10
## Requirements
@@ -21,42 +21,20 @@ There are three main steps for generating a functional ironclust docker image:
21
21
22
22
Licenses for Matlab and toolboxes are needed only for compiling ironclust as Standalone Application and to generate the base Docker image. After this process, no license will be required, either to extend the base image or to run the sorter.
23
23
24
-
## Compiling Ironclust as Matlab's Standalone Application
24
+
## Cloning repositories
25
25
- Git clone or Download ironclust [source code](https://github.com/flatironinstitute/ironclust.git)
26
-
- Open Matlab
27
-
- Set Matlab's workspace folder to: `<git-cloned-path>/ironclust/matlab`
28
-
- In Matlab console run:
29
-
```
30
-
>> mcc -m p_ironclust.m -a <git-cloned-path>/ironclust/matlab/*.* -a <git-cloned-path>/ironclust/matlab/prb -a <git-cloned-path>/ironclust/matlab/prb_json
31
-
```
26
+
- Git clone or Download spikeinterface [source code](https://github.com/SpikeInterface/spikeinterface)
27
+
32
28
33
29
## Generating Base Docker Image
34
-
- To generate the base docker image (called `ironclust-matlab-base`) with the compiled application, run the following command in Matlab console:
-[Optional] Files generated by Matlab Compiler can be deleted:
40
-
- In your terminal, go to the folder for this project:
41
-
```
42
-
$ cd <git-cloned-path>/ironclust/
43
-
```
44
-
- Run `rm` command:
45
-
```
46
-
$ rm -r \
47
-
matlab/includedSupportPackages.txt \
48
-
matlab/ironclust-matlab-basedocker \
49
-
matlab/mccExcludedFiles.log \
50
-
matlab/p_ironclust \
51
-
matlab/readme.txt \
52
-
matlab/requiredMCRProducts.txt \
53
-
matlab/run_p_ironclust.sh \
54
-
matlab/unresolvedSymbols.txt
55
-
```
56
-
57
-
58
36
## Extending Base Image/Creating final image
59
-
The Dockerfile in this folder applies some fixes and updates to the base image generated automatically by Matlab in order to properly run ironclust:
37
+
The Dockerfile in this folder applies some fixes and updates to the base image in order to properly run ironclust:
60
38
61
39
- In your terminal, go to the folder for this project:
62
40
```
@@ -68,7 +46,6 @@ $ cd /path/to/spikeinterface-dockerfiles/ironclust-compiled
68
46
$ source build.sh
69
47
```
70
48
71
-
72
49
## Running a container
73
50
74
51
-[nvidia-container-toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#setting-up-nvidia-container-toolkit) is required to run a docker with GPU capabilities
Copy file name to clipboardExpand all lines: kilosort_no_license/README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,12 +18,14 @@ This documentation is intended to show how to create a Docker image with Matlab
18
18
19
19
There are four main steps to generate a functional kilosort-compiled docker image:
20
20
21
-
1. Kilosort Setup
21
+
1.Compile Kilosort CUDA files
22
22
2. Compile Kilosort as Standalone Application
23
23
3. Create a (base) docker image with Matlab Runtime and the compiled application from step 2
24
24
4. Extend the docker image from step 3 for improvements and fixes
25
25
26
-
Detailed descriptions for each step are documented in `README.md` for each supported kilosort version folder (`kilosort-compiled`, `kilosort2-compiled` and so on)
26
+
Steps 1 to 3 are done by `compile.sh` script, while step 4 is done by `build.sh` script.
27
+
28
+
Steps to run scripts and create the images are documented in `README.md` for each supported kilosort version folder (`kilosort-compiled`, `kilosort2-compiled` and so on)
27
29
28
30
Licenses for Matlab and toolboxes are needed only for compiling kilosort as Standalone Application and to generate the base Docker image. After this process, no license will be required, either to extend the base image or to run the sorter.
0 commit comments