Skip to content

Commit

Permalink
Refactor print statement to display vector data
Browse files Browse the repository at this point in the history
  • Loading branch information
ulises-jeremias committed Mar 24, 2024
1 parent 89dda60 commit 215a882
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/vcl_opencl_basic/main.v
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ fn main() {
panic(err)
}
println('\n\nCreated vector: ${v}')
println(v.data()!)
vector_data := v.data()!
println('\n\nVector data: ${vector_data}')

// add program source to device, get kernel
device.add_program(kernel_source)!
Expand Down

0 comments on commit 215a882

Please sign in to comment.