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

Workaround failure in bench_cg. Evaluate x array early #200

Merged
merged 1 commit into from
Dec 26, 2018

Conversation

umar456
Copy link
Member

@umar456 umar456 commented Dec 24, 2018

The bench_cg test was failing to execute on the CUDA backend because two non-linear JIT nodes were being combined and caused the resulting kernel parameter size to go above the threshold. The nodes did not cross the evaluation threshold before hand. This will need to be address upstream.

Upstream issue: arrayfire/arrayfire#2389

@@ -137,11 +138,11 @@ def timeit(calc, iters, args):

def test():
print("\nTesting benchmark functions...")
A, b, x0 = setup_input(50) # dense A
A, b, x0 = setup_input(50, 7) # dense A
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are going to add a new param explicitly, can you change this to be named parameters ? i.e. setup_input(n=50, sparsity=7)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@umar456 umar456 merged commit 9cea077 into arrayfire:master Dec 26, 2018
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

Successfully merging this pull request may close these issues.

2 participants