-
Notifications
You must be signed in to change notification settings - Fork 35
Introducing AGENTS.md #2233
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
Open
napetrov
wants to merge
6
commits into
IntelPython:master
Choose a base branch
from
napetrov:dev/napetrov_agents
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Introducing AGENTS.md #2233
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d1e5c3a
first version of agents instructions
napetrov ffaa535
improved version of documentation
napetrov a4d95a0
instruction improvements
napetrov 09b2dc0
Trim root agent guide and drop tensor-specific agent docs
napetrov 66e3e75
dpctl/tests/AGENTS.md: remove elementwise references (tensor migration)
napetrov c099e59
Address ndgrigorian review: remove tensor-specific references
napetrov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
instruction improvements
- Loading branch information
commit a4d95a026080e7d490291c7e9efba9a4e89b7f53
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,20 +6,18 @@ applyTo: | |
|
|
||
| # Testing Instructions | ||
|
|
||
| See [dpctl/tests/AGENTS.md](/dpctl/tests/AGENTS.md) for patterns and dtype lists. | ||
| See `dpctl/tests/AGENTS.md` for patterns. | ||
|
|
||
| ## Quick Reference | ||
|
|
||
| ### Essential helpers (from `helper/_helper.py`) | ||
| ## Essential helpers (from `helper/_helper.py`) | ||
| ```python | ||
| get_queue_or_skip() # Create queue or skip | ||
| skip_if_dtype_not_supported() # Skip if device lacks dtype | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as below, dtypes not a concern right now without tensor |
||
| ``` | ||
|
|
||
| ### Dtype lists (from `elementwise/utils.py`) | ||
| Use `_all_dtypes`, `_usm_types` for parametrization. | ||
| ## Dtype/USM lists | ||
| Import from `elementwise/utils.py` - do not hardcode. | ||
|
|
||
| ### Coverage requirements | ||
| - All supported dtypes | ||
| - All USM types (device, shared, host) | ||
| - Edge cases: empty arrays, scalars | ||
| ## Coverage | ||
| - All dtypes from `_all_dtypes` | ||
| - All USM types: device, shared, host | ||
| - Edge cases: empty, scalar, broadcast | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # dpctl/program/ - SYCL Kernel Compilation | ||
|
|
||
| ## Purpose | ||
|
|
||
| Compile and manage SYCL kernels from OpenCL C or SPIR-V source. | ||
|
|
||
| ## Key Files | ||
|
|
||
| | File | Purpose | | ||
| |------|---------| | ||
| | `_program.pyx` | `SyclProgram`, `SyclKernel` extension types | | ||
| | `_program.pxd` | Cython declarations | | ||
| | `__init__.py` | Public API exports | | ||
|
|
||
| ## Classes | ||
|
|
||
| - **`SyclProgram`** - Compiled SYCL program containing one or more kernels | ||
| - **`SyclKernel`** - Individual kernel extracted from a program | ||
|
|
||
| ## Usage Pattern | ||
|
|
||
| ```python | ||
| from dpctl.program import create_program_from_source | ||
|
|
||
| source = """ | ||
| __kernel void add(__global float* a, __global float* b, __global float* c) { | ||
| int i = get_global_id(0); | ||
| c[i] = a[i] + b[i]; | ||
| } | ||
| """ | ||
|
|
||
| program = create_program_from_source(queue, source) | ||
| kernel = program.get_sycl_kernel("add") | ||
| ``` | ||
|
|
||
| ## Notes | ||
|
|
||
| - Programs are context-bound | ||
| - Follows same Cython patterns as core dpctl (see `../AGENTS.md`) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no arrays without
tensor