Giter VIP home page Giter VIP logo

p4haskell's Introduction

p4haskell

A GPU-accelerated back end for the PR programming language.

Usage

  1. The first step is to compile a p4 program with the GPU back end present in my fork of the p4c compiler1, and dump the AST, for example: ./build/backends/gpu/p4c-gpu port-forwarding.p4 --toJSON port-forward.json
  2. The next step is to use this compiler to generate a CUDA file, for example: stack run -- -i firewall.json > kernel.cu
  3. The final step is to place this CUDA file into the runtime2 as src/kernel.cu, and compile the runtime using cargo build --release. The runtime can then be executed using sudo env LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib" target/release/dpdk-gpu-test -s payload_1024.pcap

Footnotes

  1. https://github.com/simmsb/p4c

  2. https://github.com/simmsb/dpdk-testing-stuff

p4haskell's People

Contributors

simmsb avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

kmatthewmarsden

p4haskell's Issues

Generate table application result

  • Generate the action_run field by giving type generation an optional fallback function.
  • Generate action_run enum type using action names.

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.