Skip to content
forked from sccn/amica

Code for AMICA: Adaptive Mixture ICA with shared components

Notifications You must be signed in to change notification settings

swift464046765/amica

 
 

Repository files navigation

Amica

Code for AMICA: Adaptive Mixture ICA with shared component

TO COMPILE WITH INTEL FORTRAN ON MAC

  1. Install Intel Fortran compiler for Mac/Linux (free demo). See https://software.intel.com/en-us/intel-parallel-studio-xe

  2. Compile MPICH2 setting environmental vars CC, CXX, FC, and F77 to icc and ifort. Set $FBIN to Intel Fortran bin directory.

    i) Download the mpich-3.2 code from: http://www.mpich.org/static/downloads/3.2/mpich-3.2.tar.gz

    ii) Compile mpich-3.2:

      $ cp /Users/$USER/downloads/mpich-3.2.tar.gz .   
      $ setenv CC $FBIN/icc
      $ setenv CXX $FBIN/icc
      $ setenv F77 $FBIN/ifort
      $ setenv FC $FBIN/ifort   
      $ tar xvf mpich-3.2.tar.gz   
      $ cd mpich-3.2   
      $ ./configure --prefix=/Users/$USER/mpich-3.2-install   
      $ make   
      $ make install
    
  3. Compile Amica with the command:

      $ ~/mpich-3.2-install/bin/mpif90 -L/Users/$USER/mpich-3.2-install/lib/ -I/Users/$USER/mpich-3.2-install/include/ -qopenmp -mkl -static-intel -O3 -fpp -DMKL amica15.f90 funmod2.f90 -o amica15mac
    
  4. Test:

    i) Download Sample EEG Data (Memorize.fdt and amicadefs.param) from: https://sccn.ucsd.edu/~jason/amica_web.html

    ii) Test binary:

      $ ./amica15mac ./amicadefs.param
    

TO COMPILE WITH INTEL FORTRAN ON WINDOWS

  1. Install Intel Fortran compiler for Windows.

  2. Install MPICH2 library (fmpich2.lib) for Windows.

  3. In a cmd.exe windows: Run compilervars.bat with argument (e.g. intel64):

      > "c:\Program Files (x86)\Intel\Composer XE 2011 SP1\bin\compilervars.bat" intel64
    
  4. Compile Amica with the command (/F sets the stack size):

      > ifort /Qopenmp /Qmkl /F2147483648 /DMKL /fpp  /O3 /exe:amica15mkl.exe funmod2.f90 amica15.f90 fmpich2.lib
    
  5. Test:

      > .\amica15mkl.exe .\amicadefs.param
    

TO COMPILE WITH INTEL FORTRAN ON UBUNTU

  1. Install Intel Fortran compiler for Linux.

  2. Compile MPICH2 setting environmental vars CC, CXX, FC, and F77 to icc and ifort.

  3. Compile Amica with the command:

      $ /home/jason/mpich2-3.2-install/bin/mpif90 -I/opt/intel/mkl/include/ -fpp -qopenmp -O3 -mkl -static -static-intel -DMKL funmod2.f90 amica15.f90 -o amica15ub
    
  4. Test:

      $ ./amica15ub ./amicadefs.param
    

About

Code for AMICA: Adaptive Mixture ICA with shared components

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Fortran 65.6%
  • MATLAB 34.4%