BOAST 0.9992 → 0.9993

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/BOAST.gemspec +1 -1
  2. data/lib/BOAST/CKernel.rb +11 -1
  3. metadata +2 -2
data/BOAST.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'BOAST'
3
- s.version = "0.9992"
3
+ s.version = "0.9993"
4
4
  s.author = "Brice Videau"
5
5
  s.email = "brice.videau@imag.fr"
6
6
  s.homepage = "https://forge.imag.fr/projects/boast/"
data/lib/BOAST/CKernel.rb CHANGED
@@ -297,7 +297,17 @@ module BOAST
297
297
  @context = OpenCL::create_context([device])
298
298
  program = @context.create_program_with_source([@code.string])
299
299
  opts = options[:CLFLAGS]
300
- program.build(:options => options[:CLFLAGS])
300
+ begin
301
+ program.build(:options => options[:CLFLAGS])
302
+ rescue OpenCL::Error => e
303
+ puts e.to_s
304
+ puts prog.build_status
305
+ puts prog.build_log
306
+ if options[:verbose] or BOAST::get_verbose then
307
+ puts @code.string
308
+ end
309
+ raise "OpenCL Failed to build #{@procedure.name}"
310
+ end
301
311
  if options[:verbose] or BOAST::get_verbose then
302
312
  program.build_log.each {|dev,log|
303
313
  puts "#{device.name}: #{log}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: BOAST
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.9992'
4
+ version: '0.9993'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-26 00:00:00.000000000 Z
12
+ date: 2014-08-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: narray