Code in testing folder

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)
Post Reply
dni
Posts: 5
Joined: Tue Aug 09, 2011 3:42 am

Code in testing folder

Post by dni » Wed Aug 24, 2011 12:02 am

For each function there are two versions of the testing code. For example, testing_sgeqrf.cpp and testing_sgeqrf_gpu.cpp. My understanding is they both use the GPU to do the calculation. What is the difference between them?

Stan Tomov
Posts: 283
Joined: Fri Aug 21, 2009 10:39 pm

Re: Code in testing folder

Post by Stan Tomov » Fri Aug 26, 2011 12:44 am

The difference is in the interface (and the implementation). The _gpu files test the _gpu routines. These routines take input matrices on the GPU memory and produce the result on the GPU memory. The routines without _gpu are CPU LAPACK compliant interface - input matrices and output is on the CPU memory. Both use the GPU for calculations. The GPU interface routines are in general slightly faster.

Post Reply