You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[feature request] Cut new release and/or clarify release roadmap #553
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.
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.
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.
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):
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.
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!
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.
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
| ^^^^^^^^^^^^^^^^^
@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. :)
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.
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.
@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.
@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.
Activity
tomsmeding commentedon Apr 25, 2025
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 theclangexecutable 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.
dragospe commentedon Apr 25, 2025
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
masterlikely 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.
tomsmeding commentedon Apr 25, 2025
Definitely
master, and in particular:masterofAccelerateHS/accelerateandAccelerateHS/accelerate-llvmllvm-15branch ofllvm-hs/llvm-hs; this means that you will need LLVM version 15 (latest on hackage is LLVM 9)cuda-12branch oftomsmeding/cuda; this corresponds to this PR on upstreamtmcdonell/cudathat will likely be merged soon (I'm in contact with tmcdonell).In fact, if you're okay with non-
masterversions, I can recommend going more bleeding-edge with the followingcabal.project(or the equivalent Nix configuration, if you're not usingcabaldirectly):This configuration only requires you to install
clang(any recent version), not LLVM 15 in a specific build configuration.The
llvm-prettyfork will likely be vendored into an Accelerate release this spring, if that does happen. We do plan to upstream the additionalllvm-prettyfunctionality 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.dragospe commentedon Apr 25, 2025
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!
cassandracomar commentedon May 20, 2025
@dragospe I have a working flake with GHC 9.10 here
noughtmare commentedon Sep 12, 2025
I'm trying the more bleeding edge versions, but running into this error:
tomsmeding commentedon Sep 12, 2025
@noughtmare A bunch of stuff has been merged to master. To get these more bleeding-edge versions, you now need:
master(81a2e722bef86393c077ba22642206c2a96b4d6c)master(d9c556d18e5e4588b3785ef4e175cd73c57610c7)tomsmeding/llvm-prettyThis should be arranged automatically with a git submoduleptx(a253a7fc1c62f4825ffce6b2507eebc5dadff32c)The
cudapackage is now on Hackage again, at least for CUDA 12 (working on CUDA 13).noughtmare commentedon Sep 12, 2025
With those newer versions, I'm still getting the same git failure with the
cbits/tracysubmodule.tomsmeding commentedon Sep 12, 2025
Everything seems in order for me here; what commits are you on precisely, and what is the error that you get?
noughtmare commentedon Sep 12, 2025
When I create a fresh cabal project (
cabal init -mnq) and add thiscabal.project:If I then run
cabal buildI get this output:noughtmare commentedon Sep 12, 2025
Ah, I see I should change
https://github.com/tomsmeding/accelerate-llvmtohttps://github.com/AccelerateHS/accelerate-llvm.tomsmeding commentedon Sep 12, 2025
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.
noughtmare commentedon Nov 20, 2025
I'm now getting this conflict when trying to build accelerate with GHC 9.10.3:
Using
--allow-newer=containersyields this error:Edit: GHC 9.8.4 does work.
tomsmeding commentedon Nov 20, 2025
@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. :)
noughtmare commentedon Nov 21, 2025
It works now! Thanks for the quick response. I've also opened a PR to
linear-accelerateto 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
andreasabel commentedon Jan 14, 2026
Please make a hackage release that works with recent GHCs:
I guess with that glossy-magazine presentation of https://www.acceleratehs.org/ one expects more than a package that is half a decade behind.
tmcdonell commentedon Jan 14, 2026
@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?
andreasabel commentedon Jan 16, 2026
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.
tomsmeding commentedon Jan 16, 2026
@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.
nlastochkin commentedon Mar 6, 2026
@tomsmeding
Hope you PhD is coming along well. Could you share the knowledge regarding the branches you've mentioned here?
tomsmeding commentedon Mar 6, 2026
@nlastochkin Currently on the go, but from memory:
masterof AccelerateHS/accelerate and AccelerateHS/accelerate-llvm, plusruntime-splitof tomsmeding/cuda if you want to use the PTX backend. Please post again if that doesn't work.