Skip to content
This repository was archived by the owner on Jun 27, 2022. It is now read-only.

Fixed stack overflow error (Lesson 2, atomics) #26

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fixed stack overflow error (Lesson 2, atomics) #26

wants to merge 2 commits into from

Conversation

filonenkoa
Copy link

int h_array[ARRAY_SIZE] caused the stack overflow for a huge ARRAY_SIZE value (this issue was reported on forums). Using a pointer solved this problem.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Using a pointer prevents stack overflow error that was reported on forums. Tested using Windows 10, Visual Studio 2015, CUDA 8.0.

Partially verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
Update atomics.cu to fix stack overflow error
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant