-
Notifications
You must be signed in to change notification settings - Fork 120
/
sample.output
59 lines (49 loc) · 2.67 KB
/
sample.output
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
% omp_main -a -o -n 4 -i Image_data/color100.txt
Writing coordinates of K=4 cluster centers to file "Image_data/color100.txt.cluster_centres"
Writing membership of N=100 data objects to file "Image_data/color100.txt.membership"
Performing **** Regular Kmeans (OpenMP) ---- using array reduction ******
Number of threads = 8
Input file: Image_data/color100.txt
numObjects = 100
numAttributes = 9
numClusters = 4
threshold = 0.0010
I/O time = 0.0035 sec
Computation timing = 0.0017 sec
-------------------------------------------------------------------------------------------------
% seq_main -o -b -n 4 -i Image_data/color17695.bin
Writing coordinates of K=4 cluster centers to file "Image_data/color17695.bin.cluster_centres"
Writing membership of N=17695 data objects to file "Image_data/color17695.bin.membership"
Performing **** Regular Kmeans (sequential version) ****
Input file: Image_data/color17695.bin
numObjects = 17695
numAttributes = 9
numClusters = 4
threshold = 0.0010
I/O time = 0.0266 sec
Computation timing = 0.3572 sec
-------------------------------------------------------------------------------------------------
% mpiexec -n 4 mpi_main -o -n 4 -b -i Image_data/texture17695.bin
Writing coordinates of K=4 cluster centers to file "Image_data/texture17695.bin.cluster_centres"
Writing membership of N=4424 data objects to file "Image_data/texture17695.bin.membership"
Performing **** Regular Kmeans (MPI) ----Num of processes = 4
Input file: Image_data/texture17695.bin
numObjects = 17695
numAttributes = 20
numClusters = 4
threshold = 0.0010
I/O time = 0.2371 sec
Computation timing = 0.2794 sec
-------------------------------------------------------------------------------------------------
% ./benchmark.sh
...
--------------------------------------------------------------------------------
01:48:39 up 3 days, 10:39, 2 users, load average: 0.78, 1.05, 0.82
--------------------------------------------------------------------------------
k = 2 seqTime = 0.2979s ompTime = 0.3048s cudaTime = 0.2009s speedup = 1.4x
k = 4 seqTime = 0.1042s ompTime = 0.0773s cudaTime = 0.0997s speedup = 1.0x
k = 8 seqTime = 0.4585s ompTime = 0.3191s cudaTime = 0.1252s speedup = 3.6x
k = 16 seqTime = 2.2128s ompTime = 1.5340s cudaTime = 0.2146s speedup = 10.3x
k = 32 seqTime = 3.2014s ompTime = 2.3184s cudaTime = 0.1936s speedup = 16.5x
k = 64 seqTime = 8.8400s ompTime = 6.4526s cudaTime = 0.2821s speedup = 31.3x
k = 128 seqTime = 23.9211s ompTime = 17.5671s cudaTime = 0.4871s speedup = 49.1x