Error using OpenCL API #383
|
Here is my code: And it threw exception: System.DivideByZeroException:“Attempted to divide by zero.” while executing GetPlatformIDs(xxx). Then I tried to write as the script in Silk.Net/src/Lab/CLMultiplication/Program.cs: And it threw the same exception. Environment:
|
Replies: 33 comments 1 reply
|
Can you please give the complete exception including the stack trace? I can't reproduce here. |
This comment has been hidden.
This comment has been hidden.
|
Oh nevermind I can see what I need to see. |
|
Can you try updating to Silk.NET 2.0 Preview 5? |
|
Emmmm |
|
I downloaded it directly on NuGet |
Now the updated verisons should pop up. Alternatively if that's giving you issues:
|
|
Wow really thanks!!! |
|
... |
|
Can you send me the stack trace again? The $exception.StackTrace string is what clued me in last time. It's impossible that that's the same, if it is you didn't upgrade correctly. |
|
at Silk.NET.OpenCL.CL.GetPlatformIDs(UInt32 num_entries, IntPtr* platforms, UInt32* num_platforms) |
|
My repository named "Study" is the problem project |
|
Your repo does not have the images required. |
|
Wow didn't it throw exceptions at calling clGetPlatformIDs API? |
|
Nope. |
|
I cried |
|
It's strange because we don't do any division. Can you try right clicking on the call stack window and enabling "Show external code"? |
|
未知 means unknown |
|
调用堆栈:Call Stack |
|
This looks to be an OpenCL bug, converting to discussion. Can you try updating your drivers? |
|
帧状态:Frame State |
|
I updated nvidia driver from v457.xx to v460.89 but it still not work |
|
It doesn't matter. Thank you for your time |








It doesn't matter. Thank you for your time