a
    p=ic                     @   sb   d dl mZ dgZG dd deZedkr^d dlmZ ed d dlm	Z	 e
e	dd	  d
S )    )	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   -fpicz-module z-Ic                 C   s   ddg}| j | S )Nz-Minform=informz-Mnosecond_underscore)	pic_flags)selfopt r   m/home/droni/.local/share/virtualenvs/DPS-5Je3_V2c/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_option.   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   )compilerN)Znumpy.distutils.fcompilerr   Z	compilersr   r   	distutilsr   set_verbosityZnumpy.distutilsr   printget_versionr   r   r   r   <module>   s   ,
