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

Adding python-only implementation of gradient + test #1136

Merged
merged 4 commits into from
May 22, 2024

Conversation

ipdemes
Copy link
Contributor

@ipdemes ipdemes commented May 10, 2024

No description provided.

@ipdemes ipdemes added the category:task PR is a simple task and will not be included in release notes label May 10, 2024
@ipdemes ipdemes self-assigned this May 10, 2024
@ipdemes ipdemes marked this pull request as draft May 10, 2024 20:16
@ipdemes ipdemes force-pushed the gradient branch 3 times, most recently from d05be08 to faf4f81 Compare May 13, 2024 18:05
Copy link

copy-pr-bot bot commented May 13, 2024

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@ipdemes ipdemes force-pushed the gradient branch 6 times, most recently from 421acef to 4e24ced Compare May 14, 2024 03:12
@ipdemes ipdemes changed the title WIP: adding python-only implementation of gradient + test Adding python-only implementation of gradient + test May 15, 2024
@ipdemes ipdemes marked this pull request as ready for review May 15, 2024 04:18
@ipdemes ipdemes requested a review from manopapad May 15, 2024 04:18
Copy link
Contributor

@manopapad manopapad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor comments. I didn't go through the math in detail.

install.py Outdated Show resolved Hide resolved
cunumeric/module.py Outdated Show resolved Hide resolved
cunumeric/module.py Outdated Show resolved Hide resolved
cunumeric/module.py Outdated Show resolved Hide resolved
tests/integration/test_gradient.py Outdated Show resolved Hide resolved
Comment on lines 6835 to 6838
# if distances are constant reduce to the scalar case
# since it brings a consistent speedup
if (diffx == diffx[0]).all():
diffx = diffx[0]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove this "optimization". It causes blocking in cuNumeric, and if the user wanted constant spacing they should have just provided a constant here.

cunumeric/module.py Outdated Show resolved Hide resolved
cunumeric/module.py Outdated Show resolved Hide resolved
@ipdemes ipdemes merged commit b1cff77 into nv-legate:branch-24.03 May 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:task PR is a simple task and will not be included in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants