Differences between revisions 8 and 9
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#pragma section-numbers on
Line 2: Line 3:

<<TableOfContents(3)>>
Line 5: Line 8:
 * newer respository, eg git
   * source only checkout which excludes all distribution data. For faster and thinner local builds.
=== Newer respository ===

 * evaluate DVCS like git. if not something relatively modern like SVN which lets you do admin operations easily unlike CVS.
 * source only checkout which excludes all distribution data. For faster and thinner local builds.

=== CMake building ===
Line 8: Line 16:

=== Third-Party Packages ===
Line 9: Line 20:
 * evaluate necessity of 3rd-party packages, eg PetSc

=== Source Code cleanups ===
 
Line 10: Line 25:
  * remove all #if 0 code and duplicated stuff   * remove all #if 0 code and duplicated stuff
Line 13: Line 28:

=== GPU Transition ===
Line 14: Line 32:

=== recon-all ===
Line 15: Line 35:
 * evaluate necessity of 3rd-party packages, eg PetSc
=== Installation details ===
Line 18: Line 39:

=== Scripting language support ===

First phase is to wrap IO and utils so that it's possible for everyone to write scripts (Python, Numpy) in FreeSurfer instead of adding binaries to the source distribution. evaluate Cython as possible means.

When done properly, instead of adding a directory ( by mimicking the dummy/ project we have ) and toying with the Autotools. Once can simply write a Python script like following:

{{{
import fs.utils as u
import fs.io as io

im = io.MRIread('test.mgz')
m = u.MRImean(im, 5)
}}}

1. NextGenCode

a grab-bag of notes on what we'd like to see in the ideal freesurfer source code environment, and runtime

1.0.1. Newer respository

  • evaluate DVCS like git. if not something relatively modern like SVN which lets you do admin operations easily unlike CVS.
  • source only checkout which excludes all distribution data. For faster and thinner local builds.

1.0.2. CMake building

  • cmake replacing autotools as the build enviro

1.0.3. Third-Party Packages

  • one-stop-shopping build of all 3rd party packages --> like neurodebian

  • evaluate necessity of 3rd-party packages, eg PetSc

1.0.4. Source Code cleanups

  • continued source code cleanup:
    • remove all #if 0 code and duplicated stuff
  • source code documentation
  • more low-level unit tests

1.0.5. GPU Transition

  • memory structures changed to allow easier cpu (and gpu) parallelization (see rge notes)

1.0.6. recon-all

  • complete replacement of recon-all with ????

1.0.7. Installation details

  • eliminate clutter in $FREESURFER_HOME ( for the installation ).
    • for instance, the distribution data after installation should be in $FREESURFER_HOME/data. GEMS, the newest FS package, already uses this. It's data is in $FREESURFER_HOME/data/GEMS

1.0.8. Scripting language support

First phase is to wrap IO and utils so that it's possible for everyone to write scripts (Python, Numpy) in FreeSurfer instead of adding binaries to the source distribution. evaluate Cython as possible means.

When done properly, instead of adding a directory ( by mimicking the dummy/ project we have ) and toying with the Autotools. Once can simply write a Python script like following:

import fs.utils as u
import fs.io as io

im = io.MRIread('test.mgz')
m = u.MRImean(im, 5)

NextGenCode (last edited 2021-05-10 08:27:20 by DevaniCordero)