zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
U
O±d}ã@sìddlZddlmZddlmZmZdddddd    gZd
d „ZGd d „d eƒZGdd„deƒZ    Gdd„de    ƒZ
Gdd    „d    e    ƒZ Gdd„deƒZ Gdd„de ƒZ Gdd„de ƒZedkrèddlmZe d¡ddlmZeedd ¡ƒdS)éN©Úsimple_version_match)Ú    FCompilerÚdummy_fortran_fileÚIntelFCompilerÚIntelVisualFCompilerÚIntelItaniumFCompilerÚIntelItaniumVisualFCompilerÚIntelEM64VisualFCompilerÚIntelEM64TFCompilercCstd|fdS)Nz"Intel.*?Fortran.*?(?:%s).*?Version©Ústartr)Útype©rúVd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\numpy/distutils/fcompiler/intel.pyÚintel_version_match src@seZdZdd„Zdd„ZdS)ÚBaseIntelFCompilercCs*tƒ}dddd|dd|dg|jd<dS)    Nú<F77>ú-FIz-Vz-cú.fz-oú.oÚ version_cmd©rÚ executables©ÚselfÚfrrrÚupdate_executabless ÿz%BaseIntelFCompiler.update_executablescCsd|ks t‚d|S)Nú,z -Wl,-rpath=%s)ÚAssertionError©rÚdirrrrÚruntime_library_dir_options z-BaseIntelFCompiler.runtime_library_dir_optionN)Ú__name__Ú
__module__Ú __qualname__rr"rrrrrsrc@sŠeZdZdZdZdZedƒZddgZdddd    d
gdgdd gd d gddgdgdœZ    dgZ
dZ dZ dd„Z dd„Zdd„Zdd„Zdd„ZdS)rÚintel)Úifortz&Intel Fortran Compiler for 32-bit appsú 32-bit|IA-32r'ZifcNz-72ú-w90ú-w95rú<F90>ú-sharedÚarú-crÚranlib)rÚ compiler_f77Ú compiler_f90Ú compiler_fixÚ    linker_soÚarchiverr/ú-fPICz-module z-IcCsdgS)Nz-FRr©rrrrÚget_flags_free5szIntelFCompiler.get_flags_freecCsdgS)Nr5rr6rrrÚ    get_flags8szIntelFCompiler.get_flagscCs2| ¡}|r|dkrdnd}dddddd     |¡gS)
NZ15ZopenmpZqopenmpz    -fp-modelÚstrictz-O1z-assumeZminus0z-{})Ú get_versionÚformat)rÚvZmpoptrrrÚ get_flags_opt;sÿzIntelFCompiler.get_flags_optcCsgS©Nrr6rrrÚget_flags_archAszIntelFCompiler.get_flags_archcCsxt |¡}| ¡}|r(|dkr(| d¡tjdkrtz| d¡}| d¡Wntk
rbd}YnXddg|||…<|S)Nz8.0z -nofor_mainÚdarwinr,rz -dynamiclibz-Wl,-undefined,dynamic_lookup)    rÚget_flags_linker_sor:ÚappendÚsysÚplatformÚindexÚremoveÚ
ValueError)rÚoptr<ÚidxrrrrADs
 
 
 
 
z"IntelFCompiler.get_flags_linker_so)r#r$r%Ú compiler_typeÚcompiler_aliasesÚ descriptionrÚ version_matchÚpossible_executablesrZ    pic_flagsÚmodule_dir_switchÚmodule_include_switchr7r8r=r?rArrrrrs*
ù
c@sVeZdZdZdZdZedƒZdddgZddd    d
d gdd    gdgd d gddgdgdœZ    dS)rZintelerz'Intel Fortran Compiler for Itanium appsz Itanium|IA-64r'ÚefortÚefcNrr)r*r+r,r-r.r/©rr0r2r1r3r4r/©
r#r$r%rJrKrLrrMrNrrrrrrTs
 
ùc@sReZdZdZdZdZedƒZdddgZddd    gdd    gdgd
d gd d gdgdœZ    dS)r Zintelemrz&Intel Fortran Compiler for 64-bit appsz)EM64T-based|Intel\(R\) 64|64|IA-64|64-bitr'rQrRNrr+r,r-r.r/rSrTrrrrr hs
ùc@s–eZdZdZdZedƒZdd„ZdZddgZ    d    d    gd    gd    gd    ged
d gd    d œZ
d Z dZ d Z dZdZdd„Zdd„Zdd„Zdd„Zdd„Zdd„Zd    S)rZintelvz-Intel Visual Fortran Compiler for 32-bit appsr(cCs(tƒ}ddd|dd|dg|jd<dS)Nrz/FIz/crz/orrrrrrrr„s ÿz'IntelVisualFCompiler.update_executableszlib.exer'ZiflNú/verboseú/OUT:rSz/c z/Foz/module:z/IcCsddddddg}|S)Nz/nologoz/MDz/nbsz/names:lowercasez/assume:underscorez/fppr)rrHrrrr8œs
ÿzIntelVisualFCompiler.get_flagscCsgSr>rr6rrrr7¡sz#IntelVisualFCompiler.get_flags_freecCsddgS)Nz/4Ybz/d2rr6rrrÚget_flags_debug¤sz$IntelVisualFCompiler.get_flags_debugcCsddgS)Nz/O1z/assume:minus0rr6rrrr=§sz"IntelVisualFCompiler.get_flags_optcCsddgS)Nz
/arch:IA32z/QaxSSE3rr6rrrr?ªsz#IntelVisualFCompiler.get_flags_archcCst‚dSr>)ÚNotImplementedErrorr rrrr"­sz/IntelVisualFCompiler.runtime_library_dir_option)r#r$r%rJrLrrMrÚar_exerNrZcompile_switchZ object_switchZlibrary_switchrOrPr8r7rWr=r?r"rrrrrs2ù
c@sXeZdZdZdZedƒZdgZej    Z    dddddgddd    d
gdgd d ge    d dgddœZ
dS)r    Zintelevz.Intel Visual Fortran Compiler for Itanium appsZItaniumZeflNrr)r*z-4L72z-wr+r,rUrVrS) r#r$r%rJrLrrMrNrrYrrrrrr    ±s
 
ùc@s&eZdZdZdZeddZdd„ZdS)r
Zintelvemz-Intel Visual Fortran Compiler for 64-bit appszIntel\(R\).*?64,r cCsgSr>rr6rrrr?Ësz'IntelEM64VisualFCompiler.get_flags_archN)r#r$r%rJrLrrMr?rrrrr
Ås
Ú__main__)Úlogé)Úcustomized_fcompilerr&)Úcompiler)rCZnumpy.distutils.ccompilerrZnumpy.distutils.fcompilerrrZ    compilersrrrrr rr    r
r#Ú    distutilsr[Ú set_verbosityZnumpy.distutilsr]Úprintr:rrrrÚ<module>s* þ 62