-
Notifications
You must be signed in to change notification settings - Fork 1
Accelerate cuda
Corban Schmidt edited this page May 12, 2017
·
1 revision
Installing Accelerate-cuda
This was one of the most troublesome installations possible. Here are the instructions for getting Accelerate-cuda installed with examples that utilize your CPU not GPU.
Open a terminal and enter the following:
git clone https://github.com/AccelerateHS/accelerate-cuda.git
Open a text editor and enter the following:
# For more information, see: https://github.com/commercialhaskell/stack/blob/release/doc/yaml_configuration.md
# vim: nospell
resolver: lts-7.16
packages:
- '.'
- location:
git: https://github.com/AccelerateHS/accelerate.git
commit: 1108decb6ec67f604fd9f8a3e4202ec7ead43bfb
extra-dep: true
- location:
git: https://github.com/AccelerateHS/accelerate-io.git
commit: f4c84a5c961345bf65059f555f21c6e8bf3070a1
extra-dep: true
- location:
git: https://github.com/AccelerateHS/accelerate-fft.git
commit: f801c78cb72e01a181b2023020444ffc9a099040
extra-dep: true
- location:
git: https://github.com/tmcdonell/gloss-accelerate.git
commit: ebf359c410d8bba2ea7f29e2e50c5102abd9304e
extra-dep: true
- location:
git: https://github.com/tmcdonell/gloss-raster-accelerate.git
commit: 021732e3fc6d62fd6c9f882f8c9c564b9514d54a
extra-dep: true
- location:
git: https://github.com/tmcdonell/colour-accelerate.git
commit: eac97f41a88ca7d7f4576fd4e41f04b57f106453
extra-dep: true
- location:
git: https://github.com/tmcdonell/linear-accelerate.git
commit: 952a2d4234b9855650ca7dc69ff6b234a7cdb56f
extra-dep: true
- location:
git: https://github.com/tmcdonell/lens-accelerate.git
commit: 00415bf19d76446685053222f90843f75ad6f94b
extra-dep: true
extra-deps:
- 'chaselev-deque-0.5.0.5'
- 'cuda-0.7.5.2'
- 'cufft-0.7.5.0'
- 'libffi-0.1'
- 'normaldistribution-1.1.0.3'
- 'nvvm-0.7.5.1'
- 'unique-0'
# Override default flag values for local packages and extra-deps
flags:
accelerate:
debug: false
ekg: false
accelerate-fft:
cuda: false
llvm-cpu: false
llvm-ptx: false
accelerate-examples:
cuda: false
llvm-cpu: false
llvm-ptx: false
gui: true
ekg: false
codespeed: false
nofib: true
smvm: true
crystal: true
tunnel: true
canny: true
mandelbrot: true
fluid: true
nbody: true
smoothlife: true
hashcat: true
fft: true
pagerank: true
ray: true
kmeans: true
# Extra package databases containing global packages
extra-package-dbs: []
# Control whether we use the GHC we find on the path
# system-ghc: true
# Require a specific version of stack, using version ranges
# require-stack-version: -any # Default
# require-stack-version: >= 0.1.4.0
# Override the architecture used by stack, especially useful on Windows
# arch: i386
# arch: x86_64
# Extra directories used by stack for building
# extra-include-dirs: [/path/to/dir]
# extra-lib-dirs: [/path/to/dir]
Save this file as "stack.yaml" Then run your usual cabal install commands