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

Method __init__

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

Source from the content-addressed store, hash-verified

54 cc_args = '-fPIC'
55
56 def __init__(self, verbose=0, dry_run=0, force=0):
57 UnixCCompiler.__init__(self, verbose, dry_run, force)
58
59 v = self.get_version()
60 mpopt = 'openmp' if v and v < '15' else 'qopenmp'
61 self.cc_exe = ('icc -std=c99 -m64 -fPIC -fp-model strict -O3 '
62 '-fomit-frame-pointer -{}').format(mpopt)
63 compiler = self.cc_exe
64
65 if platform.system() == 'Darwin':
66 shared_flag = '-Wl,-undefined,dynamic_lookup'
67 else:
68 shared_flag = '-shared'
69 self.set_executables(compiler=compiler,
70 compiler_so=compiler,
71 compiler_cxx=compiler,
72 archiver='xiar' + ' cru',
73 linker_exe=compiler + ' -shared-intel',
74 linker_so=compiler + ' ' + shared_flag +
75 ' -shared-intel')
76
77
78if platform.system() == 'Windows':

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
get_versionMethod · 0.45

Tested by

no test coverage detected