This example shows the reduction of a vector to find the minimum and its location.
You must have Python and PIP installed in your system. PyCUDA can be installed through PIP:
$ pip install pycudaIf you have problems trying to install pycuda, check out this post.
Open a terminal and type:
> sh run.shA typical output should look like this one.
Resultado CPU: -3.09072
Indice CPU: 176
Time CPU: 0.00058388710022
--------------------------------------------------------------------------------
Resultado GPU: -3.09071707726
Indice GPU: 176.0
Time GPU: 0.000946044921875