Code Monkey home page Code Monkey logo

corticl's Introduction

CortiCL

CortiCL is a C++/OpenCL implementation of the HTM Cortical Learning Algorithm by Numenta. Whitepaper

Building

The main platform is 64-bit Linux, but it might run elsewhere too. To build:

mkdir build
cd build
cmake ..
make
./cldemo

Note that SDL2 and OpenCL development libraries are required.

Use of the algorithm

Numenta owns the Intellectual Property of the HTM algorithm. Please refer to Numenta website (http://numenta.org/) for more information.

Also note that I am not affiliated with the company, and that this library is the result of programming in my free time.

corticl's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

corticl's Issues

Build fails missing CL/cl.hpp

ians-air:build iandanforth$ cmake ..
-- The C compiler identification is Clang 5.1.0
-- The CXX compiler identification is Clang 5.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found OpenCL: /System/Library/Frameworks/OpenCL.framework
-- Found SDL2: /Library/Frameworks/SDL2.framework;-framework Cocoa
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/iandanforth/CortiCL/build
ians-air:build iandanforth$ make
[ 7%] Generating temporal.cl.h
[ 14%] Generating spatial.cl.h
Scanning dependencies of target corticl
[ 21%] Building CXX object CMakeFiles/corticl.dir/src/clregion.cpp.o
In file included from /Users/iandanforth/CortiCL/src/clregion.cpp:7:
In file included from /Users/iandanforth/CortiCL/src/clregion.h:9:
/Users/iandanforth/CortiCL/src/clcontext.h:5:10: fatal error: 'CL/cl.hpp' file not found

include <CL/cl.hpp>

     ^

1 error generated.
make[2]: *** [CMakeFiles/corticl.dir/src/clregion.cpp.o] Error 1
make[1]: *** [CMakeFiles/corticl.dir/all] Error 2
make: *** [all] Error 2

What OpenCL version did you use? KernelFunctor and the args give me grief.

It looks like you may not be working on this anymore. Anyway, I have an AMD card with OpenCL that I write with quite a bit. I'd like to compile your code, but you use the KernelFunctor features of OpenCL that have changed several times, essentially with every release. I've tried substituting every cl.hpp that I can find, but I get compiler errors somewhere in your usage of KernelFunctor or the argument assignment functions on every combination I've tried. I've experimented with several obvious variations on your code using different functor recommendations from the Khronos documents. The main issue there is that you set the args from the context structure which is not present when the functor is called. The way your code works is great, and I would prefer to set the args and trigger the functor separately, as you do. I may restructure your code, but perhaps you can tell me what OpenCL you used to compile.

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.