Note that there are some explanatory texts on larger screens.

plurals
  1. POCUDA samples matrixMul error
    primarykey
    data
    text
    <p>I am very new to cuda and started reading about parallel programming and cuda just a few weeks ago. After I installed the cuda toolkit, I was browsing the sdk samples (which come with the installation of the toolkit) and wanted to try some of them out. I started with <code>matrixMul</code> from 0_Simple folder. This program executes fine (I am using Visual Studio 2010). Now I want to change the size of the matrices and try with a bigger one (for example 960X960 or 1024x1024). In this case, something crashes (I get black screen, and then the message: display driver stopped responding and has recovered).</p> <p>I am changing this two lines in the code (from main function):</p> <pre><code> dim3 dimsA(8*4*block_size, 8*4*block_size, 1); dim3 dimsB(8*4*block_size, 8*4*block_size, 1); </code></pre> <p>before they were:</p> <pre><code>dim3 dimsA(5*2*block_size, 5*2*block_size, 1); dim3 dimsB(5*2*block_size, 5*2*block_size, 1); </code></pre> <p>Can someone point to me what I am doing wrong. and should I alter something else in this example for it to work properly. Thx! </p> <p>Edit: like some of you suggested, i changed the timeout value (0 somehow did not work for me, I set the timeout to 60), so my driver does not crash, but I get huge list of errors, like: ... ... ...</p> <pre><code>Error! Matrix[409598]=6.40005159, ref=6.39999986 error term is &gt; 1e-5 Error! Matrix[409599]=6.40005159, ref=6.39999986 error term is &gt; 1e-5 </code></pre> <p>Does this got something to do with the allocation of the memory. Should I make changes there and what could they be?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload