Difference between revisions of "Vector utilities"

From Gw-qcd-wiki
Jump to: navigation, search
(Created page with '==bench_vector_utils== This uses vector operations to do performance tests. It yields the time it took to compute, the bandwidth, and the GigaFlops. Test 1: adds two vectors T…')
 
Line 36: Line 36:
 
Where you can find important functions:
 
Where you can find important functions:
  
cuda_vector_to_device: cuda_vector_copy.cu line 10
+
cuda_vector_to_device, cuda_vector_copy.cu line 10:
vec1_plus_vec2: vector_utils.cpp line 202
+
vec1_plus_vec2, vector_utils.cpp line 202:
complex_times_vector: vector_utils line 213
+
complex_times_vector, vector_utils line 213:
norm: vector_utils.cpp line 147
+
norm, vector_utils.cpp line 147:
cscalar_product: vector_utils.cpp line 157
+
cscalar_product, vector_utils.cpp line 157:
gamma5_multiply: vector_utils.cpp line 41
+
gamma5_multiply, vector_utils.cpp line 41:

Revision as of 13:53, 26 July 2010

bench_vector_utils

This uses vector operations to do performance tests. It yields the time it took to compute, the bandwidth, and the GigaFlops.

Test 1: adds two vectors

Test 2: multiplies a complex scalar by a vector

Test 3: multiplies a real scalar by a vector

Test 4: vector plus real scalar times vector

Test 5: vector plus real complex times vector

Test 6: real scalar times vector plus real scalar times vector

Test 7: complex scalar times vector plus complex scalar times vector

Test 8: finds the norm of a vector

Test 9: computes the scalar product of two vectors

Test 10: computes the gamma5 matrix times a vector


Where you can find important functions:

cuda_vector_to_device, cuda_vector_copy.cu line 10: vec1_plus_vec2, vector_utils.cpp line 202: complex_times_vector, vector_utils line 213: norm, vector_utils.cpp line 147: cscalar_product, vector_utils.cpp line 157: gamma5_multiply, vector_utils.cpp line 41: