MCPcopy Create free account
hub / github.com/numpy/numpy / __init__

Method __init__

numpy/distutils/intelccompiler.py:16–35  ·  view source on GitHub ↗
(self, verbose=0, dry_run=0, force=0)

Source from the content-addressed store, hash-verified

14 cc_args = 'fPIC'
15
16 def __init__(self, verbose=0, dry_run=0, force=0):
17 UnixCCompiler.__init__(self, verbose, dry_run, force)
18
19 v = self.get_version()
20 mpopt = 'openmp' if v and v < '15' else 'qopenmp'
21 self.cc_exe = ('icc -fPIC -fp-model strict -O3 '
22 '-fomit-frame-pointer -{}').format(mpopt)
23 compiler = self.cc_exe
24
25 if platform.system() == 'Darwin':
26 shared_flag = '-Wl,-undefined,dynamic_lookup'
27 else:
28 shared_flag = '-shared'
29 self.set_executables(compiler=compiler,
30 compiler_so=compiler,
31 compiler_cxx=compiler,
32 archiver='xiar' + ' cru',
33 linker_exe=compiler + ' -shared-intel',
34 linker_so=compiler + ' ' + shared_flag +
35 ' -shared-intel')
36
37
38class IntelItaniumCCompiler(IntelCCompiler):

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

get_versionMethod · 0.45

Tested by

no test coverage detected