Giter Site home page Giter Site logo

support for M1 chip (ARM) about iqtree2 HOT 11 CLOSED

iqtree avatar iqtree commented on August 11, 2024 2
support for M1 chip (ARM)

from iqtree2.

Comments (11)

jianshu93 avatar jianshu93 commented on August 11, 2024

Any update for this?

Thanks,

Jianshu

from iqtree2.

bqminh avatar bqminh commented on August 11, 2024

from iqtree2.

jianshu93 avatar jianshu93 commented on August 11, 2024

I have the following error when building from source:

[ 1%] Building CXX object CMakeFiles/kernelavx.dir/tree/phylotreeavx.cpp.o
[ 1%] Building CXX object CMakeFiles/kernelfma.dir/tree/phylokernelfma.cpp.o
[ 1%] Building CXX object CMakeFiles/kernelsse.dir/tree/phylokernelsse.cpp.o
[ 1%] Building CXX object terraphast/CMakeFiles/terraphast.dir/lib/advanced.cpp.o
c++: error: unrecognized command-line option '--target=x86_64-apple-macos10.7'
c++: error: unrecognized command-line option '--target=x86_64-apple-macos10.7'
c++: error: unrecognized command-line option '-mavx'
c++: error: unrecognized command-line option '-mavx'
c++: error: unrecognized command-line option '-mfma'
make[2]: *** [CMakeFiles/kernelavx.dir/tree/phylotreeavx.cpp.o] Error 1
make[2]: *** [CMakeFiles/kernelfma.dir/tree/phylokernelfma.cpp.o] Error 1
make[1]: *** [CMakeFiles/kernelavx.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/kernelfma.dir/all] Error 2
c++: error: unrecognized command-line option '--target=x86_64-apple-macos10.7'
c++: error: unrecognized command-line option '-msse3'
make[2]: *** [CMakeFiles/kernelsse.dir/tree/phylokernelsse.cpp.o] Error 1
make[1]: *** [CMakeFiles/kernelsse.dir/all] Error 2
c++: error: unrecognized command-line option '--target=x86_64-apple-macos10.7'
c++: error: unrecognized command-line option '-msse3'
make[2]: *** [terraphast/CMakeFiles/terraphast.dir/lib/advanced.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 2%] Building CXX object terraphast/CMakeFiles/terraphast.dir/lib/bigint.cpp.o
[ 2%] Building CXX object terraphast/CMakeFiles/terraphast.dir/lib/bipartitions.cpp.o
[ 2%] Building CXX object terraphast/CMakeFiles/terraphast.dir/lib/bitmatrix.cpp.o
c++: error: unrecognized command-line option '--target=x86_64-apple-macos10.7'
c++: error: unrecognized command-line option '--target=x86_64-apple-macos10.7'
c++: error: unrecognized command-line option '-msse3'
c++: error: unrecognized command-line option '-msse3'
make[2]: *** [terraphast/CMakeFiles/terraphast.dir/lib/bipartitions.cpp.o] Error 1
make[2]: *** [terraphast/CMakeFiles/terraphast.dir/lib/bigint.cpp.o] Error 1
c++: error: unrecognized command-line option '--target=x86_64-apple-macos10.7'
c++: error: unrecognized command-line option '-msse3'
make[2]: *** [terraphast/CMakeFiles/terraphast.dir/lib/bitmatrix.cpp.o] Error 1
make[1]: *** [terraphast/CMakeFiles/terraphast.dir/all] Error 2
make: *** [all] Error 2

Apparently it does not works for ARM64 cpu structure (not through rosetta2).

Any possibilities to support in the future?

Thanks,

Jianshu

from iqtree2.

trongnhanuit avatar trongnhanuit commented on August 11, 2024

from iqtree2.

jianshu93 avatar jianshu93 commented on August 11, 2024

many thanks!

from iqtree2.

trongnhanuit avatar trongnhanuit commented on August 11, 2024

from iqtree2.

jianshu93 avatar jianshu93 commented on August 11, 2024

Hello Nhan,

I have the follow error of nt sequences:

IQ-TREE multicore version 2.2.0-beta COVID-edition for Mac OS X 64-bit built Jan 18 2022 built Jan 18 2022
Developed by Bui Quang Minh, James Barbetti, Nguyen Lam Tung,
Olga Chernomor, Heiko Schmidt, Dominik Schrempf, Michael Woodhams, Ly Trong Nhan.

Host: Jianshus-MBP-2.attlocal.net (SSE4.2, 16 GB RAM)
Command: iqtree2 -s 16S_sequences_muscle5.fasta -m MFP -T AUTO
Seed: 596148 (Using SPRNG - Scalable Parallel Random Number Generator)
Time: Tue Jan 18 10:49:08 2022
OMP: Info #271: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
Kernel: SSE2 - auto-detect threads (10 CPU cores detected)

Reading alignment file 16S_sequences_muscle5.fasta ... Fasta format detected
Reading fasta file: done in 0.000364065 secs using 77.18% CPU
Alignment most likely contains DNA/RNA sequences
Constructing alignment: done in 0.00183916 secs using 315.3% CPU
Alignment has 10 sequences with 1538 columns, 121 distinct patterns
89 parsimony-informative, 66 singleton sites, 1383 constant sites
Gap/Ambiguity Composition p-value
Analyzing sequences: done in 6.79493e-05 secs using 331.1% CPU
1 3 0.20% passed 97.78%
2 8 0.20% passed 99.79%
3 4 0.20% passed 95.80%
4 10 0.20% passed 99.98%
5 7 0.20% passed 99.96%
6 5 0.59% passed 99.88%
7 9 0.00% passed 98.71%
8 6 0.20% passed 99.98%
9 1 0.07% passed 98.17%
10 2 0.20% passed 99.99%
**** TOTAL 0.20% 0 sequences failed composition chi2 test (p-value<5%; df=3)
Checking for duplicate sequences: done in 0.000381947 secs using 181.4% CPU

Create initial parsimony tree by phylogenetic likelihood library (PLL)... 0.001 seconds
Measuring multi-threading efficiency up to 10 CPU cores
Rate parameters: A-C: 1.00000 A-G: 1.00000 A-T: 1.00000 C-G: 1.00000 C-T: 1.00000 G-T: 1.00000
Base frequencies: A: 0.250 C: 0.228 G: 0.318 T: 0.204
Proportion of invariable sites: 0.450
Gamma shape alpha: 1.000
ERROR: Numerical underflow (lh-derivative). Run again with the safe likelihood kernel via -safe option

16S_sequences_muscle5.fasta.zip

Any idea?

Thanks,

Jianshu

from iqtree2.

trongnhanuit avatar trongnhanuit commented on August 11, 2024

from iqtree2.

jianshu93 avatar jianshu93 commented on August 11, 2024

Many thanks! the dataset sequences I am using are very consertive though.

Jianshu

from iqtree2.

trongnhanuit avatar trongnhanuit commented on August 11, 2024

I close this issue. Further optimization for the M1 chip is welcome!

from iqtree2.

jianshu93 avatar jianshu93 commented on August 11, 2024

Hello Nhan,

Interestingly, the same input file 16S_sequences_muscle5.fasta.zip (I attached them above), I do not have the error using the non-arm version but the newest Linux version version 2.2-beta. Is this related to the ARM specific Numerical operations? It is not the bug you mentioned I think.

Thanks,

Jianshu

from iqtree2.

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.