Skip to content

Failures on GPU CI #8825

Closed
Closed

Description

@jsignell

Some failures just started cropping up on GPU CI. I thought that they might be related to #8818 but the tests passed fine there. But it looks like it might just be an out of memory error, so I'm really not sure. Here's an example:

engine = 'cudf', how = 'leftanti', parts = (3, 3)

    @pytest.mark.parametrize("parts", [(3, 3), (3, 1), (1, 3)])
    @pytest.mark.parametrize("how", ["leftsemi", "leftanti"])
    @pytest.mark.parametrize(
        "engine",
        [
            pytest.param(
                "pandas",
                marks=pytest.mark.xfail(
                    reason="Pandas does not support leftsemi or leftanti"
                ),
            ),
            pytest.param("cudf", marks=pytest.mark.gpu),
        ],
    )
    def test_merge_tasks_semi_anti_cudf(engine, how, parts):
        if engine == "cudf":
            # NOTE: engine == "cudf" requires cudf/dask_cudf,
            # will be skipped by non-GPU CI.
    
            cudf = pytest.importorskip("cudf")
            dask_cudf = pytest.importorskip("dask_cudf")
    
        emp = pd.DataFrame(
            {
                "emp_id": np.arange(101, stop=106),
                "name": ["John", "Tom", "Harry", "Rahul", "Sakil"],
                "city": ["Cal", "Mum", "Del", "Ban", "Del"],
                "salary": [50000, 40000, 80000, 60000, 90000],
            }
        )
        skills = pd.DataFrame(
            {
                "skill_id": [404, 405, 406, 407, 408],
                "emp_id": [103, 101, 105, 102, 101],
                "skill_name": ["Dask", "Spark", "C", "Python", "R"],
            }
        )
    
        if engine == "cudf":
>           emp = cudf.from_pandas(emp)

dask/dataframe/tests/test_multi.py:911: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/conda/envs/dask/lib/python3.9/contextlib.py:79: in inner
    return func(*args, **kwds)
/opt/conda/envs/dask/lib/python3.9/site-packages/cudf/core/dataframe.py:6282: in from_pandas
    return DataFrame.from_pandas(obj, nan_as_null=nan_as_null)
/opt/conda/envs/dask/lib/python3.9/contextlib.py:79: in inner
    return func(*args, **kwds)
/opt/conda/envs/dask/lib/python3.9/site-packages/cudf/core/dataframe.py:4376: in from_pandas
    df[col_name] = column.as_column(
/opt/conda/envs/dask/lib/python3.9/site-packages/cudf/core/column/column.py:1987: in as_column
    data = as_column(
/opt/conda/envs/dask/lib/python3.9/site-packages/cudf/core/column/column.py:1780: in as_column
    col = ColumnBase.from_arrow(arbitrary)
/opt/conda/envs/dask/lib/python3.9/site-packages/cudf/core/column/column.py:302: in from_arrow
    result = libcudf.interop.from_arrow(data, data.column_names)[0]["None"]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   ???
E   RuntimeError: CUDA error encountered at: /workspace/.conda-bld/work/cpp/src/bitmask/null_mask.cu:93: 2 cudaErrorMemoryAllocation out of memory

cudf/_lib/interop.pyx:167: RuntimeError

https://gpuci.gpuopenanalytics.com/job/dask/job/dask/job/prb/job/dask-prb/1554/

ping @charlesbluca @quasiben @rjzamora

Activity

  1. added
    tests
    on Mar 18, 2022
  2. jakirkham commented on Mar 18, 2022

    @jakirkham
    Member

    Have raised offline as well

  3. galipremsagar commented on Mar 18, 2022

    @galipremsagar
    Contributor

    Hi @jsignell, it could be another API that is using more GPU memory while this particular test was executing - we are investigating what is that.

    But meanwhile, I opened a PR to reduce the gpu test parallelism to unblock the release: #8826

  4. jakirkham commented on Mar 18, 2022

    @jakirkham
    Member

    So Prem's PR is merged, which should unblock the release here.

    Though maybe we can leave this open while we dig into the underlying memory issue?

  5. jrbourbeau commented on Apr 6, 2022

    @jrbourbeau
    Member

    Just noting that I've seen this cudaErrorMemoryAllocation out of memory error show up again (e.g. see this gpuCI build that ran over in #8881)

    List of failing tests:
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[disk-a-False]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[disk-c-False]
    14:44:16 FAILED dask/array/tests/test_cupy_sparse.py::test_sparse_dot[input_sizes0-csr]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[disk-a-True]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[disk-c-True]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[disk-a-None]
    14:44:16 FAILED dask/array/tests/test_cupy_sparse.py::test_sparse_dot[input_sizes0-csc]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[disk-c-None]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[disk-by4-True]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[disk-d-False]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[disk-by4-None]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[disk-d-True]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[disk-by5-False]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[disk-d-None]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[tasks-a-False]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[disk-by5-True]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[disk-by3-False]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[tasks-a-True]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[disk-by5-None]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[tasks-a-None]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[disk-by3-True]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[tasks-c-True]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[disk-by3-None]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[tasks-c-False]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[tasks-c-None]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[tasks-d-True]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[disk-by4-False]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[tasks-d-False]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[tasks-by3-True]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[tasks-d-None]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[tasks-by4-False]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[tasks-by3-None]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[tasks-by3-False]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[tasks-by4-True]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[tasks-by4-None]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[tasks-by5-False]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_large_ints_exception[disk-cudf]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[tasks-by5-None]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_dropna_cudf[tasks-by5-True]
    14:44:16 FAILED dask/dataframe/tests/test_multi.py::test_merge_tasks_semi_anti_cudf[cudf-leftsemi-parts1]
    14:44:16 FAILED dask/dataframe/tests/test_groupby.py::test_groupby_large_ints_exception[tasks-cudf]
    14:44:16 FAILED dask/dataframe/tests/test_multi.py::test_merge_tasks_semi_anti_cudf[cudf-leftsemi-parts0]
    14:44:16 FAILED dask/dataframe/tests/test_multi.py::test_merge_tasks_semi_anti_cudf[cudf-leftanti-parts1]
    14:44:16 FAILED dask/dataframe/tests/test_multi.py::test_merge_tasks_semi_anti_cudf[cudf-leftsemi-parts2]
    14:44:16 FAILED dask/dataframe/tests/test_multi.py::test_merge_tasks_semi_anti_cudf[cudf-leftanti-parts0]
    14:44:16 FAILED dask/dataframe/tests/test_multi.py::test_merge_tasks_semi_anti_cudf[cudf-leftanti-parts2]
    14:44:16 FAILED dask/dataframe/tests/test_multi.py::test_groupby_concat_cudf[cudf] - R...
    14:44:16 FAILED dask/dataframe/tests/test_shuffle.py::test_set_index_interpolate_int[cudf]
    14:44:16 FAILED dask/dataframe/tests/test_shuffle.py::test_set_index_interpolate[cudf]
    14:44:16 FAILED dask/dataframe/tests/test_shuffle.py::test_set_index[cudf] - ValueErro...
    14:44:16 FAILED dask/dataframe/tests/test_shuffle.py::test_set_index_interpolate_large_uint[cudf]
    
  6. bryanwweber commented on Apr 6, 2022

    @bryanwweber
    Contributor
  7. galipremsagar commented on Apr 6, 2022

    @galipremsagar
    Contributor

    I have been triaging this issue and was narrowed down to the specific PR that started causing excessive memory usage to this PR: #7980. If I revert this PR locally I don't run into a memory issue. But I haven't yet arrived at a minimal reproducer. It appears that some of the cupy specific tests are using up more memory and thus any other GPU tests running after or in parallel to them will see a cudaErrorMemoryAllocation error.

  8. jakirkham commented on Apr 6, 2022

    @jakirkham
    Member

    cc @pentschev (for awareness)

  9. quasiben commented on Mar 14, 2023

    @quasiben
    Member

    gpuCI has long since been fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions