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:
|
Beta Was this translation helpful? Give feedback.
Replies: 33 comments 1 reply
-
Can you please give the complete exception including the stack trace? I can't reproduce here. |
Beta Was this translation helpful? Give feedback.
-
System.DivideByZeroException |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
Oh nevermind I can see what I need to see. |
Beta Was this translation helpful? Give feedback.
-
Can you try updating to Silk.NET 2.0 Preview 5? |
Beta Was this translation helpful? Give feedback.
-
Emmmm |
Beta Was this translation helpful? Give feedback.
-
I downloaded it directly on NuGet |
Beta Was this translation helpful? Give feedback.
-
Now the updated verisons should pop up. Alternatively if that's giving you issues:
|
Beta Was this translation helpful? Give feedback.
-
Wow really thanks!!! |
Beta Was this translation helpful? Give feedback.
-
... |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
at Silk.NET.OpenCL.CL.GetPlatformIDs(UInt32 num_entries, IntPtr* platforms, UInt32* num_platforms) |
Beta Was this translation helpful? Give feedback.
-
My repository named "Study" is the problem project |
Beta Was this translation helpful? Give feedback.
-
Your repo does not have the images required. |
Beta Was this translation helpful? Give feedback.
-
Wow didn't it throw exceptions at calling clGetPlatformIDs API? |
Beta Was this translation helpful? Give feedback.
-
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"? |
Beta Was this translation helpful? Give feedback.
-
未知 means unknown |
Beta Was this translation helpful? Give feedback.
-
What's the text at the very top of the call stack? |
Beta Was this translation helpful? Give feedback.
-
调用堆栈:Call Stack |
Beta Was this translation helpful? Give feedback.
-
This looks to be an OpenCL bug, converting to discussion. Can you try updating your drivers? |
Beta Was this translation helpful? Give feedback.
-
Also, can you try Enable native code debugging and see if anything changes? |
Beta Was this translation helpful? Give feedback.
-
I enabled all native code debugging options in solution and the result is: |
Beta Was this translation helpful? Give feedback.
-
帧状态:Frame State |
Beta Was this translation helpful? Give feedback.
-
I updated nvidia driver from v457.xx to v460.89 but it still not work |
Beta Was this translation helpful? Give feedback.
-
It doesn't matter. Thank you for your time |
Beta Was this translation helpful? Give feedback.
It doesn't matter. Thank you for your time