# HG changeset patch # User innparusu # Date 1517856451 -32400 # Node ID 922d6f6d0b67d86ef8c061bac6283df1ba0a1b69 # Parent 8abcef12fad772d3b6a327bdb4e26cca28fe0eff Update twice log diff -r 8abcef12fad7 -r 922d6f6d0b67 benchmark.rb --- 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 diff -r 8abcef12fad7 -r 922d6f6d0b67 benchmark/benchmark.rb --- /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 diff -r 8abcef12fad7 -r 922d6f6d0b67 benchmark/bitonicSort_info --- 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) diff -r 8abcef12fad7 -r 922d6f6d0b67 benchmark/twice --- 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 diff -r 8abcef12fad7 -r 922d6f6d0b67 benchmark/twice_info --- 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)