Closed GijsVanoppen closed 1 year ago
hi @GijsVanoppen. what version of ILGPU are you using?
This is sounding a bit like #1075.
I'm using version 1.5.0
Could you please try downgrading to ILGPU v1.4 and see if that helps?
Nope, that didn't help. The same issue pops up
I also updated the driver of my processor with integrated graphics, and that didn't help.
Moreover, if I replace
if (kernelIndex % 2 == 0)
with
int test = kernelIndex;
if (test % 2 == 0)
It crashes.
int test = kernelIndex; It doesn't crash
So I can assign the value of the kernelIndex
to a test
variable just fine, but then when I do something with test
or kernelIndex
like applying the '%' operator or applying '==' or '>', the program crashes. And it always does this with the same error message
@GijsVanoppen If you are able, please join our Discord server. It might be easier for us to provide support there.
This issue was fixed in #1084.
Hello,
Let me preface this by saying I'm still quite new to GPGPU, so if my questions are simple, I apologise for wasting your time.
My program has one kernel:
The details inside of the if statement does not matter. The problem I'm having is that when I remove the if statement (keeping the body of course), the program works. It does crash my laptop screen for a bit (the CPU and my integrated graphics card are then at 100% usage). I wanted to limit how much my resources are used, so that is why I added the if statement. However, the program crashes with the following error message: System.AccessViolationException: 'Attempted to read or write protected memory. This often indicates that other memory is corrupted." (the error message was written in my native language instead of English so the exact wording may be different)
Even when I replace the if statement with something stupid like
if (kernelIndex > 0)
, the same error message appears.How can I avoid this? Or better yet, is there a better way to make sure my program doesnt take up 100% of my CPU and GPU?
Thank you in advance!
P.S. In case you need it, this is how I loaded and executed my kernel
And my specs: Processor: AMD Ryzen 7 PRO 3700U w/ Radeon Vega Mobile Gfx GPU: AMD Radeon(TM) Vega 10 Graphics