Giter Site home page Giter Site logo

vyom1611 / learning-cuda-trt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jinmin527/learning-cuda-trt

0.0 0.0 0.0 350.24 MB

A large number of cuda/tensorrt cases .

License: MIT License

Shell 0.18% C++ 74.06% Python 15.56% C 2.49% Objective-C 0.01% Java 0.01% Lua 0.01% PowerShell 0.01% CSS 0.01% Cuda 0.86% Makefile 0.20% PureBasic 0.01% HTML 0.34% CMake 0.08% Jupyter Notebook 6.13% Cython 0.02% Dockerfile 0.05% Roff 0.01% SWIG 0.01%

learning-cuda-trt's Introduction

Learning CUDA and TensorRT

A large number of CUDA/TensorRT examples are provided in this project.

  • CUDA Driver API
  • CUDA Runtime API
  • Introduction to TensorRT Basics
  • Basic TensorRT Learning
  • Plugins and ONNX Parser
  • Advanced TensorRT Applications
  • Exporting ONNX Models, Preprocessing, and Postprocessing
  • Handling Complex Situations with Specific Project Examples

This is a source code project for learning CUDA and TensorRT through examples. It covers a wide range of cases, from basic CUDA driver and runtime APIs to introductory and advanced TensorRT concepts. It also includes model export, preprocessing, postprocessing, and multithreading encapsulation.

Usage Instructions - Manual Environment Configuration

  • All examples use Makefile as the build tool.
  • Special variables like ${@CUDA_HOME} should be replaced with your system's actual environment values.
  • After configuration, you can usually compile and run with make run.

Usage Instructions - Automatic Environment Configuration

  • Requires a Linux system (Ubuntu 16.04 or higher) with GPU and NVIDIA driver version 495 or higher.
  • Install the Python package: pip install trtpy -U -i https://pypi.org/simple
  • Set up shortcut: echo alias trtpy="python -m trtpy" >> ~/.bashrc
  • Apply shortcut: source ~/.bashrc
  • Configure key: trtpy set-key sxaikiwik
  • Fetch and configure environment: trtpy get-env --cuda=11 (supports CUDA versions 10 and 11 only)
  • Automatically update configuration variables: trtpy prep-vars . to replace all variables in the current directory.
  • Run with make run

References

learning-cuda-trt's People

Contributors

vyom1611 avatar shouxieai 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.