Fortran examples CUBLAS, Pinned memory, Interoperability

New examples are available at:
http://developer.nvidia.com/object/cuda.html#fortran

Examples on how to call cublas from Fortran, how to use pinned memory from Fortran, how to call Cuda kernels from Fortran.

Enjoy!!!

M

Hello,

I am currently struggling a lot trying to build the Fortran CUBLAS example (Fortran_Cuda_Blas.tgz) under Windows XP with Microsoft Visual Studio 2005 (using Intel Fortran Compiler).
I have linked my code with the library “cublas.lib” but I still obtain this :

"
1>Compiling with Intel® Fortran Compiler 10.1.011 [IA-32]…
1>sgemm_speed.f90
1>D:\Projects\CUDA\ICUBLAS\sgemm_speed.f90(37) : Warning: Bad # preprocessor line
1>D:\Projects\CUDA\ICUBLAS\sgemm_speed.f90(39) : Warning: Bad # preprocessor line
1>D:\Projects\CUDA\ICUBLAS\sgemm_speed.f90(41) : Warning: Bad # preprocessor line
1>Linking…
1>sgemm_speed.obj : error LNK2019: unresolved external symbol CUBLAS_SGEMM referenced in function MAIN
1>sgemm_speed.obj : error LNK2019: unresolved external symbol SGEMM referenced in function MAIN
1>Debug\icublas.exe : fatal error LNK1120: 2 unresolved externals
"

I would be very grateful if someone could have the start of the beginning of a solution for me <img src=‘http://hqnveipbwb20/public/style_emoticons/<#EMO_DIR#>/crying.gif’ class=‘bbc_emoticon’ alt=’:’(’ /> … thanks

Hey guys, I have solved a part of my problem (stupid ‘-fpp’ omission) but I still have the “unresolved external symbol CUBLAS_SGEMM referenced in function MAIN” error, does anyone has an idea, an advice, an hint, a clue or even 20c ??? :(

This link is no longer working. Would you mind updating it to the latest relevant information?

Thanks

MMB

Try these:

http://developer.download.nvidia.com/compu…n_Cuda_Blas.tgz
http://developer.download.nvidia.com/compu…ortran_Cuda.tgz