I have version 2.2 of CUDA running on my macbook pro. all the sdk examples compiled and work.
I found a Fortran_cuda example that I wanted to test. It’s very simple.
Here is the Makefile. It fails to link since it can’t find the library file cudart.
That is not in the 2.2 version I downloaded, unless I missed something.
Anyone know about where to get the curda library file ‘cudart’?
Define Fortran compiler
complex_mul: main.f90 Cuda_function.o
$(FC) -o complex_mul main.f90 Cuda_function.o -L/usr/local/cuda/lib -lcudart
nvcc -c -O3 Cuda_function.cu
rm complex_mul Cuda_function.o