*Author*
--------
David Car (david.car7@gmail.com)
Michael List (listmg@users.sourceforge.net)
http://fortcuda.sourceforge.net/
*Requirements*
--------------
A Fortran compiler supporting the ISO_C_BINDINGS intrinsic module. Currently,
the following should work:
gfortran > 4.3
ifort > 10.0
pgfortran latest
Also, of course you need the NVIDIA CUDA SDK. I'm using version 2.3 at this time.
*Documentation*
---------------
None at the moment
*Installation*
--------------
*Uninstall*
-----------
*Abstract*
----------
The CUDA.F90 module contains ISO_C_BINDINGS interfaces for various CUDA SDK
functions. Compiling that will give you the cuda.o object file and cuda.mod
module. Simply "use" the cuda module in your code. See the main.F90 for an
example.
*Build*
-------
To build the example test, do:
make library
make
-OR-
make ARCH=64 library
make ARCH=64
This will build in emulation mode. To build the code for the device, edit the
Makefile NVCCFLAGS variable and remove -deviceemu. It should then look like:
NVCCFLAGS=
Then do:
make clean
make
-OR-
make clean
make ARCH=64
You'll find a "test" executable in the examples directory. Run that. Its a
simple vector add. If it fails you may wish to decrease the size of the
allocated vectors (they are quite large for low or mid range cards).