Skip to content

[feature request] Cut new release and/or clarify release roadmap #553

Open

Description

@dragospe

Is your feature request related to a problem? Please describe.

I've been trying to get a nix flake working for Simon Marlow's book, and had a little bit of (now resolved) friction with accelerate.

It appears that accelerate is still seeing active development and compiles up to GHC 9.10 (see cce3400), but the latest commit (49a39ea) to the stable branch/1.3.0.0 tag is 5 years old. This is reflected on hackage as well, giving constraints on dependencies that are probably too restrictive -- not to mention what ever fixes and features are in the 300+ commits from 2020 til now!

Describe the solution you'd like

I'm new to the library, so I'm unfamiliar with the development status. There's plenty of valid reason why work might not be considered "stable", but:

  • if all or some the work is stable, getting a new major-or-minor version bump onto hackage would be great.
  • if none of the work is release-ready, indicating in the README:
    • what the release process is
    • indicating in the README what should be done by library users who would like a more recent version (working from master?)

Describe alternatives you've considered

None.

Additional context

I've submitted a PR to nixpkgs pulling directly from source.

Activity

  1. tomsmeding commented on Apr 25, 2025

    @tomsmeding
    Member

    Accelerate is a project developed primarily by researchers, some in paid time, some in their free time. Incentives and time allotment don't always align with getting the best user experience for users, unfortunately — and this includes cutting releases. (Also, funding is temporary and people move on, so activity at any particular time does not necessarily mean activity at a different time.)

    Having said all that: apologies for the lack of releases over the past couple of years; this is mostly due to an in-progress full native & ptx backend rewrite (that I'm not personally working on, by the way) that sucks up ~all the resources. An Accelerate version with this new rewritten set of backends may be released this calendar year, but we can give no guarantees on that.

    Personally I intend to cut a release with roughly what's on master, plus some work to remove the library dependency on LLVM (and call the clang executable instead), somewhere this spring. But again, I can give no guarantees there.

    Thank you for tending to Nix! None of us use Nix, so we do not feel comfortable maintaining Nix metadata ourselves.

  2. dragospe commented on Apr 25, 2025

    @dragospe
    Author

    Makes sense. Thanks for the info!

    So, for someone who's diving into Simon Marlowe's Parallel and Concurrent Haskell for the first time: do you recommend using the stable version, or is master likely to be a better experience?

    The main reason I ask is because I have a nvidia RTX 40-series GPU, which was released in 2022. I'm wondering whether "maybe getting the older version to support newer hardware" or "dealing with some possibly-unstable changes on master" is a more advisable.

    In either case, I'll try to keep y'all updated with my experience as I'm learning the library.

  3. tomsmeding commented on Apr 25, 2025

    @tomsmeding
    Member

    Definitely master, and in particular:

    • master of AccelerateHS/accelerate and AccelerateHS/accelerate-llvm
    • The llvm-15 branch of llvm-hs/llvm-hs; this means that you will need LLVM version 15 (latest on hackage is LLVM 9)
    • The cuda-12 branch of tomsmeding/cuda; this corresponds to this PR on upstream tmcdonell/cuda that will likely be merged soon (I'm in contact with tmcdonell).

    In fact, if you're okay with non-master versions, I can recommend going more bleeding-edge with the following cabal.project (or the equivalent Nix configuration, if you're not using cabal directly):

    source-repository-package
      type: git
      location: https://github.com/AccelerateHS/accelerate.git
      -- current master (2025-04-25)
      tag: 40a7e2ac8823304e9a3317a31ef39c91e05821a5
    
    source-repository-package
      type: git
      location: https://github.com/tomsmeding/accelerate-llvm
      -- branch 'no-link-llvm-ptx' (2025-04-25)
      tag: d4219967ef2b5f8614497ee91a54ab59d296ed33
      subdir:
        accelerate-llvm
        accelerate-llvm-native
        accelerate-llvm-ptx
    
    source-repository-package
      type: git
      location: https://github.com/tomsmeding/llvm-pretty
      -- branch 'ptx' (2025-04-25)
      tag: 16fb617f282bde97a090b8b08cbd2dcf5e259ad3
    

    This configuration only requires you to install clang (any recent version), not LLVM 15 in a specific build configuration.

    The llvm-pretty fork will likely be vendored into an Accelerate release this spring, if that does happen. We do plan to upstream the additional llvm-pretty functionality in the long term, but the extra functionality is breaking (it adds various fields to existing data constructors), and just using a fork is lower overhead for us currently than working with upstream to merge various breaking changes.

  4. dragospe commented on Apr 25, 2025

    @dragospe
    Author

    Excellent! This is the exact sort of thing I like having nix for. Once I get things working for myself with a nix flake, I'll at least send a ping with a working setup for as many (haskell and non-haskell) dependencies as I can get. Can't promise I can maintain it, but it will at least be a start for any other newcomers!

  5. cassandracomar commented on May 20, 2025

    @cassandracomar
  6. noughtmare commented on Sep 12, 2025

    @noughtmare

    I'm trying the more bleeding edge versions, but running into this error:

    Cloning into '/home/jaro/haskell/par/dist-newstyle/src/accelerate-bc364d47be689e0b0d70b0c14c246a316df1f41e69fb113a9a819eb608637e3c'...
    remote: Enumerating objects: 32635, done.
    remote: Counting objects: 100% (2329/2329), done.
    remote: Compressing objects: 100% (236/236), done.
    remote: Total 32635 (delta 2189), reused 2099 (delta 2093), pack-reused 30306 (from 3)
    Receiving objects: 100% (32635/32635), 16.08 MiB | 17.15 MiB/s, done.
    Resolving deltas: 100% (17488/17488), done.
    HEAD is now at 40a7e2ac Better type inference for V<n> pattern synonyms
    Submodule 'cbits/tracy' (https://github.com/wolfpld/tracy.git) registered for path 'cbits/tracy'
    Cloning into '/home/jaro/haskell/par/dist-newstyle/src/accelerate-bc364d47be689e0b0d70b0c14c246a316df1f41e69fb113a9a819eb608637e3c/cbits/tracy'...
    Submodule path 'cbits/tracy': checked out '5d542dc09f3d9378d005092a4ad446bd405f819a'
    Entering 'cbits/tracy'
    Cloning into '/home/jaro/haskell/par/dist-newstyle/src/accelerat_-3eb59045cd99e2e4e0c09ea7668e34e06a7eb46314a19918fccbd159f4e10662'...
    remote: Enumerating objects: 25274, done.
    remote: Counting objects: 100% (2590/2590), done.
    remote: Compressing objects: 100% (168/168), done.
    remote: Total 25274 (delta 2481), reused 2422 (delta 2422), pack-reused 22684 (from 2)
    Receiving objects: 100% (25274/25274), 4.21 MiB | 17.05 MiB/s, done.
    Resolving deltas: 100% (13122/13122), done.
    fatal: Could not parse object 'd4219967ef2b5f8614497ee91a54ab59d296ed33'.
    
  7. tomsmeding commented on Sep 12, 2025

    @tomsmeding
    Member

    @noughtmare A bunch of stuff has been merged to master. To get these more bleeding-edge versions, you now need:

    • AccelerateHS/accelerate master (81a2e722bef86393c077ba22642206c2a96b4d6c)
    • AccelerateHS/accelerate-llvm master (d9c556d18e5e4588b3785ef4e175cd73c57610c7)
    • tomsmeding/llvm-pretty ptx (a253a7fc1c62f4825ffce6b2507eebc5dadff32c) This should be arranged automatically with a git submodule

    The cuda package is now on Hackage again, at least for CUDA 12 (working on CUDA 13).

  8. noughtmare commented on Sep 12, 2025

    @noughtmare

    With those newer versions, I'm still getting the same git failure with the cbits/tracy submodule.

  9. tomsmeding commented on Sep 12, 2025

    @tomsmeding
    Member

    Everything seems in order for me here; what commits are you on precisely, and what is the error that you get?

    11:53:09 /tmp$ git clone git@github.com:AccelerateHS/accelerate
    Cloning into 'accelerate'...
    remote: Enumerating objects: 32635, done.
    remote: Counting objects: 100% (2328/2328), done.
    remote: Compressing objects: 100% (230/230), done.
    remote: Total 32635 (delta 2188), reused 2104 (delta 2098), pack-reused 30307 (from 3)
    Receiving objects: 100% (32635/32635), 16.08 MiB | 12.48 MiB/s, done.
    Resolving deltas: 100% (17488/17488), done.
    
    11:53:20 /tmp$ git clone git@github.com:AccelerateHS/accelerate-llvm
    Cloning into 'accelerate-llvm'...
    remote: Enumerating objects: 25255, done.
    remote: Counting objects: 100% (2583/2583), done.
    remote: Compressing objects: 100% (168/168), done.
    remote: Total 25255 (delta 2474), reused 2415 (delta 2415), pack-reused 22672 (from 2)
    Receiving objects: 100% (25255/25255), 4.21 MiB | 6.33 MiB/s, done.
    Resolving deltas: 100% (13121/13121), done.
    
    11:53:23 /tmp$ cd accelerate
    
    11:53:25 /t/accelerate$ git submodule update --init --recursive
    Submodule 'cbits/tracy' (https://github.com/wolfpld/tracy.git) registered for path 'cbits/tracy'
    Cloning into '/tmp/accelerate/cbits/tracy'...
    Submodule path 'cbits/tracy': checked out '5d542dc09f3d9378d005092a4ad446bd405f819a'
    
    11:53:30 /t/accelerate$ cd ../accelerate-llvm/
    
    11:53:34 /t/accelerate-llvm$ git submodule update --init --recursive
    Submodule 'accelerate-llvm/llvm-pretty' (https://github.com/tomsmeding/llvm-pretty) registered for path 'accelerate-llvm/llvm-pretty'
    Cloning into '/tmp/accelerate-llvm/accelerate-llvm/llvm-pretty'...
    Submodule path 'accelerate-llvm/llvm-pretty': checked out 'a253a7fc1c62f4825ffce6b2507eebc5dadff32c'
    
    11:53:42 /t/accelerate-llvm$
    
  10. noughtmare commented on Sep 12, 2025

    @noughtmare

    When I create a fresh cabal project (cabal init -mnq) and add this cabal.project:

    packages: .
    
    source-repository-package
      type: git
      location: https://github.com/AccelerateHS/accelerate.git
      -- master
      tag: 81a2e722bef86393c077ba22642206c2a96b4d6c
    
    source-repository-package
      type: git
      location: https://github.com/tomsmeding/accelerate-llvm
      -- master
      tag: d9c556d18e5e4588b3785ef4e175cd73c57610c7
      subdir:
        accelerate-llvm
        accelerate-llvm-native
        accelerate-llvm-ptx
    

    If I then run cabal build I get this output:

    
    Cloning into '/tmp/acc/dist-newstyle/src/accelerate-bc364d47be689e0b0d70b0c14c246a316df1f41e69fb113a9a819eb608637e3c'...
    remote: Enumerating objects: 32635, done.
    remote: Counting objects: 100% (2329/2329), done.
    remote: Compressing objects: 100% (235/235), done.
    remote: Total 32635 (delta 2189), reused 2100 (delta 2094), pack-reused 30306 (from 3)
    Receiving objects: 100% (32635/32635), 16.08 MiB | 9.34 MiB/s, done.
    Resolving deltas: 100% (17488/17488), done.
    HEAD is now at 81a2e722 Fix a warning
    Submodule 'cbits/tracy' (https://github.com/wolfpld/tracy.git) registered for path 'cbits/tracy'
    Cloning into '/tmp/acc/dist-newstyle/src/accelerate-bc364d47be689e0b0d70b0c14c246a316df1f41e69fb113a9a819eb608637e3c/cbits/tracy'...
    Submodule path 'cbits/tracy': checked out '5d542dc09f3d9378d005092a4ad446bd405f819a'
    Entering 'cbits/tracy'
    Cloning into '/tmp/acc/dist-newstyle/src/accelerat_-3eb59045cd99e2e4e0c09ea7668e34e06a7eb46314a19918fccbd159f4e10662'...
    remote: Enumerating objects: 25274, done.
    remote: Counting objects: 100% (2590/2590), done.
    remote: Compressing objects: 100% (168/168), done.
    remote: Total 25274 (delta 2481), reused 2422 (delta 2422), pack-reused 22684 (from 2)
    Receiving objects: 100% (25274/25274), 4.21 MiB | 9.94 MiB/s, done.
    Resolving deltas: 100% (13122/13122), done.
    fatal: Could not parse object 'd9c556d18e5e4588b3785ef4e175cd73c57610c7'.
    
  11. noughtmare commented on Sep 12, 2025

    @noughtmare

    Ah, I see I should change https://github.com/tomsmeding/accelerate-llvm to https://github.com/AccelerateHS/accelerate-llvm.

  12. tomsmeding commented on Sep 12, 2025

    @tomsmeding
    Member

    The errors that you get from git (via cabal) here are very uninformative. You first have to realise they're errors from git in the first place, and then you have to manually check where exactly the unknown hash is specified to be able to start thinking about what the solution is. This hash was indeed not cbits/tracy, it was the hash in your cabal.project. :P

    Let us know if there is anything else you run into.

  13. noughtmare commented on Nov 20, 2025

    @noughtmare

    I'm now getting this conflict when trying to build accelerate with GHC 9.10.3:

    [__4] rejecting: accelerate-llvm-native-1.3.0.0 (conflict: binary => containers==0.7/installed-3cec, accelerate-llvm-native => containers>=0.5 && <0.7)
    

    Using --allow-newer=containers yields this error:

    src/Data/Array/Accelerate/LLVM/Native/Plugin.hs:32:1: error: [GHC-87110]
        Could not find module ‘GHC.Linker’.
        Use -v to see a list of the files searched for.
       |
    32 | import GHC.Linker
       | ^^^^^^^^^^^^^^^^^
    

    Edit: GHC 9.8.4 does work.

  14. tomsmeding commented on Nov 20, 2025

    @tomsmeding
    Member

    @noughtmare I've tested Accelerate with 9.10.2, 9.12.2 and the 9.14.0.20251104 release candidate (with a bunch of allow-newer for the latter), and with minor changes everything seems to work so I've pushed the changes and upped the dependency bounds. Please try again. :)

  15. noughtmare commented on Nov 21, 2025

    @noughtmare

    It works now! Thanks for the quick response. I've also opened a PR to linear-accelerate to bump some more bounds, but I guess that is outside your purview.

    By the way, my current use case is this challenge on discourse: https://discourse.haskell.org/t/challenge-convert-this-small-3d-graphics-imperative-algorithm-to-haskell/13291/8?u=jaror

  16. andreasabel commented on Jan 14, 2026

    @andreasabel

    Please make a hackage release that works with recent GHCs:

    [__1] rejecting: base-4.21.0.0/installed-958c (conflict: accelerate => base>=4.12 && <4.15)

    I guess with that glossy-magazine presentation of https://www.acceleratehs.org/ one expects more than a package that is half a decade behind.

  17. tmcdonell commented on Jan 14, 2026

    @tmcdonell
    Member

    @andreasabel thanks, I guess that's a compliment? I also haven't updated the website in 9 years https://github.com/AccelerateHS/acceleratehs.github.io

    Tom indeed contacted me recently about this, I expect it will happen soon-ish.

    Maybe in the mean time you can help by sending PRs to update all the auxiliary packages?

  18. andreasabel commented on Jan 16, 2026

    @andreasabel

    Yeah, the website looks great, and it made me expect much more than I found here.
    Apologies for voicing my frustration.
    I was looking for working GPU support in Haskell, and this project is advertised both by Google search and ChatGPT---but it does not seem to be in a state that I could use in teaching or software projects.
    I have researched other candidates for GPU support but have not found anything ready to use.

  19. tomsmeding commented on Jan 16, 2026

    @tomsmeding
    Member

    @tmcdonell It seems we were waiting on each other.

    @andreasabel Release preparation is progressing, but I have a PhD thesis to submit next month and that is severely limiting the amount of time I can spend on this. We are in fact using Accelerate for a course here in Utrecht, but we have the advantage of knowing which branches to pull from where.

  20. nlastochkin commented on Mar 6, 2026

    @nlastochkin

    @tomsmeding

    We are in fact using Accelerate for a course here in Utrecht, but we have the advantage of knowing which branches to pull from where.

    Hope you PhD is coming along well. Could you share the knowledge regarding the branches you've mentioned here?

  21. tomsmeding commented on Mar 6, 2026

    @tomsmeding
    Member

    @nlastochkin Currently on the go, but from memory: master of AccelerateHS/accelerate and AccelerateHS/accelerate-llvm, plus runtime-split of tomsmeding/cuda if you want to use the PTX backend. Please post again if that doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions