BOAST 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/BOAST.gemspec +1 -1
- data/lib/BOAST/Runtime/CUDARuntime.rb +2 -1
- data/lib/BOAST/Runtime/CompiledRuntime.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a08dddbeff252dc8f48dbca078159aabf612a217
|
4
|
+
data.tar.gz: cd4555d0b435ff4275cbb1cdcf9ae8939694e291
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b5586917cd2aa895880b8253307b455f02af3bcec7cd5d9e1f9b654645bab991815bcbd49a14822d5952ad4b3dba4fc5a8ac01904bfda149dd34dcef6d10abb
|
7
|
+
data.tar.gz: ef3a5b5c62c0c07b0b22159869e34bba73c6d2b1b6262c2e96ae4a429faa79cb9d4c5c4f5d91971597bd2d72bc6a7179643ad92902883be9af9edf077ab7ca08
|
data/BOAST.gemspec
CHANGED
@@ -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(
|
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 "
|
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(", ")
|