BSD-3-Clause licensed and maintained by Trevor L. McDonell
This version can be pinned in stack with:nvvm-0.10.0.1@sha256:13b54669b580e27455bbab8d0e3d09711646d2655dd9dd80ec48f16aa8841689,2456

Module documentation for 0.10.0.1

Haskell FFI Bindings to NVVM

Travis build status AppVeyor build status Stackage LTS Stackage Nightly Hackage

The NVVM library compiles NVVM IR (a subset of LLVM IR) into PTX code which can then be executed on NVIDIA GPUs.

In contrast to the standard NVPTX target built in to the LLVM toolchain, NVVM includes a set of proprietary optimisations which are otherwise only available by compiling CUDA code with the nvcc compiler. On the other hand, the version of LLVM that NVVM is internally based on typically lags the public release by several generations (years), so these secret optimisations may or may not be worthwhile to your application.

The resulting PTX code can be loaded onto the GPU and executed using the cuda package.

The NVVM library is a compiler component available a part of the CUDA toolkit:

https://developer.nvidia.com/cuda-toolkit

The configure step will look for your CUDA installation in the standard places, and if the nvcc compiler is found in your PATH, relative to that.

Changes

Revision history for nvvm

Notable changes to the project will be documented in this file.

The format is based on Keep a Changelog.

0.10.0.1 - 2023-08-15

Fixed

  • Build fixes for GHC 9.2 .. 9.6

0.10.0.0 - 2020-08-26

Added

  • Support for Cabal-3
  • nvvmDeviceLibraryPath

0.9.0.0 - 2018-10-02

Fixed

  • Build fix for ghc-8.6

Added

  • addModuleLazy and addModuleLazyFromPtr from CUDA-10.0

Changed

  • Replace uses of String with ShortByteString

0.8.0.3 - 2018-03-12

Fixed

  • Build fix for Cabal-2.2 (ghc-8.4)

0.8.0.2 - 2018-01-05

Fixed

  • Fix profiling build

0.8.0.1 - 2017-11-15

Fixed

  • Fix nvvm library path on windows (#2)

0.8.0.0 - 2017-08-24

Changed

  • Build setup improvements

0.7.5.2 - 2017-04-10

Added

  • Add support for older c2hs versions

0.7.5.1 - 2016-11-08

Added

  • Add support for Cabal-1.22

0.7.5.0 - 2016-10-08

  • First version. Released on an unsuspecting world.