[cig-commits] [commit] devel, master: Added platform selection to kernels.rb (efef89c)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Thu Nov 6 08:23:57 PST 2014
Repository : https://github.com/geodynamics/specfem3d_globe
On branches: devel,master
Link : https://github.com/geodynamics/specfem3d_globe/compare/bc58e579b3b0838a0968725a076f5904845437ca...be63f20cbb6f462104e949894dbe205d2398cd7f
>---------------------------------------------------------------
commit efef89cb799a576ee9ea806953351f9073b40dab
Author: Brice Videau <brice.videau at imag.fr>
Date: Mon Jun 30 18:15:37 2014 +0200
Added platform selection to kernels.rb
>---------------------------------------------------------------
efef89cb799a576ee9ea806953351f9073b40dab
src/gpu/boast/kernels.rb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/gpu/boast/kernels.rb b/src/gpu/boast/kernels.rb
index f2392d1..18f1079 100644
--- a/src/gpu/boast/kernels.rb
+++ b/src/gpu/boast/kernels.rb
@@ -22,6 +22,9 @@ $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|
+ $options[:platform] = platform
+ }
opts.parse!
end
@@ -111,7 +114,7 @@ kernels.each { |kern|
}
res += "\";\n"
f.print res
- k.build(:verbose => $options[:verbose], :platform_vendor => "NVIDIA" ) if $options[:check]
+ k.build(:verbose => $options[:verbose], :platform_vendor => $options[:platform] ) if $options[:check]
end
if $options[:check] and (kern.to_s == "crust_mantle_impl_kernel_forward" or kern.to_s == "compute_stacey_acoustic_kernel") then
inputs = k.load_ref_inputs("../kernels.test/")
More information about the CIG-COMMITS
mailing list