mike vasiljevs's picture

OpenCL - AddVector.cs - example corrections

Project:The Open Toolkit library
Version:0.9.9-3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Source/Examples/OpenCL/VectorAdd.cs has Buffer writes (host -> device) missing; and "hCmdQueue" as queue (instead of hContext) in CL.EnqueueReadBuffer() when writing back to host

Diff file attached

regards
mike

AttachmentSize
VectorAdd.cs.diff_.zip545 bytes

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mike vasiljevs's picture

#1

version is the latest svn revision, 2334

the Fiddler's picture

#2

Version:all versions» 0.9.x-dev
Status:open» fixed

Committed to rev. 2352. Additionally, the sample should now print the result of the calculation.

Note: this is untested, as I cannot run OpenCL on my current machine.

the Fiddler's picture

#3

Version:0.9.x-dev» 0.9.9-3
Status:fixed» closed

Closing issues fixed in 0.9.9-3.