o
    6a$                     @   sn   d dl Z d dlmZ dgZG dd deZedkr5d dlmZ ed d dl	m
Z
 ee
d	d
  dS 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-V	nvfortranz-Mfixedarz-crranlib)version_cmdcompiler_f77compiler_fixcompiler_f90	linker_soarchiverr   -fpicz-module z-Ic                 C   s   ddg}| j | S )Nz-Minform=informz-Mnosecond_underscore)	pic_flags)selfopt r   >/usr/lib/python3/dist-packages/numpy/distutils/fcompiler/nv.py	get_flags#   s   
zNVHPCFCompiler.get_flagsc                 C      dgS )Nz-fastr   r   r   r   r   get_flags_opt'      zNVHPCFCompiler.get_flags_optc                 C   r   )Nz-gr   r   r   r   r   get_flags_debug*   r   zNVHPCFCompiler.get_flags_debugc                 C   s   ddgS )Nz-sharedr   r   r   r   r   r   get_flags_linker_so-      z"NVHPCFCompiler.get_flags_linker_soc                 C   s   d| S )Nz-R%sr   )r   dirr   r   r   runtime_library_dir_option0   r   z)NVHPCFCompiler.runtime_library_dir_optionN)__name__
__module____qualname____doc__compiler_typedescriptionversion_patternexecutablesr   module_dir_switchmodule_include_switchr   r   r   r   r   r   r   r   r   r      s*    		__main__)log   )customized_fcompilerr   )compiler)sysnumpy.distutils.fcompilerr   	compilersr   r   	distutilsr)   set_verbositynumpy.distutilsr+   printget_versionr   r   r   r   <module>   s    ,
