Skip to content

Commit

Permalink
Merge branch 'release/1.3.0.0' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcdonell committed Aug 28, 2020
2 parents 610cd14 + 114726f commit 49a39ea
Show file tree
Hide file tree
Showing 208 changed files with 18,746 additions and 15,376 deletions.
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: Bug report
about: Create a report to help us improve Accelerate
title: "[BUG]"
labels: ''
assignees: ''

---

Hi! Thanks for trying out Accelerate! We are sorry that you ran into trouble ): Please fill in the following report to help us fix the problem.

**Description**
Provide a clear and concise description of what the bug is.
If applicable, include screenshots to help explain the problem.

**Steps to reproduce**
Please provide as much information as possible so that somebody can understand and reproduce the problem. Remember: only bugs which are understood can be fixed.

Providing a link to a minimal example which shows the faulty behaviour is best. https://gist.github.com is useful for pasting longer code snippets. If your program requires any additional packages, please include the `.cabal` and `stack.yaml` files so that it is easy to build.

Steps to reproduce the behaviour:

1.
2.
3.

**Expected behaviour**
A clear and concise description of what you expected to happen.

**Your environment**
Include any relevant details about the environment you experienced the bug in. When reporting the versions of Accelerate packages used, include either the release number or the commit SHA if building from source.

If the bug is with the `accelerate-llvm-ptx` GPU backend, include the output of `nvidia-device-query`

- Accelerate:
- Accelerate backend(s):
- GHC:
- OS:

**Additional context**
Add any other context about the problem here.

10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
blank_issues_enabled: true
contact_links:
- name: Accelerate community chat
about: Ask and answer questions here
url: https://gitter.im/AccelerateHS/Lobby
- name: Accelerate mailing list
about: Ask and answer questions here
url: http://groups.google.com/group/accelerate-haskell
# url: mailto:accelerate-haskell@googlegroups.com

23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Feature request
about: Suggest an idea to improve Accelerate
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. For example: I'm always frustrated when [...]

For difficulties using Accelerate you might also like to ask on the [mailing list](mailto:accelerate-haskell@googlegroups.com) or [chat room](https://gitter.im/AccelerateHS/Lobby).

**Describe the solution you'd like**
A clear and concise description of what you want to happen, or how the new feature should work.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.

73 changes: 13 additions & 60 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
@@ -1,67 +1,20 @@
<!--
Hi!
Hi! Thanks for trying out Accelerate! We are sorry that you have run into trouble ): Please fill in the following report to help us improve.

Thanks for trying out Accelerate! We are sorry that you have run into trouble ):
You might also like to ask on the [mailing list](mailto:accelerate-haskell@googlegroups.com) or [chat room](https://gitter.im/AccelerateHS/Lobby).

The following schema may help when filing your report:
-->
**Description**
Provide a clear and concise description of what the problem is.

<!-- Put an `x` into each box that applies (replacing the existing space character): -->
I am submitting a...
- [ ] bug report
- [ ] feature request
- [ ] support request => you might also like to ask your question on the [mailing list](mailto:accelerate-haskell@googlegroups.com) or [gitter chat](https://gitter.im/AccelerateHS/Lobby).
**Your environment**
Include any relevant details about the environment you experienced the bug in. When reporting the versions of Accelerate packages used, include either the release number or the commit SHA if building from source.

## Description
<!--
Provide a general summary of the issue here, and try to include a descriptive title above.
Do you want to request a feature or report a bug?
How has this issue affected you?
What are you trying to accomplish with the proposed feature request?
-->
If the bug is with the `accelerate-llvm-ptx` GPU backend, include the output of `nvidia-device-query`

- Accelerate:
- Accelerate backend(s):
- GHC:
- OS:

## Expected behaviour
<!--
If you are describing a bug, tell us what should happen.
If you are suggesting a change or improvement, tell us how it should work.
-->

## Current behaviour
<!--
If describing a bug, tell us what happens.
If suggesting a change or improvement, explain the difference from the current behaviour.
-->

## Possible solution (optional)
<!-- You may wish to suggest a fix or reason for the bug, or provide ideas on how to implement the suggested feature. -->

## Steps to reproduce (for bugs)
<!--
Please provide as much information as possible so that somebody can understand and reproduce the bug. Only bugs which are understood can be fixed.
Providing a link to a minimal example which shows the faulty behaviour is best. https://gist.github.com is useful for pasting longer code snippets. If your program requires any additional libraries, please include `.cabal` and `stack.yaml` files so that it is easy to build.
Please describe any additional steps to reproducing the bug.
-->

1.
2.
3.

## Your environment
<!--
Include any relevant details about the environment you experienced the bug in.
When reporting the versions of Accelerate packages used, please include either the release version number, or the commit SHA if building from source (e.g. `AccelerateHS/accelerate-llvm@0123456`).
If you built your project using `stack`, the `nvidia-device-query` program may be available via `stack exec nvidia-device-query`.
-->

- Accelerate version:
- Accelerate backend(s) used:
- GHC version:
- Operating system and version:
- Link to your project/example:
- If this is a bug with the GPU backend, include the output of `nvidia-device-query`:
**Additional context**
Add any other context about the problem here.

50 changes: 17 additions & 33 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,29 @@
<!--
Hi!
Thanks for taking the time to create this pull request! You are awesome (:
Hi! Thanks for taking the time to create this pull request! You are awesome (:

The following schema may help when filing your pull request:
-->

## Description
<!--
Provide a description of the pull request here.
Try to include a general summary of the changes in the title above.
-->
**Description**
Provide a description of the changes proposed by this pull request.

## Motivation and context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
-->
**Motivation and context**
Why is this change required? What problem does it solve? If it fixes an open issue(s), link to the issue here.

## How has this been tested?
<!--
Please describe in detail how you tested your changes.
Include details of your testing environment, and the tests you ran to see how your change affects other areas of the code, etc.
-->
**How has this been tested?**
Describe how your changes have been tested. Include details of your testing environment.

## Types of changes
<!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
**Types of changes**
What types of changes does your code introduce? Put an `x` in all the boxes that apply:

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Checklist:
<!--
Go over all the following points, and put an `x` in all the boxes that apply.
If you're unsure about any of these, don't hesitate to ask. We're here to help!
-->

- [ ] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
**Checklist**
Go over all the following points, and put an `x` in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!

- [ ] My code follows the code style of this project
- [ ] My change requires a change to the documentation
- [ ] I have updated the documentation accordingly
- [ ] I have added tests to cover my changes
- [ ] All new and existing tests passed

68 changes: 68 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: CI

# Trigger the workflow on push or pull request
on:
pull_request:
push:
# but only for the master branch
# branches: [master]

defaults:
run:
shell: bash

jobs:
stack:
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.allow_failure }}
strategy:
matrix:
os: [ubuntu-latest]
allow_failure: [false]
ghc:
- "8.10"
- "8.8"
- "8.6"
include:
- os: macOS-latest
ghc: "8.10"
allow_failure: false
# - os: windows-latest
# ghc: "8.10"
# allow_failure: true
env:
STACK_FLAGS: "--system-ghc --no-install-ghc --fast --flag accelerate:nofib"

steps:
- uses: actions/checkout@v2

- uses: actions/setup-haskell@v1.1
with:
enable-stack: true
ghc-version: ${{ matrix.ghc }}

- name: Set up stack
id: stack-setup
run: |
ln -s stack-${{ matrix.ghc }}.yaml stack.yaml
echo "::set-output name=stack-root::$(stack path --system-ghc --no-install-ghc --stack-root)"
- uses: actions/cache@v1
with:
path: ${{ steps.stack-setup.outputs.stack-root }}
key: ${{ runner.os }}-${{ matrix.ghc }}-stack

- name: Build dependencies
run: |
stack build $STACK_FLAGS --test --no-run-tests --only-dependencies
- name: Build
run: |
stack build $STACK_FLAGS --test --no-run-tests
- name: Test
run: |
stack test accelerate:doctest $STACK_FLAGS
stack test accelerate:nofib-interpreter $STACK_FLAGS
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@
/accelerate-io/dist/
/.stack-work
/stack.yaml
/stack.yaml.lock
.DS_Store
*.lock
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule ".travis"]
path = .travis
url = https://github.com/tmcdonell/travis-scripts.git
2 changes: 1 addition & 1 deletion .mailmap
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Trevor L. McDonell <tmcdonell@cse.unsw.edu.au>
Trevor L. McDonell <trevor.mcdonell@gmail.com>
Ben Lever <ben.lever@nicta.com.au>
Frederik M. Madsen <rlh929@a00334.science.domain>
1 change: 0 additions & 1 deletion .travis
Submodule .travis deleted from 7bc07b
46 changes: 38 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,57 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and the
project adheres to the [Haskell Package Versioning
Policy (PVP)](https://pvp.haskell.org)

## [next]
## [1.3.0.0] - 2020-08-26
### Added
* Instances of `Elt` are now derivable via `Generic` for simple (Haskell'98)
product _and_ sum data types.
* Pattern synonyms for manipulating custom product and sum types can now be
created; see `Pattern`, `mkPattern`
* Added pattern synonyms for accessing tuples and indices, as an alternative
to `lift` and `unlift`.
* Support for pattern matching in the embedded language; see `match`

### Changed
* Instances of `Elt` are now derivable via `Generic`
* The `stencil` functions now support fusion. Note however that the source
(delayed) array will be evaluated at _every_ access to the stencil pattern;
if the delayed function is expensive, you may wish to explicitly `compute`
the source array first, matching the old behaviour.
* Removed `Slice` constraint from some indexing operations
* Improve fusion for `zipWith*` ([#453])
* The indexing function to `permute` now returns a `Maybe` type ([#87])

* (internal) Visible type applications are used instead of `Proxy` types
* (internal) `EltRepr` is now a class-associated type of `Elt`
* (internal) `EltR` is now a class-associated type of `Elt`
* (internal) `GArrayData` has been simplified
* (internal) SIMD representation has been improved and generalised
* (internal) Internal refactoring ([#449], [#455], [#457], [#460])

### Added
* Pattern synonyms for manipulating custom product types can now be created;
see `Pattern`
* Probably many others I have forgotten about

### Removed
* Drop support for GHC-7.10
* Drop support for GHC-7.10 .. 8.4.

### Contributors

Special thanks to those who contributed patches as part of this release:

* Trevor L. McDonell (@tmcdonell)
* Joshua Meredith (@JoshMeredith)
* Ivo Gabe de Wolff (@ivogabe)
* David van Balen (@dpvanbalen)
* Jaro Reinders (@noughtmare)
* Alex Lang (@alang9)
* Paul Wilson (@status_failed)
* @lennonhill
* Travis Whitaker (@TravisWhitaker)
* Roger Bosman (@rogerbosman)
* Robbert van der Helm (@robbert-vdh)
* Sam (@sam-340453)
* Lars van den Haak (@sakehl)
* Rinat Striungis (@Haskell-mouse)
* Viktor Kronvall (@considerate)
* Tom Smeding (@tomsmeding)
* Ryan Scott (@RyanGlScott)


## [1.2.0.1] - 2018-10-06
Expand Down Expand Up @@ -162,7 +186,7 @@ Special thanks to those who contributed patches as part of this release:
* Initial release of the CUDA backend


[next]: https://github.com/AccelerateHS/accelerate/compare/v1.2.0.1...HEAD
[1.3.0.0]: https://github.com/AccelerateHS/accelerate/compare/v1.2.0.1...v1.3.0.0
[1.2.0.1]: https://github.com/AccelerateHS/accelerate/compare/v1.2.0.0...v1.2.0.1
[1.2.0.0]: https://github.com/AccelerateHS/accelerate/compare/v1.1.0.0...v1.2.0.0
[1.1.1.0]: https://github.com/AccelerateHS/accelerate/compare/v1.1.0.0...v1.1.1.0
Expand All @@ -178,6 +202,12 @@ Special thanks to those who contributed patches as part of this release:
[0.9.0.0]: https://github.com/AccelerateHS/accelerate/compare/0_8_1_0...0.9.0.0
[0.7.1.0]: https://github.com/AccelerateHS/accelerate/compare/0_6_0_0...0_7_1_0

[#87]: https://github.com/AccelerateHS/accelerate/issues/87
[#340]: https://github.com/AccelerateHS/accelerate/issues/340
[#390]: https://github.com/AccelerateHS/accelerate/issues/390
[#453]: https://github.com/AccelerateHS/accelerate/pull/453
[#449]: https://github.com/AccelerateHS/accelerate/pull/449
[#455]: https://github.com/AccelerateHS/accelerate/pull/455
[#457]: https://github.com/AccelerateHS/accelerate/pull/457
[#460]: https://github.com/AccelerateHS/accelerate/pull/460

Loading

0 comments on commit 49a39ea

Please sign in to comment.