Page 1 of 1
Code in testing folder
Posted: Wed Aug 24, 2011 12:02 am
by dni
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?
Re: Code in testing folder
Posted: Fri Aug 26, 2011 12:44 am
by Stan Tomov
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.