美文网首页
安装openmm

安装openmm

作者: 无解后仰跳投 | 来源:发表于2022-10-21 12:19 被阅读0次

    openmm是分子动力学的开源仿真系统,提供了GPU和CPU安装方式。

    在已经建立好的conda env环境安装openmm,如先用conda activate xxx激活xxx环境,在此环境中安装openmm。基于如下考虑,第一,方便openmm和其他程序包交互,如tensorflow或者pytorch。第二,在已经建立好的conda env环境安装,避免未知错误。

    terminal窗口 命令行安装 

    CPU版本

    conda install -c conda-forge openmm

    GPU版本 如cuda10

    conda install -c conda-forge openmm cudatoolkit=10.0

    这里,如果指定cuda版本,有时也会出现其他依赖包版本不匹配问题,建议去掉版本 conda install -c conda-forge openmm cudatoolkit 安装

    安装好后,用如下命令行测试

    python -m openmm.testInstallation

    显示如下类似的信息,就说明安装成功了

    Median difference in forces between platforms:

    Reference vs. CPU: 6.29548e-06

    Reference vs. CUDA: 6.7241e-06

    CPU vs. CUDA: 7.71614e-07

    Reference vs. OpenCL: 6.76294e-06

    CPU vs. OpenCL: 8.10967e-07

    CUDA vs. OpenCL: 2.22275e-07

    All differences are within tolerance.

    相关文章

      网友评论

          本文标题:安装openmm

          本文链接:https://www.haomeiwen.com/subject/qoxmzrtx.html