Skip to content

Instantly share code, notes, and snippets.

View robosina's full-sized avatar
👋
Hi

Saeed Masoomi robosina

👋
Hi
View GitHub Profile
@robosina
robosina / ubuntu1804_dGPU_install_nv_deepstream.dockerfile
Created February 16, 2021 10:57 — forked from CasiaFan/ubuntu1804_dGPU_install_nv_deepstream.dockerfile
Dockerfile to prepare DeepStream in docker for Nvidia dGPUs (including Tesla T4, GeForce GTX 1080, RTX 2080 and so on)
From ubuntu:18.04 as base
# install github and vim
RUN apt-get install -y vim wget gnupg
ENV DEBIAN_FRONTEND "noninteractive" # to skip any interactive configurations during installation
RUN apt-get install -yq keyboard-configuration
# install gstreamer
RUN apt install -y \
@robosina
robosina / README.md
Created February 15, 2021 12:58 — forked from corenel/README.md
Install NVDEC and NVENC as GStreamer plugins

Install NVDEC and NVENC as GStreamer plugins

Environment

  • Ubuntu 18.04
  • NVIDIA driver 430.40
  • NVIDIA Video Codec SDK 9.0.20

Steps

@robosina
robosina / cuda_cpp_class.cu
Created April 5, 2020 11:33 — forked from lebedov/cuda_cpp_class.cu
How to "wrap" a CUDA kernel with a C++ class.
// How to "wrap" a CUDA kernel with a C++ class; the kernel must be defined outside of
// the class and launched from within a class instance's method.
#include <iostream>
#include <cuda.h>
#include <cuda_runtime.h>
#define LEN 10
__global__ void kernel(int *a, int *b, unsigned int N);