U
    ?h[                     @   sH   d dl Z d dlmZ d dlmZmZ G dd deZedkrDe  dS )    N)cuda)unittestCUDATestCasec                   @   s   e Zd Zdd ZdS )TestCudaMonteCarloc                 C   s   t ddd }dS )z+Just make sure we can compile this
        z=void(double[:], double[:], double, double, double, double[:])c                 S   sJ   t d}||jd krd S || }| | t|| ||   ||< d S )N   r   )r   gridshapemathexp)lastpathsdtZc0c1Znormdistinoise r   Y/var/www/html/venv/lib/python3.8/site-packages/numba/cuda/tests/cudapy/test_montecarlo.pystep   s
    
z0TestCudaMonteCarlo.test_montecarlo.<locals>.stepN)r   Zjit)selfr   r   r   r   test_montecarlo   s    z"TestCudaMonteCarlo.test_montecarloN)__name__
__module____qualname__r   r   r   r   r   r      s   r   __main__)	r	   Znumbar   Znumba.cuda.testingr   r   r   r   mainr   r   r   r   <module>   s
   