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

Make numba.dummyarray.Array iterable #4629

Merged
merged 1 commit into from Nov 7, 2019
Merged

Conversation

leofang
Copy link
Contributor

@leofang leofang commented Sep 27, 2019

Fixed #4201. @sklam we need this and #4609 to test Numba device arrays in mpi4py, so I went ahead and fixed it myself. Please take a look. (It doesn't have to be included in 0.46RC, so no rush.)

Thanks!

@leofang
Copy link
Contributor Author

leofang commented Oct 15, 2019

This should be ready for review btw.

@stuartarchibald
Copy link
Contributor

@sklam please could you have a look at this, thanks.

@seibert
Copy link
Contributor

seibert commented Nov 4, 2019

This looks reasonable, and fixes the getitem implementation to properly raise IndexError (which it wasn't before).

@seibert seibert added 5 - Ready to merge Review and testing done, is ready to merge and removed 3 - Ready for Review labels Nov 4, 2019
@sklam sklam added the CUDA CUDA related issue/PR label Nov 6, 2019
@sklam
Copy link
Member

sklam commented Nov 6, 2019

This needs a CUDA smoke test. The dummyarray is used a lot there.

@sklam sklam added Pending BuildFarm For PRs that have been reviewed but pending a push through our buildfarm 5 - Ready to merge Review and testing done, is ready to merge BuildFarm Passed For PRs that have been through the buildfarm and passed and removed 5 - Ready to merge Review and testing done, is ready to merge Pending BuildFarm For PRs that have been reviewed but pending a push through our buildfarm labels Nov 6, 2019
@seibert seibert merged commit 0abedd8 into numba:master Nov 7, 2019
@leofang leofang deleted the fix_4201 branch November 7, 2019 17:38
@leofang
Copy link
Contributor Author

leofang commented Nov 26, 2019

Thanks everyone!

leofang added a commit to leofang/mpi4py that referenced this pull request Jan 2, 2020
This command works with Open MPI 4.0.1 (compiled with the --with-cuda flag):

    python test/runtests.py --numba --no-thread -v

The implementation is a minimum requirement for circumventing many Numba bugs,
which is unfortunate. Even so, we still need Numba 0.46 + the two patches from
numba/numba#4629 and numba/numba#5012 to make it fully work.

TODO: figure out the minimum supported Numba version and error out when the
installed version is lower than that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to merge Review and testing done, is ready to merge BuildFarm Passed For PRs that have been through the buildfarm and passed CUDA CUDA related issue/PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

numba.cuda.cudadrv.devicearray.DeviceNDArray is not iterable
4 participants