BOAST 1.3.3 → 1.3.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '0018ca6c7cd0bb34a289e2bca33368e17dc80f39'
4
- data.tar.gz: ddb3f445eb1115dc1d095dae2f9e6b8d418e6e66
3
+ metadata.gz: a08dddbeff252dc8f48dbca078159aabf612a217
4
+ data.tar.gz: cd4555d0b435ff4275cbb1cdcf9ae8939694e291
5
5
  SHA512:
6
- metadata.gz: bf37152987945905a54ae8d267d5c657724caa6f74fb694a99be6ed9ccb4a773fa62b3881273c376c96a2909b14635ea05399fed4270360806d8c6029c6e7b1d
7
- data.tar.gz: '098705bf24623a96a9ad8368b6644fb4b6c3b9f24636ffbdef10f23f589c247d13f88e34a8b5c87c35cc52c86dca5842b20536d875b0796e22c5a957fb46cd6d'
6
+ metadata.gz: 3b5586917cd2aa895880b8253307b455f02af3bcec7cd5d9e1f9b654645bab991815bcbd49a14822d5952ad4b3dba4fc5a8ac01904bfda149dd34dcef6d10abb
7
+ data.tar.gz: ef3a5b5c62c0c07b0b22159869e34bba73c6d2b1b6262c2e96ae4a429faa79cb9d4c5c4f5d91971597bd2d72bc6a7179643ad92902883be9af9edf077ab7ca08
data/BOAST.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'BOAST'
3
- s.version = "1.3.3"
3
+ s.version = "1.3.4"
4
4
  s.author = "Brice Videau"
5
5
  s.email = "brice.videau@imag.fr"
6
6
  s.homepage = "https://github.com/Nanosim-LIG/boast"
@@ -29,6 +29,7 @@ module BOAST
29
29
  get_output.write <<EOF
30
30
  extern "C" {
31
31
  #{@procedure.send(:boast_header_s,CUDA)}{
32
+ int _boast_i;
32
33
  dim3 dimBlock(_boast_block_size[0], _boast_block_size[1], _boast_block_size[2]);
33
34
  dim3 dimGrid(_boast_block_number[0], _boast_block_number[1], _boast_block_number[2]);
34
35
  cudaEvent_t __start, __stop;
@@ -36,7 +37,7 @@ extern "C" {
36
37
  cudaEventCreate(&__start);
37
38
  cudaEventCreate(&__stop);
38
39
  cudaEventRecord(__start, 0);
39
- for( int _boast_i = 0; _boast_i < _boast_repeat; _boast_i ++) {
40
+ for( _boast_i = 0; _boast_i < _boast_repeat; _boast_i ++) {
40
41
  #{@procedure.name}<<<dimGrid,dimBlock>>>(#{@procedure.parameters.join(", ")});
41
42
  }
42
43
  cudaEventRecord(__stop, 0);
@@ -279,7 +279,8 @@ EOF
279
279
  end
280
280
 
281
281
  def create_procedure_call
282
- get_output.puts " for(int _boast_i = 0; _boast_i < _boast_repeat; ++_boast_i){"
282
+ get_output.puts " int _boast_i;"
283
+ get_output.puts " for(_boast_i = 0; _boast_i < _boast_repeat; ++_boast_i){"
283
284
  get_output.print " _boast_ret = " if @procedure.properties[:return]
284
285
  get_output.print " #{method_name}( "
285
286
  get_output.print create_procedure_call_parameters.join(", ")
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: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brice Videau