Skip to content

installation with NFFT on a cluster as a non-sys admin #26

@lmorabit

Description

@lmorabit

Step 1: NFFT
git clone https://github.com/NFFT/nfft
Following the installation instructions provided, there are a couple things to watch out for. You need to run configure with openMP enabled, and if you're installing on a cluster then you probably want to do a local installation. This should do the trick:
./configure --enable-all --enable-openmp --prefix=/absolute/path/to/nfft

Step 2: pyNFFT
If you don't have NFFT installed system wide, then you have to run setup.py like this:
ttfamily python setup.py build_ext -I /absolute/path/to/nfft/include -L /absolute/path/to/nfftl/lib -R /absolute/path/to/nfft/lib

However, there is an issue which you have to fix ( https://github.com/ghisvail/pyNFFT/issues/56 ). To do this open pynfft/util.c and either comment out or remove the line #include "nfft3util.h"
You'll probably also have to use the --inplace option while running python setup.py build_ext and then the --user option while running python setup.py install unless you're a system administrator. Note that if the install fails because it can't find the site-packages directory in your installation directory, just add it to your $PYTHONPATH and run the install again.

Step 3: eht-imaging
git clone https://github.com/achael/eht-imaging cd eht-imaging pip install . --user

NB: if you get an error about an unexpected keyword "overwrite" then you need to modify the ehtim/io/save.py script to update hdulist.writeto(fname, overwrite=True) to hdulist.writeto(fname, clobber=True))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions