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

Implement permute_dims #12

Merged
merged 15 commits into from
Nov 4, 2024

Conversation

AllanZyne
Copy link
Collaborator

@AllanZyne AllanZyne commented Aug 4, 2024

  • very low efficient implementation in distributed mode (algorithm need to improve in the future)
  • fix some build warnings
  • support building & running sharpy using imex build directory directly (without deploy, occupy too many disk space)

@AllanZyne AllanZyne marked this pull request as ready for review September 9, 2024 07:36
@AllanZyne AllanZyne requested review from tkarna and fschlimb September 9, 2024 07:40
@AllanZyne AllanZyne force-pushed the review/yang/permute_dims branch from 75aed16 to 77f5ba0 Compare September 9, 2024 07:44
@AllanZyne AllanZyne force-pushed the review/yang/permute_dims branch from 77f5ba0 to e4895f0 Compare September 9, 2024 07:51
src/idtr.cpp Show resolved Hide resolved
src/idtr.cpp Show resolved Hide resolved
src/idtr.cpp Show resolved Hide resolved
src/idtr.cpp Show resolved Hide resolved
examples/transposed3d.py Outdated Show resolved Hide resolved
@fschlimb
Copy link
Contributor

fschlimb commented Sep 9, 2024

Very nice!

@AllanZyne AllanZyne requested a review from fschlimb September 14, 2024 06:22
@AllanZyne
Copy link
Collaborator Author

AllanZyne commented Oct 23, 2024

Hi @tkarna, I have updated the transpose.py, please check

examples/transpose.py Outdated Show resolved Hide resolved
sharpy/__init__.py Outdated Show resolved Hide resolved
tkarna
tkarna previously approved these changes Oct 24, 2024
Copy link
Collaborator

@tkarna tkarna left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!


def sp_transpose(arr):
brr = sharpy.permute_dims(arr, [1, 0])
sharpy.sync()
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need a sync here?

fschlimb
fschlimb previously approved these changes Oct 28, 2024
Copy link
Contributor

@fschlimb fschlimb left a comment

Choose a reason for hiding this comment

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

Yey!

@AllanZyne AllanZyne dismissed stale reviews from fschlimb and tkarna via 809c0ff November 4, 2024 02:55
@fschlimb fschlimb merged commit 4520d97 into IntelPython:main Nov 4, 2024
2 checks passed
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.

3 participants