Skip to content

Instantly share code, notes, and snippets.

@Hopobcn
Hopobcn / README.md
Last active September 16, 2020 21:47
gitlab-runner configuration file with docker runner for using NVIDIA GPUs (nvidia-docker)

Use Gitlab-CI with GPU support

Since gitlab-runner cannot be forced to use nvidia-docker wrapper, follow this steps:

  1. Install all required software: docker, nvidia-docker, gitlab-ci-multi-runner
  2. Execute: curl -s http://localhost:3476/docker/cli
  3. Use that data to fill devices/volumes/volume_driver fields in /etc/gitlab-runner/config.toml
@Hopobcn
Hopobcn / README.md
Created July 31, 2017 14:59
Linking PGI-OpenACC libraries with GCC

Linking PGI-OpenACC libraries with GCC

Let's say we want to link the OpenACC libraries from PGI into a binary compiled with gcc

example:

gcc -fopenacc -I${PGI_HOME}/etc/include_acc -o foo foo.c -L${PGI_HOME}/lib -Wl,-rpath,${PGI_HOME}/lib -laccapi -laccg -laccg2 -ldl -lpgc -lm

@Hopobcn
Hopobcn / init.vim
Last active December 25, 2021 15:08
neovim configuration with vim-airline, gruvbox colors & deoplete C/C++ code completion
call plug#begin('~/.config/nvim/plugged')
" Plugins {
" airline is a better status line and a tab-bar for nvim.
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
" gruvbox colorscheme. Seems to work the best for me.
Plug 'morhetz/gruvbox'
" deoplete - code completion. REQUIRES: :echo has("python3")
@Hopobcn
Hopobcn / .gdbinit
Last active October 7, 2015 10:56 — forked from skyscribe/.gdbinit
GDB init file to print STL containers and data members
#
# STL GDB evaluators/views/utilities - 1.03
#
# The new GDB commands:
# are entirely non instrumental
# do not depend on any "inline"(s) - e.g. size(), [], etc
# are extremely tolerant to debugger settings
#
# This file should be "included" in .gdbinit as following:
# source stl-views.gdb or just paste it into your .gdbinit file