Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael Krause
tardis-doc
Commits
5fc0309c
Commit
5fc0309c
authored
Dec 17, 2019
by
Michael Krause
🎉
Browse files
matlab: add note for spm defaults
parent
805015b8
Pipeline
#4605
passed with stages
in 37 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
conf.py
View file @
5fc0309c
...
...
@@ -56,9 +56,9 @@ author = 'Michael'
# built documents.
#
# The short X.Y version.
version
=
'3.6.
1
'
version
=
'3.6.
2
'
# The full version, including alpha/beta/rc tags.
release
=
'3.6.
0
'
release
=
'3.6.
2
'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
...
...
index.rst
View file @
5fc0309c
...
...
@@ -4,6 +4,9 @@ Welcome to Tardis's documentation!
Changelog
=========
3.6.2 (17.12.2019)
+ new memory defaults for compiled spm12
3.6.1 (19.09.2019)
+ added minimal howto for Conda
...
...
software/matlab.rst
View file @
5fc0309c
...
...
@@ -191,7 +191,6 @@ Usually users are exporting a number of batch files with the spm gui on their
local machine, change the paths to reflect the names on the Tardis and then
call :program:`run_spm12.sh` with the **batch** parameter for each batch file.
Example: segmentation for a number of nifti images. The file batch.template
contains the string :file:`%%IMAGE%%` as a placeholder so we can easily replace it
with the current image path and create a number of new batches from a single
...
...
@@ -210,9 +209,29 @@ template:
done
Sometimes it ***might be*** necessary to recompile the spm toolbox yourself,
for instance if you need a specific version or if you want to add external
toolboxes to SPM (e.g. cat12).
**SPM Memory**
By default, SPM uses very conservative memory settings. Combined with large
time-series data and a networked file system this can quickly result in
inefficient I/O patterns due to unnecessary data chunking and hasty saving of
intermediate results. (thank you Nir Moneta for finding and reporting this!)
For that reason, our pre-compiled SPM modules now contain these new default values:
.. code-block:: matlab
global defaults;
defaults.stats.maxmem = 2^32; % increases chunk size
defaults.stats.resmem = true; % do not save intermediate steps
If you need different defaults (possibly up to `2^38` / 256GB ), you need to
include a custom :file:`spm_my_defaults.m` and re-compile SPM12.
**(Re-)Compiling**
Sometimes it *might be* necessary to recompile the spm toolbox yourself,
for instance if you need a specific version, if you want to add external
toolboxes to SPM (e.g. cat12) or if you need to change some spm defaults.
.. code-block:: matlab
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment