accelerate-llvm-ptx: Accelerate backend for NVIDIA GPUs
This library implements a backend for the Accelerate language which generates LLVM-IR targeting CUDA capable GPUs. For further information, refer to the main accelerate package.
- Dependencies
Haskell dependencies are available from Hackage. The following external libraries are alse required:
- Installing LLVM
Homebrew
Example using Homebrew on macOS:
brew install llvm-hs/llvm/llvm-9
Debian & Ubuntu
For Debian/Ubuntu based Linux distributions, the LLVM.org website provides binary distribution packages. Check apt.llvm.org for instructions for adding the correct package database for your OS version, and then:
apt-get install llvm-9-dev
Building from source
If your OS does not have an appropriate LLVM distribution available, you can
also build from source. Detailed build instructions are available on
LLVM.org. Make sure to
include the cmake build options
-DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON
so that the libLLVM
shared library will be built. Also ensure that the LLVM_TARGETS_TO_BUILD
option includes the NVPTX
target (if not specified all targets are built).
[Skip to Readme]
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
nvvm | Use the NVVM library to generate optimised PTX | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- accelerate-llvm-ptx-1.3.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 1.0.0.0, 1.0.0.1, 1.1.0.0, 1.1.0.1, 1.2.0.0, 1.2.0.1, 1.3.0.0 |
---|---|
Change log | CHANGELOG.md |
Dependencies | accelerate (>=1.3 && <1.4), accelerate-llvm (>=1.3 && <1.4), base (>=4.10 && <5), bytestring (>=0.10.4), containers (>=0.5 && <0.7), cuda (>=0.10), deepseq (>=1.3), directory (>=1.0), dlist (>=0.6), file-embed (>=0.0.8), filepath (>=1.0), ghc, ghc-heap, ghci, hashable (>=1.2), llvm-hs (>=4.1 && <9.1), llvm-hs-pure (>=4.1 && <9.1), mtl (>=2.2.1), nvvm (>=0.9), pretty (>=1.1), process (>=1.4.3), template-haskell, unordered-containers (>=0.2) [details] |
Tested with | ghc >=8.6 |
License | BSD-3-Clause |
Author | Trevor L. McDonell |
Maintainer | Trevor L. McDonell <trevor.mcdonell@gmail.com> |
Category | Accelerate, Compilers/Interpreters, Concurrency, Data, Parallelism |
Bug tracker | https://github.com/AccelerateHS/accelerate/issues |
Source repo | head: git clone https://github.com/AccelerateHS/accelerate-llvm.git this: git clone https://github.com/AccelerateHS/accelerate-llvm.git(tag v1.3.0.0) |
Uploaded | by TrevorMcDonell at 2020-08-28T14:22:01Z |
Distributions | |
Reverse Dependencies | 5 direct, 2 indirect [details] |
Downloads | 6195 total (21 in the last 30 days) |
Rating | 2.0 (votes: 1) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |