Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.48 KB

faq.md

File metadata and controls

37 lines (26 loc) · 1.48 KB

Q: gcc failed with this error:

gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/envs/comp47350py38/include -arch x86_64 -I/opt/anaconda3/envs/comp47350py38/include -arch x86_64 -I/opt/anaconda3/envs/comp47350py38/include/python3.8 -c mrsqm_wrapper.cpp -o build/temp.macosx-10.9-x86_64-3.8/mrsqm_wrapper.o -Wall -Ofast -g -std=c++11 -mfpmath=both -ffast-math
error: unknown FP unit 'both'
error: command 'gcc' failed with exit status 1

A: Go to file mrsqm/mrsqm/setup.py and in line " extra_compile_args=["-Wall", "-Ofast", "-g", "-std=c++11", , "-mfpmath=both", "-ffast-math"]," remove the option , "-mfpmath=both".

Q: fftw3 error during compilation:

//usr/local/lib/libfftw3.a(assert.o): relocation R_X86_64_PC32 against symbol `stdout@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
    /home/thachln/anaconda3/envs/vistamilk/compiler_compat/ld: final link failed: bad value
    collect2: error: ld returned 1 exit status
    error: command 'g++' failed with exit status 1

A: Reinstall fftw3 following this guide http://micro.stanford.edu/wiki/Install_FFTW3.

Q: Does MrSQM work on Google Colab ?

A: Yes. The following steps should be sufficient to install MrSQM on Google Colab.

#Install fftw3:
!apt-get install libfftw3-dev libfftw3-doc

#Clone and install mrsqm:
!git clone https://github.com/mlgig/mrsqm.git
%cd mrsqm/mrsqm
!pip install .