Skip to content

Commit 2540ad2

Browse files
committed
Merge branch 'release/1.2.0.0' into stable
2 parents 7c02390 + 30bf2ec commit 2540ad2

38 files changed

+2378
-821
lines changed

.travis.yml

Lines changed: 45 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
# relevant version of LLVM as (a very old version of) the CUDA toolkit (4.0).
55
# Caches the 'stack' build directory to speed subsequent compilations.
66
#
7-
language: generic
7+
language: minimal
88
dist: trusty
99
sudo: required
1010

1111
cache:
12+
timeout: 600
1213
directories:
13-
- $HOME/.stack
14-
- $HOME/llvm
14+
- $HOME/.stack/snapshots
1515
- .stack-work/install
1616

1717
before_cache:
18-
# - rm -rf $(stack path --local-install-root)/bin
18+
# - rm -rf $(stack path --local-install-root)/bin
1919
- rm -rf $(stack path --local-install-root)/doc
2020

2121
addons:
@@ -24,17 +24,16 @@ addons:
2424
- hvr-ghc
2525
- ubuntu-toolchain-r-test
2626
- llvm-toolchain-trusty
27-
# - llvm-toolchain-precise-4.0 # not white-listed yet
28-
- sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-4.0 main'
29-
key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key'
27+
- llvm-toolchain-trusty-4.0
28+
- llvm-toolchain-trusty-5.0
29+
- llvm-toolchain-trusty-6.0
3030

3131
packages: &apt_packages
3232
- g++-4.8
3333
- libgmp-dev
3434
- libfftw3-dev
3535
- happy-1.19.5
3636
- alex-3.1.4
37-
- llvm-4.0-dev
3837

3938
matrix:
4039
include:
@@ -46,6 +45,7 @@ matrix:
4645
packages:
4746
- *apt_packages
4847
- cabal-install-1.22
48+
- llvm-4.0-dev
4949

5050
- env: GHC=8.0.2 CABAL=1.24 LLVM=4.0.0 CUDA=8.0.61-1
5151
compiler: "GHC 8.0"
@@ -55,15 +55,27 @@ matrix:
5555
packages:
5656
- *apt_packages
5757
- cabal-install-1.24
58+
- llvm-4.0-dev
5859

59-
- env: GHC=8.2.1 CABAL=2.0 LLVM=4.0.0 CUDA=8.0.61-1
60+
- env: GHC=8.2.2 CABAL=2.0 LLVM=5.0.0 CUDA=8.0.61-1
6061
compiler: "GHC 8.2"
6162
addons:
6263
apt:
6364
sources: *apt_sources
6465
packages:
6566
- *apt_packages
6667
- cabal-install-2.0
68+
- llvm-5.0-dev
69+
70+
- env: GHC=8.4.1 CABAL=2.0 LLVM=6.0.0 CUDA=8.0.61-1
71+
compiler: "GHC 8.4"
72+
addons:
73+
apt:
74+
sources: *apt_sources
75+
packages:
76+
- *apt_packages
77+
- cabal-install-2.0
78+
- llvm-6.0-dev
6779

6880
# - env: GHC=head CABAL=head LLVM=3.9.1
6981
# compiler: "GHC HEAD"
@@ -87,30 +99,37 @@ before_install:
8799
- source .travis/install-cuda-trusty.sh
88100
- source .travis/install-stack.sh
89101
- source .travis/update-ghc-settings.sh
90-
- travis_retry stack install c2hs
102+
- travis_retry stack install c2hs --fast --no-terminal
103+
104+
# ghc bug? error while loading shared libraries: libffi.so.7
105+
- |
106+
case ${GHC} in
107+
8.4.1) export LD_LIBRARY_PATH=$(stack path --compiler-bin)/../lib/ghc-8.4.1/rts:$LD_LIBRARY_PATH ;;
108+
esac
91109
92110
install:
93-
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
111+
- echo "$(stack exec ghc -- --version) [$(stack exec ghc -- --print-project-git-commit-id 2> /dev/null || echo '?')]"
94112
- cabal --version
95113
- stack --version
96114
- c2hs --version
97-
- llc --version; true
98-
- opt --version; true
99-
- |
100-
if [ ${GHC} == head -o ! -e stack.yaml ]; then
101-
travis_retry cabal install --only-dependencies || exit 1
102-
else
103-
travis_retry stack build --only-dependencies --fast --no-terminal --no-haddock-deps || exit 1
104-
fi
115+
- llc-${LLVM:0:3} --version; true
116+
- opt-${LLVM:0:3} --version; true
117+
118+
# bootstrap
119+
# - travis_retry travis_wait 60 stack build --test --only-dependencies --no-run-tests --fast --jobs=2 --no-terminal accelerate
120+
# - travis_retry travis_wait 60 stack build --test --only-dependencies --no-run-tests --fast --jobs=2 --no-terminal accelerate-llvm-native accelerate-llvm-ptx
121+
122+
# regular build
123+
- stack build --dry-run
124+
- travis_retry travis_wait 60 stack build --test --only-dependencies --no-run-tests --fast --jobs=2 --no-terminal --no-copy-bins
105125

106126
script:
107-
- |
108-
if [ ${GHC} == head -o ! -e stack.yaml ]; then
109-
travis_retry cabal install || exit 1
110-
travis_retry cabal haddock || exit 1
111-
else
112-
travis_retry stack build --fast --no-terminal --haddock --no-haddock-deps || exit 1
113-
fi
127+
# build
128+
- stack build --fast --jobs=2 --test --no-run-tests --no-terminal --haddock --no-haddock-deps
129+
130+
# run test suite (CPU backend only)
131+
# retry because the tests have intermittent failurs \:
132+
- travis_retry stack test accelerate-fft:test-llvm-native --test-arguments='--timeout=30s --hedgehog-tests=50 --hedgehog-shrinks=0 --num-threads=1'
114133

115134
after_success:
116135
- source .travis/update-accelerate-buildbot.sh

CHANGELOG.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,33 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and the
66
project adheres to the [Haskell Package Versioning
77
Policy (PVP)](https://pvp.haskell.org)
88

9+
## [1.2.0.0] - 2018-04-03
10+
### Changed
11+
* update for AoS representation of complex numbers
12+
* improve pure FFT implementation
13+
14+
### Contributors
15+
16+
Special thanks to those who contributed patches as part of this release:
17+
18+
* Trevor L. McDonell (@tmcdonell)
19+
* Rinat Striungis (@Haskell-mouse)
20+
21+
922
## [1.1.0.0] - 2017-09-21
10-
* [#5]: fix to ignore `sh` parameter in inverse mode
23+
### Changed
24+
* build against FFTW and cuFFT foreign implementations by default
25+
26+
### Fixed
27+
* fix to ignore `sh` parameter in inverse mode ([#5])
28+
29+
### Removed
1130
* Drop support for (deprecated) `accelerate-cuda` backend
12-
* Build against FFTW and CUFFT foreign implementations by default
1331

1432

1533
## 1.0.0.0 - 2017-03-31
1634

35+
[1.2.0.0]: https://github.com/AccelerateHS/accelerate-fft/compare/1.1.0.0...1.2.0.0
1736
[1.1.0.0]: https://github.com/AccelerateHS/accelerate-fft/compare/1.0.0.0...1.1.0.0
1837

1938
[#5]: https://github.com/AccelerateHS/accelerate-fft/pull/5

0 commit comments

Comments
 (0)