|
|
|
@ -13,7 +13,8 @@ compilers = ['IntelFCompiler', 'IntelVisualFCompiler',
@@ -13,7 +13,8 @@ compilers = ['IntelFCompiler', 'IntelVisualFCompiler',
|
|
|
|
|
|
|
|
|
|
def intel_version_match(type): |
|
|
|
|
# Match against the important stuff in the version string |
|
|
|
|
return simple_version_match(start=r'Intel.*?Fortran.*?(?:%s).*?Version' % (type,)) |
|
|
|
|
return simple_version_match( |
|
|
|
|
start=r'Intel.*?Fortran.*?(?:%s).*?Version'.format(type,)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BaseIntelFCompiler(FCompiler): |
|
|
|
@ -36,13 +37,13 @@ class IntelFCompiler(BaseIntelFCompiler):
@@ -36,13 +37,13 @@ class IntelFCompiler(BaseIntelFCompiler):
|
|
|
|
|
possible_executables = ['ifort', 'ifc'] |
|
|
|
|
|
|
|
|
|
executables = { |
|
|
|
|
'version_cmd' : None, # set by update_executables |
|
|
|
|
'compiler_f77' : [None, "-72", "-w90", "-w95"], |
|
|
|
|
'compiler_f90' : [None], |
|
|
|
|
'compiler_fix' : [None, "-FI"], |
|
|
|
|
'linker_so' : ["<F90>", "-shared"], |
|
|
|
|
'archiver' : ["ar", "-cr"], |
|
|
|
|
'ranlib' : ["ranlib"] |
|
|
|
|
'version_cmd': None, # set by update_executables |
|
|
|
|
'compiler_f77': [None, "-72", "-w90", "-w95"], |
|
|
|
|
'compiler_f90': [None], |
|
|
|
|
'compiler_fix': [None, "-FI"], |
|
|
|
|
'linker_so': ["<F90>", "-shared"], |
|
|
|
|
'archiver': ["ar", "-cr"], |
|
|
|
|
'ranlib': ["ranlib"] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
pic_flags = ['-fPIC'] |
|
|
|
@ -89,13 +90,13 @@ class IntelItaniumFCompiler(IntelFCompiler):
@@ -89,13 +90,13 @@ class IntelItaniumFCompiler(IntelFCompiler):
|
|
|
|
|
possible_executables = ['ifort', 'efort', 'efc'] |
|
|
|
|
|
|
|
|
|
executables = { |
|
|
|
|
'version_cmd' : None, |
|
|
|
|
'compiler_f77' : [None, "-FI", "-w90", "-w95"], |
|
|
|
|
'compiler_fix' : [None, "-FI"], |
|
|
|
|
'compiler_f90' : [None], |
|
|
|
|
'linker_so' : ['<F90>', "-shared"], |
|
|
|
|
'archiver' : ["ar", "-cr"], |
|
|
|
|
'ranlib' : ["ranlib"] |
|
|
|
|
'version_cmd': None, |
|
|
|
|
'compiler_f77': [None, "-FI", "-w90", "-w95"], |
|
|
|
|
'compiler_fix': [None, "-FI"], |
|
|
|
|
'compiler_f90': [None], |
|
|
|
|
'linker_so': ['<F90>', "-shared"], |
|
|
|
|
'archiver': ["ar", "-cr"], |
|
|
|
|
'ranlib': ["ranlib"] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -104,18 +105,19 @@ class IntelEM64TFCompiler(IntelFCompiler):
@@ -104,18 +105,19 @@ class IntelEM64TFCompiler(IntelFCompiler):
|
|
|
|
|
compiler_aliases = () |
|
|
|
|
description = 'Intel Fortran Compiler for 64-bit apps' |
|
|
|
|
|
|
|
|
|
version_match = intel_version_match('EM64T-based|Intel\\(R\\) 64|64|IA-64|64-bit') |
|
|
|
|
version_match = intel_version_match( |
|
|
|
|
'EM64T-based|Intel\\(R\\) 64|64|IA-64|64-bit') |
|
|
|
|
|
|
|
|
|
possible_executables = ['ifort', 'efort', 'efc'] |
|
|
|
|
|
|
|
|
|
executables = { |
|
|
|
|
'version_cmd' : None, |
|
|
|
|
'compiler_f77' : [None, "-FI"], |
|
|
|
|
'compiler_fix' : [None, "-FI"], |
|
|
|
|
'compiler_f90' : [None], |
|
|
|
|
'linker_so' : ['<F90>', "-shared"], |
|
|
|
|
'archiver' : ["ar", "-cr"], |
|
|
|
|
'ranlib' : ["ranlib"] |
|
|
|
|
'version_cmd': None, |
|
|
|
|
'compiler_f77': [None, "-FI"], |
|
|
|
|
'compiler_fix': [None, "-FI"], |
|
|
|
|
'compiler_f90': [None], |
|
|
|
|
'linker_so': ['<F90>', "-shared"], |
|
|
|
|
'archiver': ["ar", "-cr"], |
|
|
|
|
'ranlib': ["ranlib"] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
def get_flags(self): |
|
|
|
@ -147,13 +149,13 @@ class IntelVisualFCompiler(BaseIntelFCompiler):
@@ -147,13 +149,13 @@ class IntelVisualFCompiler(BaseIntelFCompiler):
|
|
|
|
|
possible_executables = ['ifort', 'ifl'] |
|
|
|
|
|
|
|
|
|
executables = { |
|
|
|
|
'version_cmd' : None, |
|
|
|
|
'compiler_f77' : [None], |
|
|
|
|
'compiler_fix' : [None], |
|
|
|
|
'compiler_f90' : [None], |
|
|
|
|
'linker_so' : [None], |
|
|
|
|
'archiver' : [ar_exe, "/verbose", "/OUT:"], |
|
|
|
|
'ranlib' : None |
|
|
|
|
'version_cmd': None, |
|
|
|
|
'compiler_f77': [None], |
|
|
|
|
'compiler_fix': [None], |
|
|
|
|
'compiler_f90': [None], |
|
|
|
|
'linker_so': [None], |
|
|
|
|
'archiver': [ar_exe, "/verbose", "/OUT:"], |
|
|
|
|
'ranlib': None |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
compile_switch = '/c ' |
|
|
|
@ -163,7 +165,8 @@ class IntelVisualFCompiler(BaseIntelFCompiler):
@@ -163,7 +165,8 @@ class IntelVisualFCompiler(BaseIntelFCompiler):
|
|
|
|
|
module_include_switch = '/I' |
|
|
|
|
|
|
|
|
|
def get_flags(self): |
|
|
|
|
opt = ['/nologo', '/MD', '/nbs', '/names:lowercase', '/assume:underscore'] |
|
|
|
|
opt = ['/nologo', '/MD', '/nbs', '/names:lowercase', |
|
|
|
|
'/assume:underscore'] |
|
|
|
|
return opt |
|
|
|
|
|
|
|
|
|
def get_flags_free(self): |
|
|
|
@ -192,13 +195,13 @@ class IntelItaniumVisualFCompiler(IntelVisualFCompiler):
@@ -192,13 +195,13 @@ class IntelItaniumVisualFCompiler(IntelVisualFCompiler):
|
|
|
|
|
ar_exe = IntelVisualFCompiler.ar_exe |
|
|
|
|
|
|
|
|
|
executables = { |
|
|
|
|
'version_cmd' : None, |
|
|
|
|
'compiler_f77' : [None, "-FI", "-w90", "-w95"], |
|
|
|
|
'compiler_fix' : [None, "-FI", "-4L72", "-w"], |
|
|
|
|
'compiler_f90' : [None], |
|
|
|
|
'linker_so' : ['<F90>', "-shared"], |
|
|
|
|
'archiver' : [ar_exe, "/verbose", "/OUT:"], |
|
|
|
|
'ranlib' : None |
|
|
|
|
'version_cmd': None, |
|
|
|
|
'compiler_f77': [None, "-FI", "-w90", "-w95"], |
|
|
|
|
'compiler_fix': [None, "-FI", "-4L72", "-w"], |
|
|
|
|
'compiler_f90': [None], |
|
|
|
|
'linker_so': ['<F90>', "-shared"], |
|
|
|
|
'archiver': [ar_exe, "/verbose", "/OUT:"], |
|
|
|
|
'ranlib': None |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|