- Ubuntu 18.04
- NVIDIA driver 430.40
- NVIDIA Video Codec SDK 9.0.20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |