B
    G0d$                 @   sj   d dl Z d dlmZ dgZG dd deZedkrfd dlmZ ed d dl	m
Z
 ee
d	d
  dS )    N)	FCompilerNVHPCFCompilerc               @   sz   e Zd ZdZdZdZdZddgdgddgdgdgd	d
gdgdZdgZdZ	dZ
dd Zdd Zdd Zdd Zdd ZdS )r   a6   NVIDIA High Performance Computing (HPC) SDK Fortran Compiler
   
    https://developer.nvidia.com/hpc-sdk
   
    Since august 2020 the NVIDIA HPC SDK includes the compilers formerly known as The Portland Group compilers,
    https://www.pgroup.com/index.htm.
    See also `numpy.distutils.fcompiler.pg`.
    nvzNVIDIA HPC SDKzM\s*(nvfortran|(pg(f77|f90|fortran)) \(aka nvfortran\)) (?P<version>[\d.-]+).*z<F90>z-VZ	nvfortranz-Mfixedarz-crranlib)Zversion_cmdZcompiler_f77Zcompiler_fixZcompiler_f90	linker_soarchiverr   z-fpicz-module z-Ic             C   s   ddg}| j | S )Nz-Minform=informz-Mnosecond_underscore)	pic_flags)selfopt r   N/var/www/html/venv/lib/python3.7/site-packages/numpy/distutils/fcompiler/nv.py	get_flags#   s    zNVHPCFCompiler.get_flagsc             C   s   dgS )Nz-fastr   )r
   r   r   r   get_flags_opt'   s    zNVHPCFCompiler.get_flags_optc             C   s   dgS )Nz-gr   )r
   r   r   r   get_flags_debug*   s    zNVHPCFCompiler.get_flags_debugc             C   s   ddgS )Nz-sharedz-fpicr   )r
   r   r   r   get_flags_linker_so-   s    z"NVHPCFCompiler.get_flags_linker_soc             C   s   d| S )Nz-R%sr   )r
   dirr   r   r   runtime_library_dir_option0   s    z)NVHPCFCompiler.runtime_library_dir_optionN)__name__
__module____qualname____doc__compiler_typedescriptionZversion_patternZexecutablesr	   Zmodule_dir_switchZmodule_include_switchr   r   r   r   r   r   r   r   r   r      s&   
__main__)log   )customized_fcompilerr   )compiler)sysZnumpy.distutils.fcompilerr   Z	compilersr   r   	distutilsr   set_verbosityZnumpy.distutilsr   printget_versionr   r   r   r   <module>   s   ,
