Skip to content

Fix ROCm/HIP build, GraphBolt, and OnDiskDataset compatibility - #26

Open
awelling2801 wants to merge 3 commits into
developfrom
awelling/rocm-hip-fixes
Open

Fix ROCm/HIP build, GraphBolt, and OnDiskDataset compatibility#26
awelling2801 wants to merge 3 commits into
developfrom
awelling/rocm-hip-fixes

Conversation

@awelling2801

Copy link
Copy Markdown

Summary

  • Fix ROCm/HIP build and test compatibility on recent PyTorch and hipCUB, including tensoradapter HIP support, cuco header patches, and hardened ROCm unit test scripts.
  • Restore GraphBolt HIP masquerading aliases and allocator/check macros so GraphBolt builds and runs on recent ROCm PyTorch stacks.
  • Add docker/Dockerfile.rocm (and sync the legacy CI Dockerfile) for building and testing DGL on ROCm.
  • Fix OnDiskDataset heterogeneous graph preprocessing when edge data is loaded from CSV (pandas can return read-only numpy arrays).

Test plan

  • Build ROCm Docker image with docker/Dockerfile.rocm (set ARG_GPU_BUILD_TARGETS for target GPU, e.g. gfx950)
  • Run bash tests/scripts/task_unit_test_rocm.sh pytorch gpu in container
  • Verify backend pytest suite passes (6981+ tests)
  • Verify graphbolt and dataloading dataloader test suites pass
  • Verify test_OnDiskDataset_heterogeneous[csv-*] and test_OnDiskDataset_preprocess_graph_with_single_type pass after pandas read-only fix

Made with Cursor

awelling and others added 3 commits August 21, 2026 12:10
Updates GraphBolt and the tensor adapter to use PyTorch's CUDA-masquerading HIP APIs, fixes hipCUB 5.0 iterator compatibility, and hardens ROCm CI with dynamic test ports and isolated DataLoader test runs.
Pandas can return read-only numpy views from to_numpy(), which breaks in-place
node-type offset updates during heterogeneous graph preprocessing.

Co-authored-by: Cursor <cursoragent@cursor.com>
Introduce docker/Dockerfile.rocm, sync the legacy CI Dockerfile, apply cuco
header patches during GraphBolt deps install, and restore HIP masquerading
aliases so GraphBolt builds against recent PyTorch ROCm stacks.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant