<commit_before>#+STARTUP: showall
* OpenCL
  A high-level OpenCL library for Haskell.

  Based on the [[http://hackage.haskell.org/package/OpenCLRaw][OpenCLRaw]] package by J.R. Heard.

** Installation
   *Requirements:* [[http://hackage.haskell.org/package/c2hs][c2hs]] must be installed. (Try ~cabal install c2hs~.)

  With the usual commands to install as a user library:
  
  : cabal install --user

  Programs using the library must link against OpenCL; for example, by
  passing ~-lOpenCL~ to GHC.

*** About versioning

    OpenCL module uses Package Version Policy:

    http://www.haskell.org/haskellwiki/Package_versioning_policy

    But It differs in the A version number. It use OpenCL API version as A
    number, so 1.0.3.0 correspond to A=1.0=OpenCL API version 1.0, B=3 and
    C=0. The major version number is 1.0.3

** Optional Requisites
   Some OpenCL libraries require additional NUMA libraries. For instance,
   on Ubuntu 11.04:

   : sudo apt-get install libnuma1 libnuma-dev

** Example
   There is an simple working example in the examples folder. You can create an
   executable using:

   : ghc --make -lOpenCL examples/example01.hs

** Using ghci

   It's possible to use GHCi with OpenCL, e.g.:

   : ghci -lOpenCL examples/example01.hs
<commit_msg>add IFCA link on README<commit_after>#+STARTUP: showall
* OpenCL
  A high-level OpenCL library for Haskell.

  Based on the [[http://hackage.haskell.org/package/OpenCLRaw][OpenCLRaw]] package by <NAME>.

  By <NAME> at [[http://www.ifca.es/en/home2][IFCA]]

** Installation
   *Requirements:* [[http://hackage.haskell.org/package/c2hs][c2hs]] must be installed. (Try ~cabal install c2hs~.)

  With the usual commands to install as a user library:
  
  : cabal install --user

  Programs using the library must link against OpenCL; for example, by
  passing ~-lOpenCL~ to GHC.

*** About versioning

    OpenCL module uses Package Version Policy:

    http://www.haskell.org/haskellwiki/Package_versioning_policy

    But It differs in the A version number. It use OpenCL API version as A
    number, so 1.0.3.0 correspond to A=1.0=OpenCL API version 1.0, B=3 and
    C=0. The major version number is 1.0.3

** Optional Requisites
   Some OpenCL libraries require additional NUMA libraries. For instance,
   on Ubuntu 11.04:

   : sudo apt-get install libnuma1 libnuma-dev

** Example
   There is an simple working example in the examples folder. You can create an
   executable using:

   : ghc --make -lOpenCL examples/example01.hs

** Using ghci

   It's possible to use GHCi with OpenCL, e.g.:

   : ghci -lOpenCL examples/example01.hs

{'fraction_non_alphanumeric': 0.09358288770053476, 'fraction_numerical': 0.01948051948051948, 'mean_word_length': 3.4016806722689075, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '850030', 'n_tokens_mistral': 899, 'n_tokens_neox': 835, 'n_words': 307}