Skip to content

Commit

Permalink
Merge branch 'main' of github.com:vlang/vsl into feature/new-lapack
Browse files Browse the repository at this point in the history
* 'main' of github.com:vlang/vsl:
  Refactor print statement to display vector data
  • Loading branch information
ulises-jeremias committed Mar 24, 2024
2 parents 0832f6d + 215a882 commit ae0628b
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 ae0628b

Please sign in to comment.