GithubHelp home page GithubHelp logo

opencl-docker's Introduction

Docker images that support different OpenCL Runtime

The images are designed to be easy tested applications with different OpenCL drivers/runtime.

  • Support x86_64/amd64 platform.
  • Ubuntu as based OS.

Application

hashcat

Supported OpenCL platform

  • Intel platform

    • chihchun/opencl-beignet

       Beignet is an open source implementation of the OpenCL specification - a generic compute oriented API. This code base contains the code to run OpenCL programs on Intel GPUs which basically defines and implements the OpenCL host functions required to initialize the device, create the command queues, the kernels and the programs and run them on the GPU.
      
       https://www.freedesktop.org/wiki/Software/Beignet/
      
    • chihchun/opencl-intel

       Intel® SDK for OpenCL™ Applications 2016 R2 for Linux* (64 bit)
       OpenCL™ 2.0 Driver for Intel® HD, Iris™, and Iris™ Pro Graphics for Linux* (64-bit)
       https://software.intel.com/en-us/articles/opencl-drivers
      
  • AMD/ATI Radeon (not tested)

  • Nvidia (TBD)

Usage

You need to expose the /dev/dri to the docker container, in order to let the runtime access to the GPU kernel interface.

$ docker run -t -i --device /dev/dri:/dev/dri chihchun/opencl-beignet:1.1.1 clinfo
$ docker run -t -i --device /dev/dri:/dev/dri \
        chihchun/hashcat-beignet hashcat -b

The Intel OpenCL Driver requires XCB-DRI2 authentication, which must be running in X11 enviroment. Please run the following docker command from Desktop. Intel OpenCL SDK requires 4.4.0 kernel with patches, the docker image has been tested with Ubuntu 16.04.

% docker run -t -i --device /dev/dri:/dev/dri -v $(pwd)/wip:/mnt \
    -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY \
    chihchun/opencl-intel:2016R2 clinfo

opencl-docker's People

Contributors

chihchun avatar

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.