zoukankan      html  css  js  c++  java
  • Windows 下配置Boost MPI


    1切换到 boost 解压路径 
    cd D:oost_1_47_0

    2 执行 bootstrap.bat , 由于 boost 支持多编译器 , 这里要做一个选择 ,
    bootstrap gcc
    会生成bjam.exe b2.exe project-config.jam

    3 用文本编辑器打开 project-config.jam , 更改 msvc 为 gcc ,替换后内容如下:
    import option ; 
    using gcc ; 
    option.set keep-going : false ; 
    4 打开D:oost_1_47_0 oolsuildv2

    修改user-config.jam

    在文件最下面添加:

        using mpi : : <find-shared-library>lammpio <find-shared-library>lammpi++
                      <find-shared-library>mpi <find-shared-library>lam 
                      <find-shared-library>dl ;

    5 编译
    bjam gcc --with-mpi


    6可能会找不到mpi.h 

    修改D:oost_1_47_0 oolsuildv2 oolsmpi.jam

    屏蔽local cluster_pack_path_native = "C:\Program Files\Microsoft Compute Cluster Pack" ;
    添加local cluster_pack_path_native = "D:\Program Files (x86)\MPICH2" ;

    如下:

    #local cluster_pack_path_native = "C:\Program Files\Microsoft Compute Cluster Pack" ;
    local cluster_pack_path_native = "D:\Program Files (x86)\MPICH2" ;

    尤其注意第6步

  • 相关阅读:
    逆向技术汇总
    绕过安全软件设置注册表
    内存空间中的句柄,指针,对象,类
    COM组件的逆向
    组策略设置隔离文件夹
    VS2015驱动环境配置
    python批量提取eml附件
    反沙箱——SetErrorMode
    CrypMic分析报告
    反调试——jmp到那个地址
  • 原文地址:https://www.cnblogs.com/leoking01/p/13196430.html
Copyright © 2011-2022 走看看