Updated 4/11/2018
Here's my experience of installing the NVIDIA CUDA kit 9.0 on a fresh install of Ubuntu Desktop 16.04.4 LTS.
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
Updated 4/11/2018
Here's my experience of installing the NVIDIA CUDA kit 9.0 on a fresh install of Ubuntu Desktop 16.04.4 LTS.
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.
#!/usr/bin/env bash | |
# | |
# Builds the docker image used in deployments. | |
# - embedding most files inside the image | |
# - turning on compilation and optimization | |
# - this requires the dev image as a tool (will pull it if not already available) | |
# | |
# This WILL wipe out any previous build and replace with a new one | |
# fetch build info to embed in the image |
#!/bin/bash | |
## This gist contains step by step instructions to install cuda v9.0 and cudnn 7.2 in ubuntu 18.04 | |
### steps #### | |
# verify the system has a cuda-capable gpu | |
# download and install the nvidia cuda toolkit and cudnn | |
# setup environmental variables | |
# verify the installation | |
### |
cmake_minimum_required(VERSION 3.16) | |
project(example LANGUAGES CXX) | |
find_package(hip REQUIRED) | |
add_executable(example main.cpp) | |
target_link_libraries(example PRIVATE hip::device) |