Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed reduction tests for certain numbers of blocks and threads #1

Open
adampbeardsley opened this issue Feb 22, 2017 · 0 comments
Open
Assignees

Comments

@adampbeardsley
Copy link

In exercise_solutions/cuda/reduction_atomic/kernel.cu, the test fails if we hard-code certain values for the blocks and threads in the kernel launch. For example, making line 112:
sumReduction<<< 32, 32 >>>( size, d_in, d_sum );
results in a test fail, but with no code or runtime error. This fails for certain values of (blocks,threads), but I haven't found a pattern yet. For example,
PASSES:
(31, 31)
(31, 33)
(32, 33)
(33, 31)
(33, 32)
(33, 33)
FAILS:
(31, 32)
(32, 31)
(32, 32)

Some smaller numbers also fail, like (1,2) and (2,1). But (1,1) works.
This is also seen in reduction3 and probably others.

@jnbntz jnbntz self-assigned this Mar 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants