GithubHelp home page GithubHelp logo

alpha123 / tclopencl Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 285 KB

VERY WIP OpenCL extension for Tcl

License: GNU General Public License v3.0

Makefile 3.42% Tcl 3.86% Shell 4.56% M4 34.65% C 53.52%

tclopencl's Introduction

A VecTcl Extension For Parallel Numeric Computation on Heterogeneous Platforms

TclOpenCL provides both low-level and higher-level access to OpenCL 1.2+ APIs via SWIG and a TclOO wrapper.

THIS IS PROBABLY NOT USEFUL TO YOU YET

Installation

Binaries

Building TclOpenCL on Windows is a bit of a pain. You can download binary releases on GitHub. These have been verified to work with ActiveTcl 8.6 on 64-bit Windows 10 and the NVIDIA platform.

TclOpenCL requires VecTcl and an OpenCL implementation for your platform. Hacking on TclOpenCL requires SWIG.

Once that's installed, git clone https://github.com/alpha123/TclOpenCL and do the standard ./configure; make install. You may need to play with the --with-opencl=path/to/opencl/lib/dir configure flag on Windows. Type ./configure --help to see other flags.

Progress

What works:

  • Create and query OpenCL devices and platforms
  • Create command queues, contexts, and memory buffers
  • Build OpenCL programs and query kernels
  • Pass arguments to kernels and run them
  • Do all of the above from a TclOO interface

What kind of works:

  • Create memory buffers from VecTcl arrays
  • Call kernels with VecTcl arrays as arguments

What doesn't work:

  • Copy buffers back to VecTcl arrays....
  • Fully asynchronous APIs based on OpenCL events
  • A more pleasant way of managing workgroups
  • A higher-level DSL for defining and running kernels

tclopencl's People

Contributors

alpha123 avatar

Watchers

 avatar  avatar  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.