Now "import Data.Array.Accelerate" works ok, but
t
here's still an error with the second import:Could not find module ‘Data.Array.Accelerate.LLVM.Native’
Hi Adam,
That module is available from the package accelerate-llvm-native, while the GPU backend is available in accelerate-llvm-ptx. It is strange that stack didn’t mention that you need this package though, it usually does for me \:
Since you mention that you are running on windows, I should mention that the CPU backend doesn’t currently work on windows (see #395) but the GPU backend should work.
Hope that helps!
-Trev
--
You received this message because you are subscribed to the Google Groups "Accelerate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to accelerate-hask...@googlegroups.com.
Visit this group at https://groups.google.com/group/accelerate-haskell.
For more options, visit https://groups.google.com/d/optout.
--
Thanks Trevor. Re Windows: indeed my own machine is a Linux laptop, and I'm only using the Windows desktop as it has much better specs including a fair graphics card.Regarding the cabal install you mention, I thought the Getting Started sections 2.1 for cabal and 2.2 for stack were one or the other, but your saying that a cabal install LLVM is also needed when using stack? I thought the extra-deps in a stack.yaml was precisely for packages like accelerate that are in Hackage but not Stackage. Aren't there problems cabal installing and also using stack?, e.g. I understand cabal is not per project.
In fact I didn't need LLVM or anything to be usable from Visual Studio, as I can use my Haskell outside of all that. I was just experimenting to try and gather info and make some progress. There seems to be other Windows issues though, like the odd CUDA one I mentioned.
You mention your having a Windows VM. That makes me think I can run my project on a Ubuntu VM on the Windows machine. Does all the parallel graphics card goodness still work on a VM? I could move to a Linux dual boot later perhaps. I've also just seen that you've put an image up on Docker Hub, so I could run that in the Ubuntu VM if that's feasible or an easier alternative.
By the way the context of all this is a home project to analyse the viability of one of the stablecoin cryptocurrencies (i.e. one designed to maintain a value peg with another currency). I have my maths model all worked out and (my first) Haskell program written (not parallel yet though). The Monte Carlo simulations are quite demanding though, prompting the use of Accelerate. Turns out I can't really drop the project, though I have less time now. Apologies if the previous post sounded a tad peevish - you know how online magically magnifies everything.