The haskell-cnc package

[ Tags: bsd3, control, library, parallelism, program ] [ Propose Tags ]

Intel (Concurrent Collections) CnC is a data-flow like deterministic parallel programming model, similar to stream-processing but in which nodes in the computation graph share data in tables.

[Skip to Readme]


Versions 0.1, 0.1.1, 0.1.2, 0.1.3,,
Dependencies array, base (>=3 && <5), containers, directory, extensible-exceptions, ghc-prim, HUnit, mtl, process, QuickCheck, random, time [details]
License LGPL
Copyright Copyright (c) 2009-2010 Intel Corporation
Author Ryan Newton <>
Maintainer Ryan Newton <>
Category system, concurrent
Home page
Uploaded Fri May 28 04:46:52 UTC 2010 by RyanNewton
Distributions NixOS:
Executables runAllTests
Downloads 1511 total (20 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees

Readme for haskell-cnc-0.1

[back to package description]

 Intel Concurrent Collections for Haskell
 Author: Ryan Newton, Copyright 2009-2010

This directory contains an implementation of the Intel Concurrent
Collections programming model (CnC) for Haskell.  It works only with

If you are looking in this directory, you are probably not using this
package through cabal.  Currently, it contains a Makefile and other
scripts that are redundant with the cabal file and will be removed in
the future.

Quick Start:
 On Unix(ish) systems with a Bash shell, try this:

  runcnc examples/primes.hs

You can also rerun the primes executable directly after that
(primes.exe).  To run with a particular number of threads, say 8, try:
  ./primes.exe +RTS -N8

Installing Haskell CnC 

  cabal install haskell-cnc

Running Haskell CnC, Method (1): Normal method.

CnC for Haskell can be used as a regular Haskell module.  
Look at "hello_world.hs" in the examples directory.

Running Haskell CnC, Method (2): Inlined library.

For testing purposes, Haskell CnC can inline the library and enable
the user to choose between different scheduling options and runtime
parameters statically.  Under this methodology the "runcnc" script is
used to compile and execute CnC programs.  The following environment
variable must be set:

 HASKELLCNC -- should be set to the install directory.
            (Sourcing is one way to
             accomplish this.)

Preprocessor variables:

 MEMOIZE    Turns on memoization of steps over tags.
            This is frequently done on a per-program basis using
            "#define MEMOIZE".

            Are multiple put's into an item collection with
            the same tag valid or an error?                       

 CNC_VARIANT     Which implementation?  'pure' or 'io'?
 CNC_SCHEDULER   Which scheduler within that implementation? (1-N)
            These can also be set as environment variables when using

            ignore this, it's internal and is used for switching 
            between schedulers-as-modules or schedulers-as-includes