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’?
Found the /usr/local/cuda/lib directory, and made sure to edit my library path in .bash_profile
and now only notice “Undefined symbols” errors (shown below):
—CUT HERE
mike-macbook-pro:Fortran_Cuda mike$ make
gfortran -o complex_mul main.f90 Cuda_function.o -L/usr/local/cuda/lib -lcudart
Undefined symbols:
“___gxx_personality_v0”, referenced from:
___gxx_personality_v0$non_lazy_ptr in Cuda_function.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [complex_mul] Error 1
mikes-macbook-pro:Fortran_Cuda mike$
–CUT HERE