Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Continuous Integration

on:
push:

jobs:
continuous-integration:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ghc-version:
- "8.10.7"
- "9.0.2"
- "9.2.8"
- "9.4.8"
- "9.6.6"
- "9.8.2"
- "9.10.1"

steps:
- uses: actions/checkout@v4

- name: Install cabal/ghc
uses: haskell-actions/setup@v2
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc-version }}
cabal-version: '3.10.3.0'

- name: Generate freeze file
run: |
cabal update
cabal configure --disable-optimization --enable-tests
cabal freeze

- name: Cache cabal work
uses: actions/cache@v4
with:
path: |
dist-newstyle
${{ steps.setup-haskell.outputs.cabal-store }}
key: ${{ runner.os }}-${{ hashFiles('cabal.project.freeze', 'cabal.project.local') }}-cabal-install

- name: Build dependencies
run: |
cabal build all --only-dependencies

- name: Build packages
run: |
cabal build all

- name: Run tests
run: |
cabal test all
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,24 @@
.stack-work
/stack.yaml
dist
dist-*
cabal-dev
*.o
*.hi
*.hie
*.chi
*.chs.h
*.dyn_o
*.dyn_hi
.hpc
.hsenv
.cabal-sandbox/
cabal.sandbox.config
*.prof
*.aux
*.hp
*.eventlog
cabal.project.local
cabal.project.local~
.HTF/
.ghc.environment.*
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
repa
====

[![Build Status](https://travis-ci.org/tmcdonell/repa.svg?branch=master)](https://travis-ci.org/tmcdonell/repa)

Repa provides high performance, regular, multi-dimensional, shape polymorphic parallel arrays.
All numeric data is stored unboxed. Functions written with the Repa combinators are automatically
parallel provided you supply +RTS -Nwhatever on the command line when running the program.
Expand Down
22 changes: 22 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
packages: repa/repa.cabal
repa-algorithms/repa-algorithms.cabal
repa-examples/repa-examples.cabal
repa-io/repa-io.cabal

-- Packages below are ignored until they can be updated
-- to support newer GHCs
-- repa-convert/repa-convert.cabal
-- repa-eval/repa-eval.cabal
-- repa-scalar/repa-scalar.cabal
-- repa-stream/repa-stream.cabal

-- We ignore some packages which depend on repa-array rather than repa
-- repa-array/repa-array.cabal
-- repa-flow/repa-flow.cabal
-- repa-query/repa-query.cabal
-- repa-tools/repa-tools.cabal
-- repa-store/repa-store.cabal
-- repa-machine/repa-machine.cabal


minimize-conflict-set: true
6 changes: 3 additions & 3 deletions repa-algorithms/repa-algorithms.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ Synopsis:

Library
Build-Depends:
base >= 4.8 && < 5
, vector >= 0.11 && < 0.13
, repa == 3.4.1.*
base >= 4.8 && < 4.21
, vector >= 0.11 && < 0.14
, repa >= 3.4 && <3.5

ghc-options:
-Wall
Expand Down
77 changes: 42 additions & 35 deletions repa-examples/repa-examples.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ License-file: LICENSE
Author: The DPH Team
Maintainer: Ben Lippmeier <benl@ouroborus.net>
Build-Type: Simple
Cabal-Version: >=1.6
Cabal-Version: >=1.10
Stability: experimental
Category: Data Structures
Homepage: http://repa.ouroborus.net
Expand All @@ -25,9 +25,11 @@ Flag llvm

Executable repa-canny
Build-depends:
base >= 4.8 && < 4.15
, repa == 3.4.1.*
, repa-algorithms == 3.4.1.*
base >= 4.8 && < 4.21
, repa >= 3.4 && < 3.5
, repa-algorithms >= 3.4 && < 3.5
, repa-io >= 3.4 && < 3.5
, vector

Main-is: examples/Canny/src-repa/Main.hs
hs-source-dirs: examples/Canny/src-repa .
Expand All @@ -46,11 +48,11 @@ Executable repa-canny

Executable repa-mmult
Build-depends:
base >= 4.8 && < 4.15
base >= 4.8 && < 4.21
, random == 1.1.*
, repa == 3.4.1.*
, repa-algorithms == 3.4.1.*
, repa-io == 3.4.1.*
, repa >= 3.4 && < 3.5
, repa-algorithms >= 3.4 && < 3.5
, repa-io >= 3.4 && < 3.5

Main-is: examples/MMult/src-repa/Main.hs
other-modules: Solver
Expand All @@ -72,9 +74,10 @@ Executable repa-mmult

Executable repa-laplace
Build-depends:
base >= 4.8 && < 4.15
, repa == 3.4.1.*
, repa-io == 3.4.1.*
base >= 4.8 && < 4.21
, repa >= 3.4 && < 3.5
, repa-algorithms >= 3.4 && < 3.5
, repa-io >= 3.4 && < 3.5
, template-haskell

Main-is: examples/Laplace/src-repa/Main.hs
Expand All @@ -95,10 +98,10 @@ Executable repa-laplace

Executable repa-fft2d
Build-depends:
base >= 4.8 && < 4.15
, repa == 3.4.1.*
, repa-algorithms == 3.4.1.*
, repa-io == 3.4.1.*
base >= 4.8 && < 4.21
, repa >= 3.4 && < 3.5
, repa-algorithms >= 3.4 && < 3.5
, repa-io >= 3.4 && < 3.5

Main-is: examples/FFT/FFT2d/src-repa/Main.hs
hs-source-dirs: examples/FFT/FFT2d/src-repa .
Expand All @@ -119,10 +122,10 @@ Executable repa-fft2d

Executable repa-fft2d-highpass
Build-depends:
base >= 4.8 && < 4.15
, repa == 3.4.1.*
, repa-algorithms == 3.4.1.*
, repa-io == 3.4.1.*
base >= 4.8 && < 4.21
, repa >= 3.4 && < 3.5
, repa-algorithms >= 3.4 && < 3.5
, repa-io >= 3.4 && < 3.5

Main-is: examples/FFT/HighPass2d/src-repa/Main.hs
hs-source-dirs: examples/FFT/HighPass2d/src-repa .
Expand All @@ -143,9 +146,10 @@ Executable repa-fft2d-highpass

Executable repa-fft3d-highpass
Build-depends:
base >= 4.8 && < 4.15
, repa == 3.4.1.*
, repa-algorithms == 3.4.1.*
base >= 4.8 && < 4.21
, repa >= 3.4 && < 3.5
, repa-algorithms >= 3.4 && < 3.5
, repa-io >= 3.4 && < 3.5

Main-is: examples/FFT/HighPass3d/src-repa/Main.hs
hs-source-dirs: examples/FFT/HighPass3d/src-repa .
Expand All @@ -166,10 +170,11 @@ Executable repa-fft3d-highpass

Executable repa-blur
Build-depends:
base >= 4.8 && < 4.15
, repa == 3.4.1.*
, repa-algorithms == 3.4.1.*
, vector >= 0.11 && < 0.13
base >= 4.8 && < 4.21
, repa >= 3.4 && < 3.5
, repa-algorithms >= 3.4 && < 3.5
, repa-io >= 3.4 && < 3.5
, vector >= 0.11 && < 0.14

Main-is: examples/Blur/src-repa/Main.hs
hs-source-dirs: examples/Blur/src-repa .
Expand All @@ -190,9 +195,10 @@ Executable repa-blur

Executable repa-sobel
Build-depends:
base >= 4.8 && < 4.15
, repa == 3.4.1.*
, repa-algorithms == 3.4.1.*
base >= 4.8 && < 4.21
, repa >= 3.4 && < 3.5
, repa-algorithms >= 3.4 && < 3.5
, repa-io >= 3.4 && < 3.5

Main-is: examples/Sobel/src-repa/Main.hs
other-modules: Solver
Expand All @@ -214,9 +220,10 @@ Executable repa-sobel

Executable repa-volume
Build-depends:
base >= 4.8 && < 4.15
, repa == 3.4.1.*
, repa-io == 3.4.1.*
base >= 4.8 && < 4.21
, repa >= 3.4 && < 3.5
, repa-algorithms >= 3.4 && < 3.5
, repa-io >= 3.4 && < 3.5

Main-is: examples/Volume/Main.hs
ghc-options:
Expand All @@ -236,9 +243,9 @@ Executable repa-volume

Executable repa-unit-test
Build-depends:
base >= 4.8 && < 4.15
, repa == 3.4.1.*
, QuickCheck >= 2.8 && < 2.14
base >= 4.8 && < 4.21
, repa >= 3.4 && < 3.5
, QuickCheck >= 2.8 && < 2.16

Main-is: examples/UnitTesting/UnitTesting.hs
hs-source-dirs: examples/UnitTesting .
Expand Down
10 changes: 5 additions & 5 deletions repa-io/repa-io.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ Synopsis:

Library
Build-Depends:
base >= 4.8 && < 5
base >= 4.8 && < 4.21
, binary >= 0.7 && < 0.9
, bmp == 1.2.*
, bytestring >= 0.10 && < 0.12
, bmp >= 1.2 && <1.3
, bytestring >= 0.10 && < 0.13
, old-time == 1.1.*
, repa == 3.4.*
, vector >= 0.11 && < 0.13
, repa >= 3.4 && <3.5
, vector >= 0.11 && < 0.14

ghc-options:
-O2
Expand Down
Loading
Loading