Skip to content

Test on WSL in CI - #567

Draft
bdice wants to merge 30 commits into
rapidsai:mainfrom
bdice:wsl-ci
Draft

bdice wants to merge 30 commits into
rapidsai:mainfrom
bdice:wsl-ci

Conversation

@bdice

@bdice bdice commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Contributes to rapidsai/build-planning#114

Adds the wsl-pr / wsl-nightly migration matrices to conda-cpp-tests and wheels-test, which adds one WSL job to each in PRs and nightlies.

Depends on rapidsai/shared-workflows#683 (merged).

@bdice bdice added non-breaking Introduces a non-breaking change improvement Improves an existing functionality labels Nov 3, 2026
@copy-pr-bot

copy-pr-bot Bot commented Nov 3, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@bdice

bdice commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 9ba70a6

@bdice

bdice commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 3f64898

@bdice bdice added the DO NOT MERGE Hold off on merging; see PR for details label Nov 3, 2026
@bdice

bdice commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 8baabdb

@bdice

bdice commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 6927c29

@bdice

bdice commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test cb6153a

@bdice

bdice commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test fd8d8f5

@bdice

bdice commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 2caf934

@bdice

bdice commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor Author

(my agent wrote this)

WSL CI findings (update)

All 60 jobs pass on 9f1725a, including the three WSL jobs. wheel-tests-cugraph-pyg on WSL needed one rerun for an intermittent PyTorch flake (section 3). All TEMP diagnostic commits are reverted. 9f1725a reverts all eight remaining TEMP commits at once, even though its message names only the last one. The branch diff against main contains only the changes listed here.

Final run: https://github.com/rapidsai/cugraph-gnn/actions/runs/42017711911?pr=567

  • conda-cpp-tests (wsl, rtxpro6000): passed (job)
  • wheel-tests-pylibwholegraph (wsl, h100): passed (job)
  • wheel-tests-cugraph-pyg (wsl, h100): passed on rerun (attempt 2, job). Attempt 1 hit the PyTorch flake in section 3.
  • All Linux jobs passed. pr-builder passed. The only red check is Label Checker (DO NOT MERGE).

1. NCCL init fails (unhandled cuda error): worked around in CI config

As described in the earlier comment, the WSL driver reports GPU_DIRECT_RDMA_WITH_CUDA_VMM_SUPPORTED=1, but cuMemSetAccess fails with CUDA error 999 on the RDMA-capable cuMem allocations that NCCL makes. NCCL sets gpuDirectRDMACapable whenever that attribute is 1 (src/include/alloc.h) and has no knob to turn it off, so the only workaround is NCCL's non-cuMem path. That path needs more than Docker's default 64 MB /dev/shm.
Fix: d059e04 sets NCCL_CUMEM_ENABLE=0 only on WSL (grep -qi microsoft /proc/version) in ci/test_cpp.sh and both wheel test scripts. It also sets container-options: "--shm-size=1g" on the three test jobs in pr.yaml/test.yaml, and 866a1b8 is a copyright-header lint fix. With this, NCCL init works and /dev/shm shows 1.0G (log).

2. WholeMemory host memory: dev_ptr == mmap_ptr check failed, fixed in libwholegraph

With NCCL working, every remaining C++ and pylibwholegraph failure was memory_handle.cpp line=597: dev_ptr == mmap_ptr check failed (C++ log, pylibwholegraph log). It also caused the Fatal Python error: Aborted in the sampling tests and in cugraph-pyg's vmm backend with location="cpu".
Root cause: intranode host CONTINUOUS/CHUNKED WholeMemory calls cudaHostRegister on a shared host mapping and then uses the host pointer as the device pointer. On WSL cudaDevAttrCanUseHostPointerForRegisteredMem == 0: a ctypes probe in rapidsai/ci-conda on a WSL2 box showed cudaHostGetDevicePointer returning a different address (e.g. 0x204c00000) for malloc, SysV shm, POSIX shm and anonymous mmap memory. This is a documented device capability, not a bug.
Fixes:

  • 421b64e: support_type_location() reports intranode host CONTINUOUS/CHUNKED as unsupported when the device lacks cudaDevAttrCanUseHostPointerForRegisteredMem. The existing tests already skip unsupported type/location combinations; the one test that didn't check (WholeMemoryMatrixTest.SubTensorTest) now does. DISTRIBUTED host memory and all device memory are unaffected.
  • 3c18db8: cugraph-pyg's FeatureStore/GraphStore choose the default vmm backend only when WholeMemory supports CONTINUOUS memory at the requested location, and fall back to nccl otherwise. Tests cover the fallback; the explicit vmm + cpu parametrizations skip where unsupported.
    Result: WSL C++ tests pass (the [ SKIPPED ] cases are the host CONTINUOUS/CHUNKED variants), and WSL pylibwholegraph passes 426 tests (log). The full WSL cugraph-pyg suite passed 182 tests with 76.7% coverage (log).

3. Unresolved intermittent flakes in wheel-tests-cugraph-pyg (WSL h100)

  • PyTorch c10::ApproximateClock assert. A spawned worker in test_dist_matrix[cuda] aborted with fast_1 >= fast_0 INTERNAL ASSERT FAILED ... getCount is non-monotonic while loading libc10_cuda.so (log). PyTorch calibrates with two rdtsc reads; the TSC is not monotonic across vCPUs in the Hyper-V VM. This is upstream Got this error when just running my flask script pytorch/pytorch#129992. I reran the failed job.
  • WholeMemory communicator init hang. In 4 of about 13 attempts on the WSL h100 runner, the first test (test_feature_store_basic_api[nccl]) hung in wholememory.create_communicator. NCCL INFO shows the NCCL comm finishing init, so the hang is in WholeMemory's post-init steps. It then aborted after about 13-20 minutes (log). It didn't reproduce on a local WSL2 box, with -s, or in the last two full runs. I couldn't get a native stack: gdb/py-spy need --cap-add=SYS_PTRACE, and the run that had it didn't hang. If it recurs, the next step is that watchdog with gdb.

@bdice

bdice commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 058e2b5

1 similar comment
@bdice

bdice commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 058e2b5

@bdice

bdice commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 866a1b8

@bdice

bdice commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test c463d9d

@bdice

bdice commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 758f818

@bdice

bdice commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 6a25c16

@bdice

bdice commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 3188bc3

@bdice

bdice commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 653c5f3

@bdice

bdice commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test d51fda4

@bdice

bdice commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 16d81d8

@bdice

bdice commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 9f1725a

@bdice

bdice commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test e7b4e9b

@bdice

bdice commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 275deb6

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

Labels

DO NOT MERGE Hold off on merging; see PR for details improvement Improves an existing functionality non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant