Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

About this example

This example shows the reduction of a vector to find the minimum and its location.

Requirements

You must have Python and PIP installed in your system. PyCUDA can be installed through PIP:

$ pip install pycuda

If you have problems trying to install pycuda, check out this post.

Run

Open a terminal and type:

> sh run.sh

Output

A 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

Extra Resources