Skip to content

Commit aa6ab8f

Browse files
committed
Initial commit for DeviceLayout.jl
1 parent a63545a commit aa6ab8f

File tree

204 files changed

+40726
-29
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

204 files changed

+40726
-29
lines changed

Diff for: .JuliaFormatter.toml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
indent = 4
2+
margin = 92
3+
whitespace_typedefs = true
4+
whitespace_ops_in_indices = true
5+
remove_extra_newlines = true
6+
always_use_return = true
7+
whitespace_in_kwargs = false
8+
align_assignment = true
9+
align_struct_field = true
10+
align_conditional = true
11+
align_pair_arrow = true
12+
align_matrix = true
13+
trailing_comma = false
14+
annotate_untyped_fields_with_any=false
15+
format_docstrings = true

Diff for: .github/ISSUE_TEMPLATE/bug_report.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: 'bug'
6+
assignees: ''
7+
---
8+
9+
<!--
10+
*Description: A clear and concise description of what the bug is.*
11+
12+
*To reproduce: Please provide minimal example that reproduces the error. For existing
13+
examples, please provide a link.*
14+
15+
*Error message: Paste the complete error message or log, if applicable.*
16+
17+
*Environment: Any environment details, such as operating system, compiler, etc.*
18+
-->

Diff for: .github/ISSUE_TEMPLATE/config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: true

Diff for: .github/ISSUE_TEMPLATE/feature_request.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for the project
4+
title: ''
5+
labels: 'enhancement'
6+
assignees: ''
7+
---
8+
9+
<!--
10+
*Description: A clear and concise description of what the feature is.*
11+
12+
*Add any other context or screenshots about the feature request here.*
13+
-->

Diff for: .github/pull_request_template.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<!--
2+
*Description of changes:*
3+
4+
*Issue #, if available:*
5+
6+
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute
7+
this contribution, under the terms of your choice.
8+
-->

Diff for: .github/workflows/Benchmark.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Benchmark
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
8+
benchmark:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: julia-actions/setup-julia@v2
13+
with:
14+
version: '1.10'
15+
- uses: julia-actions/cache@v2
16+
- name: "Run benchmarks"
17+
run: |
18+
julia --project=benchmark -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
19+
julia --project=benchmark -e 'include("benchmark/run_benchmarks.jl")'
20+
- uses: actions/upload-artifact@v4
21+
with:
22+
name: benchmark
23+
path: benchmark.md

Diff for: .github/workflows/CI.yml

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags: ['*']
8+
pull_request:
9+
workflow_dispatch:
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
julia-format:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: julia-actions/setup-julia@v2
21+
with:
22+
version: '1.10'
23+
- uses: julia-actions/cache@v2
24+
- name: Install JuliaFormatter and format
25+
run: julia scripts/format.jl "check"
26+
27+
test:
28+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
29+
runs-on: ${{ matrix.os }}
30+
timeout-minutes: 60
31+
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
32+
actions: write
33+
contents: read
34+
strategy:
35+
fail-fast: false
36+
matrix:
37+
version:
38+
- '1.10'
39+
- 'pre'
40+
os:
41+
- ubuntu-latest
42+
arch:
43+
- x64
44+
needs: [julia-format]
45+
steps:
46+
- uses: actions/checkout@v4
47+
- uses: actions/setup-python@v5
48+
with:
49+
python-version: '3.13'
50+
cache: 'pip' # caching pip dependencies
51+
- run: |
52+
pip install -r requirements.txt
53+
export PYTHON=$(which python3)
54+
- uses: julia-actions/setup-julia@v2
55+
with:
56+
version: ${{ matrix.version }}
57+
arch: ${{ matrix.arch }}
58+
- uses: julia-actions/cache@v2
59+
- uses: julia-actions/julia-buildpkg@v1
60+
- uses: julia-actions/julia-runtest@v1
61+
- uses: julia-actions/julia-processcoverage@v1
62+
with:
63+
directories: src
64+
- uses: codecov/codecov-action@v5
65+
with:
66+
files: lcov.info
67+
token: ${{ secrets.CODECOV_TOKEN }}
68+
fail_ci_if_error: false

Diff for: .github/workflows/Docs-Cleanup.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Documentation Preview Cleanup
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
jobs:
8+
cleanup-preview-docs:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
ref: gh-pages
14+
15+
- name: Delete preview and history
16+
env:
17+
PRNUM: ${{ github.event.number }}
18+
run: |
19+
if [[ -d previews/PR$PRNUM ]]; then
20+
git config user.name "Documenter.jl"
21+
git config user.email "[email protected]"
22+
git rm -rf previews/PR$PRNUM
23+
git commit -m "delete preview"
24+
git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree})
25+
git push --force origin gh-pages-new:gh-pages
26+
fi

Diff for: .github/workflows/Documentation.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags: '*'
8+
pull_request:
9+
10+
jobs:
11+
build-docs:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
actions: write # needed to allow julia-actions/cache to proactively delete old caches that it has created
15+
contents: write
16+
statuses: write
17+
pull-requests: read
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: julia-actions/setup-julia@v2
21+
with:
22+
version: '1.10'
23+
- uses: julia-actions/cache@v2
24+
- name: Build and deploy
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
run: |
28+
julia --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
29+
julia --project=docs --color=yes docs/make.jl
30+
31+
- uses: actions/upload-artifact@v4
32+
with:
33+
name: docs
34+
path: docs/build/
35+
retention-days: 7

Diff for: .github/workflows/TagBot.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: TagBot
2+
on:
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
7+
inputs:
8+
lookback:
9+
default: "3"
10+
permissions:
11+
actions: read
12+
checks: read
13+
contents: write
14+
deployments: read
15+
issues: read
16+
discussions: read
17+
packages: read
18+
pages: read
19+
pull-requests: read
20+
repository-projects: read
21+
security-events: read
22+
statuses: read
23+
jobs:
24+
TagBot:
25+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: JuliaRegistries/TagBot@v1
29+
with:
30+
token: ${{ secrets.GITHUB_TOKEN }}

Diff for: .gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
*.jl.cov
2+
*.jl.*.cov
3+
*.jl.mem
4+
docs/build/
5+
docs/site/
6+
docs/Manifest.toml
7+
deps/build.log
8+
LocalPreferences.toml
9+
Manifest.toml
10+
.vscode/
11+
.DS_Store
12+
.gitlab-ci-local
13+
coverage/

Diff for: CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Changelog
2+
3+
The format of this changelog is based on
4+
[Keep a Changelog](https://keepachangelog.com/), and this project adheres to
5+
[Semantic Versioning](https://semver.org/).
6+
7+
## 1.0.0 (2025-02-28)
8+
9+
Initial release.

Diff for: CODE_OF_CONDUCT.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## Code of Conduct
2+
23
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
34
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
45
[email protected] with any additional questions or comments.

Diff for: CONTRIBUTING.md

+17-19
Original file line numberDiff line numberDiff line change
@@ -6,53 +6,51 @@ documentation, we greatly value feedback and contributions from our community.
66
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
77
information to effectively respond to your bug report or contribution.
88

9-
109
## Reporting Bugs/Feature Requests
1110

1211
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
1312

1413
When filing an issue, please check existing open, or recently closed, issues to make sure somebody else hasn't already
1514
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
1615

17-
* A reproducible test case or series of steps
18-
* The version of our code being used
19-
* Any modifications you've made relevant to the bug
20-
* Anything unusual about your environment or deployment
21-
16+
- A reproducible test case or series of steps
17+
- The version of our code being used
18+
- Any modifications you've made relevant to the bug
19+
- Anything unusual about your environment or deployment
2220

2321
## Contributing via Pull Requests
22+
2423
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
2524

26-
1. You are working against the latest source on the *main* branch.
27-
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
28-
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.
25+
1. You are working against the latest source on the *main* branch.
26+
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
27+
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.
2928

3029
To send us a pull request, please:
3130

32-
1. Fork the repository.
33-
2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
34-
3. Ensure local tests pass.
35-
4. Commit to your fork using clear commit messages.
36-
5. Send us a pull request, answering any default questions in the pull request interface.
37-
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
31+
1. Fork the repository.
32+
2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
33+
3. Ensure local tests pass.
34+
4. Commit to your fork using clear commit messages.
35+
5. Send us a pull request, answering any default questions in the pull request interface.
36+
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
3837

3938
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
4039
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
4140

42-
4341
## Finding contributions to work on
44-
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start.
4542

43+
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start.
4644

4745
## Code of Conduct
46+
4847
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
4948
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
5049
[email protected] with any additional questions or comments.
5150

52-
5351
## Security issue notifications
54-
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.
5552

53+
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.
5654

5755
## Licensing
5856

Diff for: LICENSE.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
MIT License
2+
3+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)