Skip to content
This repository has been 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.

Using a pointer prevents stack overflow error that was reported on forums. Tested using Windows 10, Visual Studio 2015, CUDA 8.0.
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.

1 participant