Run time on the CPU is greater than on the GPU
Posted: Wed Sep 06, 2017 8:28 am
Hey all,
When I measured the runtime on the CPU and GPU with CPU_TIME(), I found that the run time on the CPU is greater than on the GPU. I use the fortran interface with GMRES solver without the precond because with the precond it takes more time.
what could cause this?
I run my program on HP Intel machine Xeon E3-1240v3 3.4 GHz with gfortran-4.9
below the run time for the first 6 iterations / 100iter
Thank you in advance.
When I measured the runtime on the CPU and GPU with CPU_TIME(), I found that the run time on the CPU is greater than on the GPU. I use the fortran interface with GMRES solver without the precond because with the precond it takes more time.
what could cause this?
I run my program on HP Intel machine Xeon E3-1240v3 3.4 GHz with gfortran-4.9
below the run time for the first 6 iterations / 100iter
Code: Select all
iter CPU run time /s | GPU run time /s
1 4.0000000000000036E-003 | 0.35599999999999987
2 0.0000000000000000 | 1.6000000000000014E-002
3 4.0000000000000036E-003 | 1.9999999999999574E-002
4 0.0000000000000000 | 1.6000000000000014E-002
5 4.0000000000000036E-003 | 2.0000000000003126E-002
6 0.0000000000000000 | 1.6000000000001791E-002