[cig-commits] [commit] devel: better kernel selection (2f03d94)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Tue Jul 29 09:57:06 PDT 2014
Repository : https://github.com/geodynamics/specfem3d_globe
On branch : devel
Link : https://github.com/geodynamics/specfem3d_globe/compare/e21ea2ffe05127e06dc547229fa9617f7f56559c...9b7489516553b79bc155e080df413bcf6900932f
>---------------------------------------------------------------
commit 2f03d940548bc91196eccceea42493d1951743ea
Author: Brice Videau <brice.videau at imag.fr>
Date: Thu Jul 10 11:53:06 2014 +0200
better kernel selection
>---------------------------------------------------------------
2f03d940548bc91196eccceea42493d1951743ea
src/gpu/boast/kernels.rb | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/gpu/boast/kernels.rb b/src/gpu/boast/kernels.rb
index 3cdabad..4d2b31d 100644
--- a/src/gpu/boast/kernels.rb
+++ b/src/gpu/boast/kernels.rb
@@ -22,9 +22,12 @@ $parser = OptionParser::new do |opts|
opts.on("-o","--output-dir DIR","Output directory") { |dir|
$options[:output_dir] = dir
}
- opts.on("-p","--platform PLATFORM","Output directory") { |platform|
+ opts.on("-p","--platform PLATFORM","Selected Platform") { |platform|
$options[:platform] = platform
}
+ opts.on("-k","--kernel KERNEL","Selected kernel") { |kernel|
+ $options[:kernel] = kernel
+ }
opts.parse!
end
@@ -85,7 +88,9 @@ class Float
end
end
-kernels.each { |kern|
+kerns = kernels
+kerns = kerns.select { |k,v| k.to_s.match($options[:kernel]) } if $options[:kernel]
+kerns.each { |kern|
require "./#{kern.to_s}.rb"
puts kern.to_s
langs.each { |lang|
More information about the CIG-COMMITS
mailing list