Skip to content
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

Scripts for Hipifying DGL in place #1

Merged

Conversation

GMNGeoffrey
Copy link
Collaborator

These are the result of iterative work on the hipified files, so we're
prefetching some replacements I didn't discover until later. The source
files also need some modification to make this all work.

Also some .gitignore additions mostly for VSCode and CMake.

Note: I think we should probably not merge this into the master branch
and rather keep that a pristine copy of upstream with a separate branch
for the hipify stuff.

These are the result of iterative work on the hipified files, so we're
prefetching some replacements I didn't discover until later. The source
files also need some modification to make this all work.
@GMNGeoffrey
Copy link
Collaborator Author

@jeffdaily PTAL

@jeffdaily
Copy link
Collaborator

So far so good.

@GMNGeoffrey GMNGeoffrey changed the base branch from master to hipify-inplace January 22, 2025 17:51
@GMNGeoffrey GMNGeoffrey merged commit f8a99c1 into nod-ai:hipify-inplace Jan 22, 2025
GMNGeoffrey added a commit that referenced this pull request Jan 29, 2025
This is just the output of the hipify-inplace.sh and hipify-tensoradapter.py scripts with no further modifications, so probably you'll want to just spot-check.

I think it will be easier to review changes to the actual HIP source directly rather than trying to thing about what the hipify script will do and since there are a decent number of changes to get the build and tests working, that seems worth it. In the end we should have a bunch of hip source files and .prehip cuda files that they can be generated from. Then we can handle organization however we want: restore the originals and have hipification be part of a build process, have the hip versions on a separate branch, etc.

I put the .prehip files in a separate commit to keep things a bit cleaner.

Note that this PR is based off of #1. I didn't make that the base branch though because then it would all be in my fork.
GMNGeoffrey added a commit that referenced this pull request Jan 29, 2025
These changes are on the original DGL source code. These plus running `script/hipify-inplace.sh` yields the hipified version of DGL which is identical to the code currently in #9. The version in this commit should still run with CUDA.

This obviously shouldn't be merged into the same branch as PRs #1 through #9. The idea is that this would be the PR we would need for upstream (although I'm guessing they would actually want it in smaller chunks).
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.

2 participants