GithubHelp home page GithubHelp logo

unsupported compiler about broccoli HOT 9 CLOSED

wanderine avatar wanderine commented on August 17, 2024
unsupported compiler

from broccoli.

Comments (9)

wanderine avatar wanderine commented on August 17, 2024

I mostly develop with Centos 6.4, which has an older gcc. Fedora and Ubuntu often have very new versions, which often causes problems. See the beta testing folder for precompiled examples, or remove the mex command in the m-file.

You have to download nifti Matlab (http://research.baycrest.org/~jimmy/NIfTI/), in order to open nifti files in Matlab, and change addpath to where you stored nifti Matlab. More information is given in the instructions in the beta testing folder, https://github.com/wanderine/BROCCOLI/blob/master/beta_testing/BROCCOLI_beta_testing.pdf

The basepath for the beta testing folder does not need to be changed. For other folders, you first have to download data from the 1000 functional connectomes project (http://fcon_1000.projects.nitrc.org/fcpClassic/FcpTable.html) or OpenfMRI (https://openfmri.org/). Then simply change basepath to where you have saved these datasets.

from broccoli.

0xd5dc avatar 0xd5dc commented on August 17, 2024

Thank you for the response; I can run the beta-test properly.
But I am having trouble with OpenfMRIExample, think I the compiler didn't pick the correct path for BROCCOLI_LIB
so according to this code

mex ../code/Matlab_Wrapper/FirstLevelAnalysis.cpp -lOpenCL -lBROCCOLI_LIB

Did you install BROCCOLI_LIB somewhere or just used it as a included local folder?

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

In my case libBROCCOLI_LIB.a is stored at -L/home/andek/cuda-workspace/BROCCOLI_LIB/Release

If you look at the file FirstLevelAnalysis_RhymeJudgment.m under OpenfMRIExamples you will see the full mex command

mex ../code/Matlab_Wrapper/FirstLevelAnalysis.cpp -lOpenCL -lBROCCOLI_LIB -I/usr/local/cuda-5.0/include/ -I/usr/local/cuda-5.0/include/CL -L/usr/lib -I/home/andek/Research_projects/BROCCOLI/BROCCOLI/code/BROCCOLI_LIB/ -L/home/andek/cuda-workspace/BROCCOLI_LIB/Release -I/home/andek/Research_projects/BROCCOLI/BROCCOLI/code/BROCCOLI_LIB/Eigen/

I have now uploaded libBROCCOLI_LIB.a under https://github.com/wanderine/BROCCOLI/tree/master/code/BROCCOLI_LIB

from broccoli.

0xd5dc avatar 0xd5dc commented on August 17, 2024

where can I find /highres001_brain.nii.gz and /highres001_brain.nii.gz?

../code/BROCCOLI_LIB/Release/libBROCCOLI_LIB.a: file not recognized: File format not recognized
collect2: ld returned 1 exit status

mex: link of ' "FirstLevelAnalysis.mexa64"' failed.

so which Broccoli have you installed? I think I need compile it for my platform(ubuntu 12.04 x86_64).

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

You have to download the RhymeJudgment dataset from the OpenfMRI homepage if you want to run FirstLevelAnalsis_RhymeJudgment.m

https://openfmri.org/dataset/ds000003

If you need to recompile the library you can do it with Nvidia Nsight

https://developer.nvidia.com/nsight-eclipse-edition

from broccoli.

0xd5dc avatar 0xd5dc commented on August 17, 2024

Would you please provide a Makefile for BROCCOLI_LIB? I would be much easier for all Linux users.

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

OK, but it might take some time.

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

I have now added the script compile_broccoli_library.sh under https://github.com/wanderine/BROCCOLI/tree/master/code/BROCCOLI_LIB

It is not a makefile, but a makefile is a bit overkill for this project with only one cpp file

Note that I use the nvcc compiler, which you get if you download the CUDA SDK

https://developer.nvidia.com/cuda-downloads

Also note that you need some header files for OpenCL, these are included in the CUDA SDK

from broccoli.

0xd5dc avatar 0xd5dc commented on August 17, 2024

Thanks, I think I can create a makefile based on the sh script.

from broccoli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.