-
Notifications
You must be signed in to change notification settings - Fork 8
Home
These notes are intended to help build NamicExternalProjects (NEP). NEP is a fast developing project, and these notes are almost certainly out of date.
The following instructions work on 2016-06-01, Before building NEP, you will need to install several dependencies and ensure that you are using an up-to-date version of cmake and the gcc compiler.
- Go to Anaconda's download page and find the Linux x86 64-bit distribution of the desired version (2.7 is recommended, but 3.4 should also work)
- Right click on the download link and select "copy link location"
- In terminal, type
wget $downloadpathwhere $downloadpath is the pasted link location. - In terminal, type
bash $filename - Follow the on-screen commands and allow the program to build. This will take a few minutes.
-
Create a python 2.7 environment using anaconda
conda create --name py27 python=2.7 -
Activate the python 2.7 environment that you created.
source activate py27 -
To check whether you have the correct version running, use the following command:
python --version
- Use pip to install docopt
pip install docopt - Use pip to install future
pip install future - Use pip to install prov
pip install prov - Use pip to install nipype
pip install nipypeAlternatively: If nipype fails to find the correct shared libraries, you can instead install it with the following commands:git clone git://github.com/nipy/nipype.gitcd nipypeeasy_install nipype
- Go to https://www.threadingbuildingblocks.org/download and find the Linux distribution of the desired version (4.4 or greater)
- Right click on the download link and select "copy link location"
- In terminal, type
wget $downloadpathwhere $downloadpath is the pasted link location. - Unzip the downloaded file using the
tar -xzf $filenamecommand
- Go to https://cmake.org/download/ and find the Linux x86_64 distribution of the desired version (3.2 or later)
- Right click on the download link for the '.sh' file and select "copy link location"
- In terminal, type
wget $downloadpathwhere $downloadpath is the pasted link location. - In terminal, type
bash $filename - Open your .bashrc file and add the cmake installation to $PATH as follows:
PATH=$cmakebindirectory:$PATH
- Update the version of your .bashrc file that is being used by your terminal session using the following command:
source ~/.bashrc
In order to build NEP, you will need to use a more recent version than the default gcc compiler on NEON. In order to use a newer version, edit your .bashrc file to include the following:
module load gcc/4.8.2
export CC=$(which gcc)
export CXX=$(which g++)
Then, update the version of your .bashrc file that is being used by your terminal session using the following command:
source ~/.bashrc
- In terminal, type 'git clone https://github.com/BRAINSia/NAMICExternalProjects.git' to download the necessary files
- Create a build folder and cd into it with the following commands:
mkdir -p NEP-11cd NEP-11 - Run the following command:
CC=$(which gcc) CXX=$(which g++) cmake -DCMAKE_CXX_STANDARD:STRING=11 -DTBB_ROOT:PATH=${TBB_UNCOMPRESS_DIRCTORY}/tbb44_20151115oss/ ../NAMICExternalProjects/
OPTIONAL: You may be able to use one of the processing nodes, rather than the head node in order to compile the project in parallel using the following commands:
qlogin -pe smp 16 -q UI
make -j 16
However, depending on permissions and load, this may not be possible.
- Run
make*This may take several hours