在阿里云服务器(9.9学生版)上Cmake 构建Rosetta,并仅编译AbinitioRelax

来源:互联网 发布:海关10月进出口数据 编辑:程序博客网 时间:2024/05/16 00:47

前提:rosetta通过scons在该服务器上out of memory(泪奔),转向cmake

按部就班:https://www.rosettacommons.org/docs/latest/build_documentation/Build-Documentation

准备:sudo apt-get install zlib1g-dev

1.Change to the CMake build directory from the base Rosetta 3 directory and create the CMake build files:

cd cmake       ./make_project.py all
2.Next, change to a build directory
cd build_debug  

3. remove these lines in CMakeLists.txt:

INCLUDE( ../build/apps.all.cmake )INCLUDE( ../build/pilot_apps.all.cmake )

These can be replaced with an explicit list of applications, such as:

INCLUDE( ../build/apps/AbinitioRelax.cmake)
4.build 
cmake .
make -jnproc` # replace `nproc` with number of cores to use

阅读全文
0 0
原创粉丝点击