Git Product home page Git Product logo

cudnn_migration's Introduction

cuDNN Migration Samples

The guide is for users of cuDNN v7 legacy APIs to migrate to cuDNN v8 frontend APIs, where one can benefit from faster computational kernels, lower CPU overhead, more flexible controls, etc. More in here.

Differing from the offical samples, this repo contains self-contained code samples to demonstrate the one-to-one mapping of v7 legacy APIs and its corresponding v8 frontend API. To make the code easy to read, I restrain the use of function nesting, template, branches, command arguments, etc.

Usage

In general, every xxx_v7_xxx.cpp corresponds to a xxx_v8_xxx.cpp and the Makefile shows how to compile them. When running the executable, we can specify which algorithm (v7) or which engine (v8) for the convolution. They are supposed to generate same results when the inputs are equal. Note, the "same" outputs don't mean bitwise same but the difference between two numbers is under a small acceptable tolerance. For example,

  • Compile the code with v8 frontend APIs and use the 0th engine.
$ make cudnn_v8_conv2d_fwd_float.out
$ ./cudnn_v8_conv2d_fwd_float.out 0
  • Compile the code with v7 legacy APIs and use the 0th algorithm.
$ make cudnn_v7_conv2d_fwd_float.out
$ ./cudnn_v7_conv2d_fwd_float.out 0

cudnn_migration's People

Contributors

kaixih avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 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.