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

[Tests] Reconstruct test files #39

Merged
merged 6 commits into from
May 30, 2024
Merged

[Tests] Reconstruct test files #39

merged 6 commits into from
May 30, 2024

Conversation

StrongSpoon
Copy link
Collaborator

  1. reorganized test files in examples, benchmark, tests respectively
  2. divide operators into pointwise, reduction, bias and so on
  3. implement v1 bitwise ops add, sub, mul, div and pow by codegen

self.sizes = sizes

def profile(self, op, *args):
if CPU_MODE:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Whether cpu_mode or not, does the kernel always run on gpu? It is only the method of timing: by inserting device synchronzation or by cuda events?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, benchmark only compares gpu kernels. cpu mode records end2end latency instead of coda time.

@StrongSpoon StrongSpoon merged commit f4e26f9 into master May 30, 2024
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