修改fastp的16线程限制

2024-09-02  本文已影响0人  陈光辉_山东花生

下载源码:https://github.com/OpenGene/fastp

修改options.cpp 下列代码 :将16改成你想要的线程数比如96

    if(thread < 1) {
        thread = 1;
    } else if(thread > 16) {
        cerr << "WARNING: fastp uses up to 16 threads although you specified " << thread << endl;
        thread = 16;
    }

修改后编译:

sudo apt-get install libisal-dev
sudo apt-get install libdeflate-dev
make

上一篇 下一篇

猜你喜欢

热点阅读