a
    jUb$                     @   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-MfixedZarz-crranlib)Zversion_cmdZcompiler_f77Zcompiler_fixZcompiler_f90Z	linker_soZarchiverr   -fpicz-module z-Ic                 C   s   ddg}| j | S )Nz-Minform=informz-Mnosecond_underscore)	pic_flags)selfZopt r	   ;lib/python3.9/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-sharedr   r	   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__Zcompiler_typeZ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   )Zcompiler)sysZnumpy.distutils.fcompilerr   Z	compilersr   r   Z	distutilsr   Zset_verbosityZnumpy.distutilsr   printZget_versionr	   r	   r	   r
   <module>   s   ,
