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
filonenkoa wants to merge 2 commits intoudacity:masterfrom
filonenkoa:master
Open

Fixed stack overflow error (Lesson 2, atomics)#26
filonenkoa wants to merge 2 commits intoudacity:masterfrom
filonenkoa:master

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