Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
3c10cff
port vecadd example
brandon-b-miller Mar 11, 2022
b57da5b
add kernel examples to cuda docs
brandon-b-miller Mar 16, 2022
f6b30f7
partially address reviews
brandon-b-miller Apr 1, 2022
cace1f9
continue responding to feedback
brandon-b-miller Apr 5, 2022
c1a383f
move figures
brandon-b-miller Apr 5, 2022
3d0b7a5
addressing remaining comments
brandon-b-miller Apr 5, 2022
638a52f
add a word about reduction
brandon-b-miller Apr 5, 2022
a079330
style
brandon-b-miller Apr 8, 2022
d787299
label def has _, but the reference does not
brandon-b-miller Apr 8, 2022
90ffdf9
optionally regenerate figures
brandon-b-miller Apr 18, 2022
fb779cc
assert integration results match maple
brandon-b-miller Apr 18, 2022
0df542b
Apply suggestions from code review
brandon-b-miller Apr 18, 2022
9527730
Merge branch 'jit-examples' of github.com:brandon-b-miller/numba into…
brandon-b-miller Apr 18, 2022
b0efa05
address reviews
brandon-b-miller Apr 18, 2022
dffef47
remove redundant wording
brandon-b-miller Apr 18, 2022
215564e
Apply suggestions from code review
brandon-b-miller Apr 19, 2022
5f78980
Apply suggestions from code review
brandon-b-miller Apr 19, 2022
d6eedef
update test_reduction and relevant docs
brandon-b-miller Apr 19, 2022
dd7fc35
update montecarlo example
brandon-b-miller Apr 19, 2022
b779dab
Apply suggestions from code review
brandon-b-miller Apr 25, 2022
943c2fd
more addressing of reviews
brandon-b-miller Apr 25, 2022
023476a
Merge branch 'jit-examples' of github.com:brandon-b-miller/numba into…
brandon-b-miller Apr 25, 2022
577dd37
flake8
brandon-b-miller Apr 25, 2022
f252db3
Apply suggestions from code review
brandon-b-miller Apr 28, 2022
57ed078
updates for review
brandon-b-miller Apr 28, 2022
daef20d
Fixes for the Laplace example
gmarkall Apr 27, 2022
abadabc
small bugfix for plot=False
brandon-b-miller Apr 28, 2022
8ad3ea0
small fix
brandon-b-miller Apr 28, 2022
4d36f38
pacify flake8
brandon-b-miller Apr 28, 2022
c161e8e
Skip tests that use CG if cudadevrt is missing
gmarkall Apr 29, 2022
1b77d36
Use manual configuration for test_reduction
gmarkall Apr 29, 2022
09e1d6d
Skip tests that use grid sync on CC < 6.0
gmarkall May 16, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use manual configuration for test_reduction
The example relies on a single block being launched, but a forall isn't
guaranteed to generate a configuration with a single block - for
example, on the RTX A6000 it creates the configuration `[2, 768]`.

Explicitly configuring the launch resolves this issue.
  • Loading branch information
gmarkall committed Apr 29, 2022
commit 1b77d364962d77976f4c0c6c8311274e47e3c6e1
6 changes: 3 additions & 3 deletions numba/cuda/tests/doc_examples/test_reduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ def array_sum(data):
# ex_reduction.kernel.end

# ex_reduction.launch.begin
array_sum.forall(len(a))(a)
print(a[0]) # 523776
sum(np.arange(1024)) # 523776
array_sum[1, nelem](a)
print(a[0]) # 523776
print(sum(np.arange(1024))) # 523776
# ex_reduction.launch.end

np.testing.assert_equal(a[0], sum(np.arange(1024)))
Expand Down