Skip to content

Instantly share code, notes, and snippets.

View flx42's full-sized avatar

Felix Abecassis flx42

  • NVIDIA
  • Santa Clara, California
View GitHub Profile
@flx42
flx42 / move_pages_bug.c
Created December 4, 2019 18:34
move_pages(2) issue
/* $ gcc move_pages_bug.c -lnuma -o move_pages_bug */
#define _DEFAULT_SOURCE
#include <sys/mman.h>
#include <numaif.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
@flx42
flx42 / test.sh
Created June 13, 2018 03:00
--cache-from issue with config.Cmd
#!/bin/bash
set -eux
docker rmi cache test || true
docker build -t cache --label "ref=12345" - <<EOF
FROM alpine
ENV VAR value
EOF
@flx42
flx42 / Dockerfile
Created August 23, 2017 13:35
docker multi-stage deviceQuery
FROM nvidia/cuda:8.0-devel-ubuntu16.04 as build
RUN apt-get update && apt-get install -y cuda-samples-8-0
RUN make -C /usr/local/cuda/samples/1_Utilities/deviceQuery
FROM ubuntu:16.04
COPY --from=build /usr/local/cuda/samples/1_Utilities/deviceQuery/deviceQuery /usr/local/bin/deviceQuery
LABEL com.nvidia.volumes.needed="nvidia_driver"