
OpenCL Sample: VectorAdd
Posted Wednesday, 21 October, 2009 - 10:15 by Anonymous| Project: | The Open Toolkit library |
| Version: | 0.9.9-2b |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
I have Intel Pentium M HT 3.2GHz, 1 Gb RAM, WinXP 32bit SP3, no OpenCL compatible graphics card (mobility radeon 9700).
I have installed ATI stream SDK 2 beta 4. All samples in the SDK work also the library OpenCL.NET also works for me.
I get this exception when I start the vector addition sample:
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt at OpenTK.Compute.Cl10.CL.Core.CreateContextFromType(ContextProperties* properties, DeviceTypeFlags device_type, IntPtr pfn_notify, IntPtr user_Data, ErrorCode* errcode_ret)
at OpenTK.Compute.CL10.CL.CreateContextFromType(ContextProperties * properties, DeviceTypeFlags devicetype, IntPtr pfn_notify, IntPtr user_data, Error Code* errorcode_ret) in C:\Users\Stefanos\Desktop\opentk-all\opentk-0.9.9-2b\Source\OpenTK\Compute\CL10\CL.cs:line 1629 at Examples.FFT.Main() in C:\Users\Stefanos\Desktop\opentk-all\opentk-0.9.9-2b\Source\OpenTK\Compute\CL10\VectorAdd.cs
(I've typed the above by hand so I do not guarantee 100% correctness)


Comments
#1
Launching sample: "Vector Addition"
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at OpenTK.Compute.CL10.CL.Core.CreateContextFromType(ContextProperties* properties, DeviceTypeFlags device_type, IntPtr pfn_notify, IntPtr user_data, ErrorCode* errcode_ret)
at OpenTK.Compute.CL10.CL.CreateContextFromType(ContextProperties* properties, DeviceTypeFlags device_type, IntPtr pfn_notify, IntPtr user_data, ErrorCode* errcode_ret) in C:\Users\Stefanos\Desktop\opentk-all\opentk-0.9.9-2b\Source\OpenTK\Compute\CL10\CL.cs:line 1629
at Examples.FFT.Main() in C:\Users\Stefanos\Desktop\opentk-all\opentk-0.9.9-2b\Source\Examples\OpenCL\VectorAdd.cs:line 39
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at Examples.ExampleBrowser.RunSample(Control parent, ExampleInfo e) in C:\Users\Stefanos\Desktop\opentk-all\opentk-0.9.9-2b\Source\Examples\ExampleBrowser.cs:line 335
#2
This has been fixed in SVN & OpenTK 0.9.9-3 (will be released in an hour or so).
#4
This should have been close a while a go...