https://github.com/statusfailed/scratch-accelerate
Simple example using Accelerate on CPU and GPU
https://github.com/statusfailed/scratch-accelerate
Last synced: 12 months ago
JSON representation
Simple example using Accelerate on CPU and GPU
- Host: GitHub
- URL: https://github.com/statusfailed/scratch-accelerate
- Owner: statusfailed
- Created: 2020-06-30T10:40:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-02T17:33:29.000Z (about 5 years ago)
- Last Synced: 2025-01-31T08:18:53.019Z (about 1 year ago)
- Language: Haskell
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Accelerate Scratchpad
I was having trouble getting [accelerate][accelerate] projects to build from
Hackage, so this is a cabal project which pins working versions of all the
dependencies necessary to...
* run on the CPU with [Accelerate LLVM Native][accelerate-llvm-native]
* run on the GPU with [CUDA][accelerate-llvm-ptx]
[accelerate]: https://github.com/AccelerateHS/accelerate
[accelerate-llvm-native]: https://github.com/AccelerateHS/accelerate-llvm/tree/master/accelerate-llvm-native
[accelerate-llvm-ptx]: https://github.com/AccelerateHS/accelerate-llvm/tree/master/accelerate-llvm-ptx
`Main.hs` shows how to run the `dotp` example from `Data.Array.Accelerate` on
the CPU and GPU.
# Arch Linux
I built this on arch, and needed two non-haskell dependencies:
* [llvm9](https://www.archlinux.org/packages/extra/x86_64/llvm9/)
* [cuda](https://www.archlinux.org/packages/community/x86_64/cuda/)