Running Programs using MAGMA

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)
Post Reply
K_Synnott
Posts: 15
Joined: Fri Jun 27, 2014 10:45 am

Running Programs using MAGMA

Post by K_Synnott » Wed Jul 02, 2014 6:23 am

Hi all,

I have made a new *.cpp file that I want to run that will use magma functions. I have saved this file in the testing folder of MAGMA 1.4.1. However when I pass 'make' into the terminal it doesn't create the *.o file and executable.

What do I need to do ??

Regards,
Kevin

K_Synnott
Posts: 15
Joined: Fri Jun 27, 2014 10:45 am

Re: Running Programs using MAGMA

Post by K_Synnott » Wed Jul 02, 2014 8:42 am

Found the solution.

Type the following into the terminal

Code: Select all

nvcc <file_name>.cpp -o <file_name> -I/usr/local/magma/magma-1.4.1/include -llapack -lm -lcublas -lf77blas -latlas -lcblas -DHAVE_CUBLAS -DNOCHANGE

Post Reply