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: ironclust-compiled/README.md
+30-14Lines changed: 30 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,31 +21,46 @@ 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
-
25
24
## Compiling Ironclust as Matlab's Standalone Application
26
25
- Git clone or Download ironclust [source code](https://github.com/flatironinstitute/ironclust.git)
27
26
- Open Matlab
28
-
- Set Matlab's workspace folder to: `<local-path-to-project>/ironclust/matlab`
29
-
- Open Matlab's `Application Compiler` (located in `APPS` Tab)
30
-
- Click on `+` sign in Add Main File, Select `p_ironclust.m` and Click Open
31
-
- In the section `Files required for your application to run`, click on `+` sign button and Select all files (some might not be needed, but we haven't tested removing them), also select the following folders: `prb` and `prb_json`. Click Open
32
-
- On Application Compiler window, Click on `Package`, Save the `p_ironclust.prj` file and wait for Matlab to Compile the project. A folder (named `p_ironclust` by default) with compiled files will be generated.
33
-
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
+
```
34
32
35
33
## Generating Base Docker Image
36
-
- Close `Package` and `Application Compiler` windows
37
-
- In Matlab console run:
34
+
- To generate the base docker image (called `ironclust-matlab-base`) with the compiled application, run the following command in Matlab console:
This command will create an image called `ironclust-matlab-base` to be used in the next step
38
+
39
+
-[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
+
42
57
43
58
## Extending Base Image/Creating final image
44
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:
45
60
46
-
- In your terminal, go to the current folder:
61
+
- In your terminal, go to the folder for this project:
47
62
```
48
-
$ cd <local-path-to-project>/spikeinterface-dockerfiles/ironclust-compiled
63
+
$ cd /path/to/spikeinterface-dockerfiles/ironclust-compiled
49
64
```
50
65
51
66
- Run build script:
@@ -56,6 +71,8 @@ $ source build.sh
56
71
57
72
## Running a container
58
73
74
+
-[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
0 commit comments