Skip to content
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

Problems compiling fcma-toolbox #4

Open
acamargofb opened this issue Jul 21, 2017 · 6 comments
Open

Problems compiling fcma-toolbox #4

acamargofb opened this issue Jul 21, 2017 · 6 comments

Comments

@acamargofb
Copy link

I am having problems compiling the fcma-toolbox
I did the following:

  1. sudo cmake CMakeList.txt
  2. sudo make
    and I got the following errors:
    ..
    .
    .
    [ 82%] Building CXX object CMakeFiles/FCMA.dir/src/FisherScoring.cc.o
    [ 86%] Building CXX object CMakeFiles/FCMA.dir/src/LibSVM.cc.o
    [ 91%] Building CXX object CMakeFiles/FCMA.dir/src/main.cc.o
    [ 95%] Building CXX object CMakeFiles/FCMA.dir/src/Marginal_Scheduler.cc.o
    [100%] Linking CXX executable FCMA
    CMakeFiles/FCMA.dir/src/Scheduler.cc.o: In function DoSlave(int, int, trial_data_t*, trial_data_t*, Task, trial_t*, int, int, int, int, int)': Scheduler.cc:(.text+0x124): undefined reference to ompi_mpi_comm_world'
    Scheduler.cc:(.text+0x12b): undefined reference to ompi_mpi_int' Scheduler.cc:(.text+0x189): undefined reference to MPI_Recv'
    Scheduler.cc:(.text+0x190): undefined reference to MPI_Wtime' Scheduler.cc:(.text+0x1ec): undefined reference to MPI_Wtime'
    Scheduler.cc:(.text+0x1fd): undefined reference to ompi_mpi_float' Scheduler.cc:(.text+0x221): undefined reference to MPI_Send'
    Scheduler.cc:(.text+0x23e): undefined reference to MPI_Send' Scheduler.cc:(.text+0x249): undefined reference to ompi_mpi_float'
    Scheduler.cc:(.text+0x25f): undefined reference to MPI_Send' Scheduler.cc:(.text+0x2e9): undefined reference to MPI_Wtime'
    Scheduler.cc:(.text+0x2fa): undefined reference to ompi_mpi_float' Scheduler.cc:(.text+0x321): undefined reference to MPI_Send'
    Scheduler.cc:(.text+0x33e): undefined reference to `MPI_Send'
    .
    .
    .

Does somebody know how to fix this issue ?

Have a nice day,

Aldo

@yidawang
Copy link
Member

It looks like that your system doesn't have MPI packages.
I would recommend you check out the FCMA component of BrainIAK, which has better support and should be easier to install and run.

@acamargofb
Copy link
Author

Do you know or someone how to solve the issue with the MPI packages. I have installed with sudo apt-get install and also from the code with configure
Best,
Aldo

@yidawang
Copy link
Member

You may check if the MPI library is correctly linked while compiling FCMA. It seems to me that the system doesn't find corresponding libraries even if you have installed somewhere.

@acamargofb
Copy link
Author

Hi Yida Wang:

I solved the problem of compilation, I have to change the CMakeFile.txt, this part:
...
set (EXTRA_LIBS ${EXTRA_LIBS} svmphi svmsimple niftiio znz mpi OpenCL blas openblas boost_system hdf5_serial boost_iostreams z hdf5_serial_hl boost_serialization boost_mpi)

...

Best regards,

Aldo

@acamargofb
Copy link
Author

Hi Yida:

I have a question:

I would like to use this toolbox to do a correlation between tfn and rfn defined like this:

tfn = 'aal_tpl.nii'; % ROI filename
rfn = 'swrfunc.nii'; % resting state fMRI

How can I do that with this toolbox?

Thanks a lot in advance,

Aldo

@yidawang
Copy link
Member

Aldo,

If you would like to leverage HPC to do some correlation computation quickly, I would recommend you to refer to FCMA@BrainIAK again. We have example code for high-performance correlation computation at https://github.com/IntelPNI/brainiak/blob/master/examples/fcma/corr_comp.py

Hope it helps,
Yida

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

No branches or pull requests

2 participants