Skip to content

[RTM] Resource annotation #746

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Oct 26, 2017
Merged

[RTM] Resource annotation #746

merged 16 commits into from
Oct 26, 2017

Conversation

effigies
Copy link
Member

@effigies effigies commented Oct 9, 2017

Back-burner work, but we should be specifying resources better. I'm consistently seeing my machine dip into swap while claiming it has 13/14 GiB of memory free. (Thanks to @oesteban for the status updates that make this clear.)

This starts with:

Todo:

  • Add memory annotation to a lot more nodes

@oesteban
Copy link
Member

oesteban commented Oct 9, 2017

This PR will likely also make the changes necessary to close #712

@effigies
Copy link
Member Author

effigies commented Oct 9, 2017

Yeah. And I'm hoping your profiling work can give us good estimates of the memory usage that we can just run through and plug in.

@oesteban oesteban added this to the Phase II milestone Oct 11, 2017
@oesteban
Copy link
Member

I can confirm lots of MemoryErrors for specific datasets on LS5 (less memory than Stampede2)

@oesteban
Copy link
Member

I'm brewing a new singularity image with these annotations to run on ls5.

@oesteban oesteban changed the title [WIP] Resource annotation [RTM] Resource annotation Oct 25, 2017
@oesteban
Copy link
Member

Some nodes might be overestimated, but that should be ok. Let's merge this and see what happens.

Copy link
Member Author

@effigies effigies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few num_threads inputs set that could be left to the nodes.

@@ -299,7 +298,7 @@ def init_bbreg_wf(use_bbr, bold2t1w_dof, omp_nthreads, name='bbreg_wf'):
mri_coreg = pe.Node(
MRICoregRPT(dof=bold2t1w_dof, sep=[4], ftol=0.0001, linmintol=0.01,
num_threads=omp_nthreads, generate_report=not use_bbr),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can drop num_threads here.

MultiApplyTransforms(interpolation="LanczosWindowedSinc", float=True),
name='bold_to_mni_transform', mem_gb=8, n_procs=omp_nthreads)
# bold_to_mni_transform.terminal_output = 'file'
=======
bold_to_mni_transform = pe.Node(MultiApplyTransforms(
interpolation="LanczosWindowedSinc", float=True, num_threads=omp_nthreads,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is re-adding num_threads to bold_to_mni_transform.interface.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about that. Lazy merge with badly resolved conflicts.

# bold_to_t1w_transform.terminal_output = 'file' # OE: why this?
bold_to_t1w_transform = pe.Node(MultiApplyTransforms(
interpolation="LanczosWindowedSinc", float=True, copy_dtype=True,
num_threads=omp_nthreads),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

num_threads re-added to bold_to_t1w_transform.interface.

@effigies
Copy link
Member Author

Let me just push a quick fix...

@oesteban oesteban merged commit fe8ef5d into nipreps:master Oct 26, 2017
@effigies effigies deleted the fix/resources branch October 26, 2017 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants