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
/* $ 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> |
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
#!/bin/bash | |
set -eux | |
docker rmi cache test || true | |
docker build -t cache --label "ref=12345" - <<EOF | |
FROM alpine | |
ENV VAR value | |
EOF |
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 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" |