Code in testing folder
Code in testing folder
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
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.