Giter Site home page Giter Site logo

halechan / exploring-gpgpu-on-ios Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ciechan/exploring-gpgpu-on-ios

0.0 1.0 0.0 177 KB

Home Page: http://ciechanowski.me/blog/2014/01/05/exploring_gpgpu_on_ios/

License: MIT License

Objective-C 100.00%

exploring-gpgpu-on-ios's Introduction

Exploring GPGPU on iOS

This is a companion repo for my blog post on GPGPU computing on iOS. It contains three computation examples that were presented in the post as well as benchmarks used for performance measurements.

For the record, in the extreme case, the GPU performed over 64 times faster than CPU.

##Requirements

####OpenGL ES 3.0 capable device This basically boils down to A7 chip (iPhone 5s, iPad Air, Retina iPad mini).

####iOS 7.1 While this code uses a new feature of OpenGL ES 3.0 (namely Transform Feedback) and the feature itself does work in iOS 7.0.x, it is somehow dysfunctional. Due to a confirmed bug (Apple dev account required), shaders that contain and call user defined functions do crash when used for Transform Feedback. While I could manually inline the function's body into the source code, my implementation generates shaders with variable number of in and out vectors and having a single function to call made shader generator significantly easier to create. While I've tested the code on iOS 7.1 beta 2, it should work on beta 1 as well.

Note, that if you are willing to write the shader manually or create a smarter shader generator that will not use user defined functions, you can make the code work on iOS 7.0.x.

##Important

This application doesn't display anything, it merely runs calculations on the CPU and the GPU then prints the benchmark output to the console.

exploring-gpgpu-on-ios's People

Contributors

ciechan avatar endrelovas avatar

Watchers

Hale Chan 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.