• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python fcompiler.FCompiler类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中numpy.distutils.fcompiler.FCompiler的典型用法代码示例。如果您正苦于以下问题:Python FCompiler类的具体用法?Python FCompiler怎么用?Python FCompiler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了FCompiler类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: get_flags_fix

 def get_flags_fix(self):
     opt = FCompiler.get_flags_fix(self)
     opt.extend(
         ["-YCFRL=1", "-YCOM_NAMES=LCS", "-YCOM_PFX", "-YEXT_PFX", "-YCOM_SFX=_", "-YEXT_SFX=_", "-YEXT_NAMES=LCS"]
     )
     opt.extend(["-f", "fixed"])
     return opt
开发者ID:radical-software,项目名称:radicalspam,代码行数:7,代码来源:absoft.py


示例2: get_library_dirs

        def get_library_dirs(self):
            """List of compiler library directories."""
            opt = FCompiler.get_library_dirs(self)
            flang_dir = dirname(self.executables['compiler_f77'][0])
            opt.append(normpath(join(flang_dir, '..', 'lib')))

            return opt
开发者ID:Horta,项目名称:numpy,代码行数:7,代码来源:pg.py


示例3: get_version

    def get_version(self,*args,**kwds):
        version = FCompiler.get_version(self,*args,**kwds)

        if version is None and sys.platform.startswith('aix'):
            # use lslpp to find out xlf version
            lslpp = find_executable('lslpp')
            xlf = find_executable('xlf')
            if os.path.exists(xlf) and os.path.exists(lslpp):
                s,o = exec_command(lslpp + ' -Lc xlfcmp')
                m = re.search('xlfcmp:(?P<version>\d+([.]\d+)+)', o)
                if m: version = m.group('version')

        xlf_dir = '/etc/opt/ibmcmp/xlf'
        if version is None and os.path.isdir(xlf_dir):
            # linux:
            # If the output of xlf does not contain version info
            # (that's the case with xlf 8.1, for instance) then
            # let's try another method:
            l = os.listdir(xlf_dir)
            l.sort()
            l.reverse()
            l = [d for d in l if os.path.isfile(os.path.join(xlf_dir,d,'xlf.cfg'))]
            if l:
                from distutils.version import LooseVersion
                self.version = version = LooseVersion(l[0])
        return version
开发者ID:glimmercn,项目名称:numpy,代码行数:26,代码来源:ibm.py


示例4: get_flags_f90

 def get_flags_f90(self):
     opt = FCompiler.get_flags_f90(self)
     opt.extend(["-YCFRL=1","-YCOM_NAMES=LCS","-YCOM_PFX","-YEXT_PFX",
                 "-YCOM_SFX=_","-YEXT_SFX=_","-YEXT_NAMES=LCS"])
     if self.get_version():
         if self.get_version()>'4.6':
             opt.extend(["-YDEALLOC=ALL"])
     return opt
开发者ID:BlackEarth,项目名称:portable-python-win32,代码行数:8,代码来源:absoft.py


示例5: get_flags

 def get_flags(self):
     opt = FCompiler.get_flags(self)
     if os.name != 'nt':
         opt.extend(['-s'])
         if self.get_version():
             if self.get_version()>='8.2':
                 opt.append('-fpic')
     return opt
开发者ID:BlackEarth,项目名称:portable-python-win32,代码行数:8,代码来源:absoft.py


示例6: get_flags

 def get_flags(self):
     opt = FCompiler.get_flags(self)
     if os.name != "nt":
         opt.extend(["-s"])
         if self.get_version():
             if self.get_version() >= "8.2":
                 opt.append("-fpic")
     return opt
开发者ID:radical-software,项目名称:radicalspam,代码行数:8,代码来源:absoft.py


示例7: get_libraries

 def get_libraries(self):
     opt = FCompiler.get_libraries(self)
     if self.get_version() >= '10.0':
         opt.extend(['af90math', 'afio', 'af77math', 'U77'])
     elif self.get_version() >= '8.0':
         opt.extend(['f90math','fio','f77math','U77'])
     else:
         opt.extend(['fio','f90math','fmath','U77'])
     if os.name =='nt':
         opt.append('COMDLG32')
     return opt
开发者ID:Ademan,项目名称:NumPy-GSoC,代码行数:11,代码来源:absoft.py


示例8: get_libraries

 def get_libraries(self):
     opt = FCompiler.get_libraries(self)
     if self.get_version() >= "10.0":
         opt.extend(["af90math", "afio", "af77math", "U77"])
     elif self.get_version() >= "8.0":
         opt.extend(["f90math", "fio", "f77math", "U77"])
     else:
         opt.extend(["fio", "f90math", "fmath", "U77"])
     if os.name == "nt":
         opt.append("COMDLG32")
     return opt
开发者ID:radical-software,项目名称:radicalspam,代码行数:11,代码来源:absoft.py


示例9: get_flags_linker_so

 def get_flags_linker_so(self):
     opt = FCompiler.get_flags_linker_so(self)
     v = self.get_version()
     if v and v >= "8.0":
         opt.append("-nofor_main")
     if sys.platform == "darwin":
         # Here, it's -dynamiclib
         try:
             idx = opt.index("-shared")
             opt.remove("-shared")
         except ValueError:
             idx = 0
         opt[idx:idx] = ["-dynamiclib", "-Wl,-undefined,dynamic_lookup", "-Wl,-framework,Python"]
     return opt
开发者ID:sowhatwchen,项目名称:numpy,代码行数:14,代码来源:intel.py


示例10: get_library_dirs

 def get_library_dirs(self):
     opt = FCompiler.get_library_dirs(self)
     d = os.environ.get('ABSOFT')
     if d:
         if self.get_version() >= '10.0':
             # use shared libraries, the static libraries were not compiled -fPIC
             prefix = 'sh'
         else:
             prefix = ''
         if cpu.is_64bit():
             suffix = '64'
         else:
             suffix = ''
         opt.append(os.path.join(d, '%slib%s' % (prefix, suffix)))
     return opt
开发者ID:BlackEarth,项目名称:portable-python-win32,代码行数:15,代码来源:absoft.py


示例11: get_library_dirs

 def get_library_dirs(self):
     opt = FCompiler.get_library_dirs(self)
     d = os.environ.get("ABSOFT")
     if d:
         if self.get_version() >= "10.0":
             # use shared libraries, the static libraries were not compiled -fPIC
             prefix = "sh"
         else:
             prefix = ""
         if cpu.is_64bit():
             suffix = "64"
         else:
             suffix = ""
         opt.append(os.path.join(d, "%slib%s" % (prefix, suffix)))
     return opt
开发者ID:radical-software,项目名称:radicalspam,代码行数:15,代码来源:absoft.py


示例12: get_flags_f77

 def get_flags_f77(self):
     opt = FCompiler.get_flags_f77(self)
     opt.extend(['-N22','-N90','-N110'])
     v = self.get_version()
     if os.name == 'nt':
         if v and v>='8.0':
             opt.extend(['-f','-N15'])
     else:
         opt.append('-f')
         if v:
             if v<='4.6':
                 opt.append('-B108')
             else:
                 # Though -N15 is undocumented, it works with
                 # Absoft 8.0 on Linux
                 opt.append('-N15')
     return opt
开发者ID:BlackEarth,项目名称:portable-python-win32,代码行数:17,代码来源:absoft.py


示例13: get_flags_f77

 def get_flags_f77(self):
     opt = FCompiler.get_flags_f77(self)
     opt.extend(["-N22", "-N90", "-N110"])
     v = self.get_version()
     if os.name == "nt":
         if v and v >= "8.0":
             opt.extend(["-f", "-N15"])
     else:
         opt.append("-f")
         if v:
             if v <= "4.6":
                 opt.append("-B108")
             else:
                 # Though -N15 is undocumented, it works with
                 # Absoft 8.0 on Linux
                 opt.append("-N15")
     return opt
开发者ID:radical-software,项目名称:radicalspam,代码行数:17,代码来源:absoft.py


示例14: get_flags_linker_so

 def get_flags_linker_so(self):
     opt = FCompiler.get_flags_linker_so(self)
     v = self.get_version()
     if v and v >= '8.0':
         opt.append('-nofor_main')
     return opt
开发者ID:radical-software,项目名称:radicalspam,代码行数:6,代码来源:intel.py


示例15: get_libraries

 def get_libraries(self):
     opt = FCompiler.get_libraries(self)
     opt.extend(['flang', 'flangrti', 'ompstub'])
     return opt
开发者ID:Horta,项目名称:numpy,代码行数:4,代码来源:pg.py


示例16: get_version

 def get_version(self, force=0, ok_status=[256,0,1]):
     # XXX status==256 may indicate 'unrecognized option' or
     #     'no input file'. So, version_cmd needs more work.
     return FCompiler.get_version(self,force,ok_status)
开发者ID:8848,项目名称:Pymol-script-repo,代码行数:4,代码来源:hpux.py



注:本文中的numpy.distutils.fcompiler.FCompiler类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python log.debug函数代码示例发布时间:2022-05-27
下一篇:
Python fcompiler.new_fcompiler函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap