compilation.py 文件源码

python
阅读 34 收藏 0 点赞 0 评论 0

项目:fython 作者: nicolasessisbreton 项目源码 文件源码
def use_mkl():
    set_compiler(
        cmd = 'ifort',
        prefix = '',
        infix = '_mp_',
        suffix = '_',
        debug = """
            -g 
            -traceback
            -gen-interfaces 
            -warn all
            -check all
            -fpe0
            -ftrapuv
            -I/opt/intel/mkl/include
        """,
        release = """
            -fast
            -I/opt/intel/mkl/include
        """,
        link = """
            -L/opt/intel/mkl/lib/intel64 
            -lmkl_intel_lp64 
            -lmkl_core
            -lmkl_sequential 
            -lpthread 
            -lm
        """,
        error_regex = '(error #|ld:)',

        warning_regex = '(warning #|remark #)',
    )


    # needed to load mkl
    # see: https://answers.launchpad.net/dolfin/+question/205219
    import ctypes
    ctypes.CDLL('libmkl_rt.so', ctypes.RTLD_GLOBAL)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号