-
Notifications
You must be signed in to change notification settings - Fork 96
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
Small tweaks to make compatible with dask-mpi #656
Small tweaks to make compatible with dask-mpi #656
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @jacobtomlinson, thanks.
FYI: I am working on the CI error: #658
Yeah, that is strange. I don't think there is any reason for that. @pentschev or @quasiben do you know if it is deliberate that |
I think there's no actual reason for that besides it not being a class that's trying to reproduce the behavior of
I haven't looked at it in detail to figure whether there's a difference, but it seems that the inheritance is from |
Heh it's probably my fault that it doesn't inherit from anything.
|
rerun tests |
Codecov Report
@@ Coverage Diff @@
## branch-21.08 #656 +/- ##
===============================================
Coverage ? 90.32%
===============================================
Files ? 15
Lines ? 1644
Branches ? 0
===============================================
Hits ? 1485
Misses ? 159
Partials ? 0 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that all tests now pass but the old CUDA 11.0 build is not running anymore, leaving CI in a failed state, we probably will need @rapidsai/ops-codeowners to force merge this.
@gpucibot merge |
Thanks @ajschmidt8 |
While working on GPU support in dask-mpi I ran into a few issues with
CUDAWorker
. This PR makes a few tweaks to ensure things are compatible.A valid option for
local_directory
is an empty string representing the current directory. So added a check before trying to create the directory.Integers are valid options for
name
so added an explicit cast to string when concatenating with GPU index.In
dask-mpi
it usesasync with
for creatingWorker
andNanny
objects. This broke withCUDAWorker
because__aenter__
and__aexit__
have not been implemented. Looking at distributed those methods are implemented in the baseServer
class, so I've updatedCUDAWorker
here to also useServer
as a base.I was surprised this wasn't the case already, but perhaps that was an intentional decision? If so it would be quick to implement the async context manager methods directly here instead.