changeset 13:922d6f6d0b67

Update twice log
author innparusu
date Tue, 06 Feb 2018 03:47:31 +0900
parents 8abcef12fad7
children 67bd9305befe 41fa5e983880
files benchmark.rb benchmark/benchmark.rb benchmark/bitonicSort_info benchmark/twice benchmark/twice_info
diffstat 5 files changed, 51 insertions(+), 42 deletions(-) [+]
line wrap: on
line diff
--- a/benchmark.rb	Tue Feb 06 03:10:20 2018 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-require 'optparse'
-require 'pry'
-params = ARGV.getopts('', 'path:', 'length:1024', 'split:8', 'gpu', 'logDirPath:.')
-
-cpus = (0..4).map {|i| 2**i }
-Dir.chdir(params['logDirPath'])
-
-unless params['path']
-  puts 'Usage: ruby benchmark.rb --path gears_example_binary_path [options]'
-  puts '  --length length      array length [default: 1024]'
-  puts '  --split split        array split num [default: 8]'
-  puts '  --logDirPath logdir  log directory [default: current directory]'
-  puts '  --gpu                run gpu'
-  puts '  -h                   show help'
-  exit(1)
-end
-
-file = File.new("cpu_result", 'w')
-cpus.each do |i|
-  result = `#{params['path']} -cpu #{i} -l #{params['length']} -s #{params['split']}`
-  file.write(result)
-end
-file.close
-
-exit(0) unless params['gpu']
-
-file = File.new("gpu_result", 'w')
-result = `#{params['path']} -cpu #{i} -l #{params['length']} -s #{params['split']}`
-file.write(result)
-file.close
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/benchmark/benchmark.rb	Tue Feb 06 03:47:31 2018 +0900
@@ -0,0 +1,29 @@
+require 'optparse'
+params = ARGV.getopts('', 'path:', 'length:1024', 'split:8', 'gpu', 'logDirPath:.')
+
+cpus = (0..5).map {|i| 2**i }
+Dir.chdir(params['logDirPath'])
+
+unless params['path']
+  puts 'Usage: ruby benchmark.rb --path gears_example_binary_path [options]'
+  puts '  --length length      array length [default: 1024]'
+  puts '  --split split        array split num [default: 8]'
+  puts '  --logDirPath logdir  log directory [default: current directory]'
+  puts '  --gpu                run gpu'
+  puts '  -h                   show help'
+  exit(1)
+end
+
+file = File.new("cpu_result", 'w')
+cpus.each do |i|
+  result = `#{params['path']} -cpu #{i} -l #{params['length']} -s #{params['split']}`
+  file.write(result)
+end
+file.close
+
+exit(0) unless params['gpu']
+
+file = File.new("gpu_result", 'w')
+result = `#{params['path']} -cpu #{i} -l #{params['length']} -s #{params['split']}`
+file.write(result)
+file.close
--- a/benchmark/bitonicSort_info	Tue Feb 06 03:10:20 2018 +0900
+++ b/benchmark/bitonicSort_info	Tue Feb 06 03:47:31 2018 +0900
@@ -1,2 +1,7 @@
-length: 2^24
-task: 64(2^6)
+#cpu
+length: 2^24(16777216)
+split: 2^6(64)
+
+#gpu
+length: 2^24(16777216)
+split:  2^24(16777216)
--- a/benchmark/twice	Tue Feb 06 03:10:20 2018 +0900
+++ b/benchmark/twice	Tue Feb 06 03:47:31 2018 +0900
@@ -1,8 +1,8 @@
-1 cpu, 147.946
-2 cpus, 80.773
-4 cpus, 40.527
-8 cpus, 20.267
-16 cpus, 10.936
-32 cpus, 5.878
-gpu, 542.816
-gpu(kernel only), 0.755
+1 cpu,  1181.215
+2 cpus, 627.914
+4 cpus, 324.059
+8 cpus, 159.932
+16 cpus, 85.518
+32 cpus, 51.925
+gpu, 127.018
+gpu(kernel only), 6.018
--- a/benchmark/twice_info	Tue Feb 06 03:10:20 2018 +0900
+++ b/benchmark/twice_info	Tue Feb 06 03:47:31 2018 +0900
@@ -1,2 +1,7 @@
-length: 2^24
-task: 64(2^6)
+#cpu
+length: 2^27 (134217728)
+split: 2^6(64)
+
+#gpu
+length: 2^27 (134217728)
+split: 2^25 (33554432)