I am new to CUDA, I have been working on matrix. In this program I want to add 2 matrices. It works very well in small matrix, but when I want to increase the number of row and col (for example more than 128), it does not work and result always is zero. I do not know What causes this problem.I use GT 1030 and cudaToolkit 9.1.Any suggestions?

put on hold as off-topic by Twisty Impersonator, BillP3rd, bertieb, James P, PeterH 12 hours ago

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question is not about computer hardware or software, within the scope defined in the help center." – Twisty Impersonator, BillP3rd, James P, PeterH
If this question can be reworded to fit the rules in the help center, please edit the question.