Coder Social home page Coder Social logo

floor_examples's Introduction

floor examples

dnn

  • demonstrates inference on a VGG16 deep neural network (implements convolution, max-pooling, fully-connected and softmax layers)

  • build with ./build.sh inside the folder

  • cd data/nets/vgg16 && ./get_vgg16.sh to download the necessary VGG16 layers/net

  • desktop/cli: run with --image <path/to/image.png> (image must be 224*224px 32-bit RGBA for now)

  • iOS: press cheese and take a photo iOS: Lake in the Alps; cli: Tiger, licensed under CC BY 2.0 by Tony Hisgett

warp

  • image-based warping, implemented using a scatter-based approach and a gather-based approach (based on "Image-Based Bidirectional Scene Reprojection")

  • also demonstrates use of: tessellation/displacement, argument buffers and indirect command pipelines

  • build with ./build.sh inside the folder

  • gather-based warping ref: Image-Based Bidirectional Scene Reprojection (original)

  • NOTE: in addition to floor + dependencies, this requires SDL2_image with libpng, as well as libwarp

  • video:
    0

nbody

  • N-body simulation to demonstrate local/shared memory buffers, local memory barriers, OpenGL and Metal buffer sharing, loop unrolling and that high performance computing is indeed possible with this toolchain

  • build with ./build.sh inside the folder

  • ref: http://http.developer.nvidia.com/GPUGems3/gpugems3_ch31.html

  • video:
    0

hlbvh

path_tracer

  • a simple path tracer to demonstrate compute code compilation and execution, as well as some mildly complex modern C++ code

  • build with ./build.sh inside the folder

  • default output:
    noise and streaks courtesy of the horrible random function that I’m using

  • output with --with-textures:
    with simple textures

reduction

  • simple (WIP) reduction example that showcases 3 different reduce implementations: local/shared memory reduce, shuffle reduce and CUDA coop kernel + shuffle reduce

  • inclusive/exclusive scan test

  • build with ./build.sh inside the folder

img

  • small program to demonstrate image functionality by doing a gaussian blur, implemented as both a single-stage blur with manual local memory caching, as well as a separable horizontal/vertical "dumb" blur w/o manual caching (also: a GLSL/OpenGL implementation that does the same)

  • build with ./build.sh inside the folder

  • example output:
    image blur example

occ

  • offline-compute-compiler, compiles compute/graphics C++ code to CUDA/PTX, Metal/AIR, OpenCL/SPIR/SPIR-V, Vulkan/SPIR-V code/binaries (see --help for all options)

  • build with ./build.sh inside the folder

libfloor and toolchain

floor_examples's People

Contributors

a2flo avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

floor_examples's Issues

nbody clang error

Hey,

I'm trying to build your nbody example, but get this error in the linking step:

>> linking ... /usr/bin/clang++ -o bin/nbody build/release/src/gl_renderer.cpp.o build/release/src/main.cpp.o build/release/src/vulkan_renderer.cpp.o build/release/src/nbody.cpp.o build/release/src/unified_renderer.cpp.o build/release/src/metal_renderer.mm.o -fvisibility=default -stdlib=libc++ -m64 -lfloor -rdynamic -rpath /opt/floor/lib -fPIC -L/lib -L/usr/local/lib -Wl,-rpath,/usr/local/lib -Wl,--enable-new-dtags -lSDL2 -lcrypto -lssl -lopenal -lpthread -lGL -lXxf86vm -lc++abi -L/usr/lib -L/usr/local/lib -L/opt/floor/lib build/release/src/metal_renderer.mm.o:(.data.DW.ref.__gnu_objc_personality_v0[DW.ref.__gnu_objc_personality_v0]+0x0): undefined reference to __gnu_objc_personality_v0'
clang: error: linker command failed with exit code 1 (use -v to see invocation)`

Any idea what I might have missed?

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.