U
    9%e=                     @   sZ   d dl mZmZ d dlmZ d dlmZmZ edG dd dejZ	e
dkrVe  dS )	    )float64uint32)compile_ptx)skip_on_cudasimunittestz(Compilation unsupported in the simulatorc                   @   s   e Zd Zdd ZdS )TestCudaMandelc                 C   s.   dd }t ttttt t t f}t||dd dS )z+Just make sure we can compile this
        c                 S   s   || | }|| | }	| | }
| | }||
|  }|||	  }t ||}d}t|D ]4}|| | }|j|j |j|j  dkrV|  S qV|S )Ny                   )complexrangerealimag)tidZmin_xZmax_xZmin_yZmax_ywidthheightZitersZpixel_size_xZpixel_size_yxyr   r   czi r   b/var/www/html/Darija-Ai-API/env/lib/python3.8/site-packages/numba/cuda/tests/cudapy/test_mandel.pymandel   s    

z*TestCudaMandel.test_mandel.<locals>.mandelT)ZdeviceN)r   r   r   )selfr   argsr   r   r   test_mandel   s    
  zTestCudaMandel.test_mandelN)__name__
__module____qualname__r   r   r   r   r   r      s   r   __main__N)Znumbar   r   Znumba.cuda.compilerr   Znumba.cuda.testingr   r   ZTestCaser   r   mainr   r   r   r   <module>   s   