Skip to content

070#9

Merged
Jassicia merged 1 commit into
mainfrom
chenzhiyuan-operator
Jun 8, 2026
Merged

070#9
Jassicia merged 1 commit into
mainfrom
chenzhiyuan-operator

Conversation

@Jassicia

@Jassicia Jassicia commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings June 8, 2026 11:03
@Jassicia
Jassicia merged commit 1d58a5d into main Jun 8, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new BangC implementation for the “Sqrt” operator and updates the repository config to run evaluation for problem 070.

Changes:

  • Added Sqrt.mlu with an MLU kernel and bang_func wrapper.
  • Updated config to evaluate only task 070 for this submission.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
Sqrt.mlu Adds an MLU sqrt kernel and a bang_func entrypoint for task 070.
config Switches the evaluation target to 070 only.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Sqrt.mlu
Comment on lines +20 to +22
__memcpy(buffer, input + offset, len * sizeof(half), GDRAM2NRAM);
__bang_abs(buffer, buffer, aligned_len);
__bang_sqrt(buffer, buffer, aligned_len);
Comment thread Sqrt.mlu

#define BLOCK_SIZE 256

__mlu_entry__ void sqrt_kernel(half *input, half *output, int total) {
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