o
    Ô­j  ã                   @   sf   d dl mZ dgZG dd„ deƒZedkr1d dlmZ e d¡ d dlm	Z	 e
e	dd	� ¡ ƒ d
S 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-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   úY/var/www/html/CropPilot/venv/lib/python3.10/site-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_option.   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   )ÚcompilerN)Únumpy.distutils.fcompilerr   Ú	compilersr   r   Ú	distutilsr)   Úset_verbosityÚnumpy.distutilsr+   ÚprintÚget_versionr   r   r   r   Ú<module>   s    ,
ü