When running 127 jobs in parallel on joplin for preprocessing, this error occurs in gradunwarp
for some subjects:
MemoryError: Unable to allocate 208. KiB for an array with shape (208, 256) and data type float32
gradunwarp
uses a lot of memory as discussed here
Solution:
I trided reducing the number of jobs running in parallel with sct_run_batch
-> with the flag -jobs 120
, everything went smoothly. I would conitnue this way for future preprocessing of the rest of the Uk biobank dataset. Not sure how to add this to the README; maybe put a warning or something like that because this solution is for this case specifically.