Enable parallelism in cudf & dask-cudf pytests - #188
Conversation
|
I've locally tested pytests with enabling cuda MPS, there isn't any noticeable speed up just by using MPS but however, it would help us with CUDA context switching when there are multiple processes. @rapidsai/ops-codeowners Could you point where the following set of commands need to be added in this repo? This set of commands except running pytests need to be executed as a root user. Startup MPS (Execute as root)export CUDA_VISIBLE_DEVICES="0" Run Pytests... End MPS (Execute as root)echo quit | nvidia-cuda-mps-control |
|
Can we handle MPS in a follow up? Is there a net benefit without MPS? |
Sure this can be done as a follow-up and maybe we can add MPS if we see context issues but currently I did not notice any difference in execution times. I've been using parallel pytests without enabling MPS for quite a very long time. So parallel pytests should run properly without enabling MPS too. |
|
I don't think we can enable MPS as running commands as root is not possible inside of the gpuCI docker containers. |
Didn't know that. In that case, we probably go ahead without MPS too. |
Due to the security concerns this is not an option in gpuCI. If there is a way to do this without |
|
IIRC this is a driver level setting that interacts with the kernel so you can't really run it within a container even with root unless you use the Lets move forward without MPS for now and can explore it in the future. |
|
rerun tests |
|
Blocked until |
|
rerun tests |
1 similar comment
|
rerun tests |
Resolves: #6370 This PR enables the parallel execution of pytests of `cudf`, `dask_cudf` & `custreamz` in CI. The changes also include adding `pytest-xdist` to dev environments. With these changes, here is the change in pytest execution times in CI: | module | without pytest-xdist | with pytest-xdist(n=6) | | ----------- | ----------- | -----------| | cudf | 1 hr | 14 min | | dask_cudf | 4 min | 1 min | | custreamz | 6 min | 2 min | Related Integration changes: rapidsai/integration#188 Authors: - galipremsagar <sagarprem75@gmail.com> Approvers: - AJ Schmidt - Keith Kraus URL: #6958
This PR enables pytest-xdist in cudf and dask-cudf pytests.