BOAST 0.998 → 0.999
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.
- data/BOAST.gemspec +1 -1
- data/lib/BOAST/CKernel.rb +2 -2
- metadata +1 -1
data/BOAST.gemspec
CHANGED
data/lib/BOAST/CKernel.rb
CHANGED
|
@@ -279,7 +279,7 @@ module BOAST
|
|
|
279
279
|
program.build(:options => options[:CLFLAGS])
|
|
280
280
|
if options[:verbose] then
|
|
281
281
|
program.build_log.each {|dev,log|
|
|
282
|
-
|
|
282
|
+
puts "#{device.name}: #{log}"
|
|
283
283
|
}
|
|
284
284
|
end
|
|
285
285
|
@queue = @context.create_command_queue(device, :properties => OpenCL::CommandQueue::PROFILING_ENABLE)
|
|
@@ -644,7 +644,7 @@ EOF
|
|
|
644
644
|
size_t array_size;
|
|
645
645
|
Data_Get_Struct(rb_ptr, struct NARRAY, n_ary);
|
|
646
646
|
array_size = n_ary->total * na_sizeof[n_ary->type];
|
|
647
|
-
cudaMemcpy(
|
|
647
|
+
cudaMemcpy((void *) n_ary->ptr, #{param.name}, array_size, cudaMemcpyDeviceToHost);
|
|
648
648
|
EOF
|
|
649
649
|
end
|
|
650
650
|
module_file.print <<EOF
|