Git Product home page Git Product logo

hellocl's Introduction

Here be some OpenCL experiments.
------------------------------------------------------------------------

These experiments try to answer some questions, such as:

  A. Does this OpenCL thing work on my computer(s) at all?
  B. How about Haskell and OpenCL, does such a thing work?

Regarding A, findings so far, with Beignet [1]:

  - Yup, it does works on a 2014 Macbook Pro (Haswell [2]).
 
  - Nope, it doesn't work on a 2011 Thinkpad T420.  Neither on the GPU
    nor on the CPU (SandyBridge [3]).

Both computers are running Debian testing.  Now, uhh, about the other
OS that runs on Macbooks: I should try that too, one of these days.

Some instructions on setting up OpenCL on GNU/Linux machines are
available at [4] and [5].

Besides Beignet, I also tried the official Intel driver from [6] on
the Thinkpad.  It does not work, neither on the GPU nor on the CPU --
clGetDeviceIDs() returns CL_DEVICE_NOT_FOUND.  I vaguely remember that
stuff working on this machine back in the days, but I may be
misremembering things.

(Confusingly enough, according to the f.d.o wiki, it is Intel China
OTC that works on Beignet.  If it is indeed so, why is there another
"official" driver?  One of the great mysteries, it seems.)

Regarding B, OpenCL with Haskell [7] indeed works on the computer with
Haswell chip.

TODO:
------------------------------------------------------------------------

  - How about hopencl [8]? how is that different from OpenCL of [7]?
  
  - Some benchmarks should be fun.
  
  - Other languages/DSLs that support/extend OpenCL also should be
    fun: Rust, OCaml, C++, ArrayFire, boost::compute, etc.

------------------------------------------------------------------------

  [1] https://www.freedesktop.org/wiki/Software/Beignet/
  [2] http://ark.intel.com/products/83508
  [3] http://ark.intel.com/products/52229
  [4] https://wiki.tiker.net/OpenCLHowTo
  [5] https://mhr3.blogspot.com/2013/06/opencl-on-ubuntu-1304.html
  [6] https://software.intel.com/en-us/articles/opencl-drivers
  [7] https://github.com/IFCA/opencl
  [8] https://github.com/bgaster/hopencl

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.