Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lukaCoding
nvidia-container-runtime
提交
75e0e721
N
nvidia-container-runtime
项目概览
lukaCoding
/
nvidia-container-runtime
与 Fork 源项目一致
从无法访问的项目Fork
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
nvidia-container-runtime
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
75e0e721
编写于
9月 10, 2018
作者:
J
Jonathan Calmels
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Include driver headers
上级
bcf69c6c
变更
10
展开全部
隐藏空白更改
内联
并排
Showing
10 changed file
with
18260 addition
and
58 deletion
+18260
-58
Makefile
Makefile
+1
-2
mk/Dockerfile.amazonlinux
mk/Dockerfile.amazonlinux
+1
-12
mk/Dockerfile.centos
mk/Dockerfile.centos
+1
-11
mk/Dockerfile.debian
mk/Dockerfile.debian
+0
-12
mk/Dockerfile.ubuntu
mk/Dockerfile.ubuntu
+0
-11
mk/cuda.repo
mk/cuda.repo
+0
-6
src/cuda.h
src/cuda.h
+12381
-0
src/driver.c
src/driver.c
+2
-2
src/error.c
src/error.c
+3
-2
src/nvml.h
src/nvml.h
+5871
-0
未找到文件。
Makefile
浏览文件 @
75e0e721
...
...
@@ -22,7 +22,6 @@ export libdbgdir = $(prefix)/lib/debug$(libdir)
export
includedir
=
$(prefix)
/include
export
pkgconfdir
=
$(libdir)
/pkgconfig
export
CUDA_DIR
?=
/usr/local/cuda-8.0
export
PKG_DIR
?=
$(CURDIR)
/pkg
export
SRCS_DIR
?=
$(CURDIR)
/src
export
DEPS_DIR
?=
$(CURDIR)
/deps
...
...
@@ -117,7 +116,7 @@ LDFLAGS := -Wl,-zrelro -Wl,-znow -Wl,-zdefs -Wl,--gc-sections $(LDFLAGS)
LDLIBS
:=
$(LDLIBS)
# Library flags (recursively expanded to handle target-specific flags)
LIB_CPPFLAGS
=
-DNV_LINUX
-isystem
$(
CUDA_DIR)
/include
-isystem
$(
DEPS_DIR)$(includedir)
-include
$(BUILD_DEFS)
LIB_CPPFLAGS
=
-DNV_LINUX
-isystem
$(DEPS_DIR)$(includedir)
-include
$(BUILD_DEFS)
LIB_CFLAGS
=
-fPIC
LIB_LDFLAGS
=
-L
$(DEPS_DIR)$(libdir)
-shared
-Wl
,-soname
=
$(LIB_SONAME)
LIB_LDLIBS_STATIC
=
-l
:libnvidia-modprobe-utils.a
...
...
mk/Dockerfile.amazonlinux
浏览文件 @
75e0e721
...
...
@@ -2,20 +2,9 @@ ARG IMAGESPEC=amazonlinux:2
FROM ${IMAGESPEC}
ARG IMAGESPEC=amazonlinux:2
SHELL ["/bin/bash", "-c"]
COPY mk/cuda.repo /etc/yum.repos.d/
# XXX: CUDA doesn't officially support Amazon Linux, we just need the driver headers though
RUN distrib=rhel7 && \
arch=$(uname -m) && \
echo $distrib > /etc/yum/vars/distrib && \
curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/${distrib}/${arch}/7fa2af80.pub > /etc/pki/rpm-gpg/RPM-GPG-KEY-NVIDIA && \
yum install -y \
RUN yum install -y \
bzip2 \
createrepo \
cuda-misc-headers-8-0-8.0.61-1 \
cuda-nvml-dev-8-0-8.0.61-1 \
elfutils-libelf-devel \
gcc \
git \
...
...
mk/Dockerfile.centos
浏览文件 @
75e0e721
...
...
@@ -2,19 +2,9 @@ ARG IMAGESPEC=centos:7
FROM ${IMAGESPEC}
ARG IMAGESPEC=centos:7
SHELL ["/bin/bash", "-c"]
COPY mk/cuda.repo /etc/yum.repos.d/
RUN distrib=rhel${IMAGESPEC##*:} && \
arch=$(uname -m) && \
echo $distrib > /etc/yum/vars/distrib && \
curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/${distrib}/${arch}/7fa2af80.pub > /etc/pki/rpm-gpg/RPM-GPG-KEY-NVIDIA && \
yum install -y \
RUN yum install -y \
bzip2 \
createrepo \
cuda-misc-headers-8-0-8.0.61-1 \
cuda-nvml-dev-8-0-8.0.61-1 \
elfutils-libelf-devel \
gcc \
git \
...
...
mk/Dockerfile.debian
浏览文件 @
75e0e721
...
...
@@ -2,23 +2,11 @@ ARG IMAGESPEC=debian:9.2
FROM ${IMAGESPEC}
ARG IMAGESPEC=debian:9.2
SHELL ["/bin/bash", "-c"]
# XXX: CUDA doesn't officially support debian, we just need the driver headers though
RUN distrib=ubuntu1604 && \
arch=$(uname -m); arch=${arch/le/el} && \
apt-get update && apt-get install -y --no-install-recommends curl ca-certificates gnupg2 && \
curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/${distrib}/${arch}/7fa2af80.pub | apt-key add - && \
echo "deb http://developer.download.nvidia.com/compute/cuda/repos/${distrib}/${arch} /" > /etc/apt/sources.list.d/cuda.list && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y --no-install-recommends \
apt-utils \
bmake \
build-essential \
bzip2 \
cuda-misc-headers-8-0=8.0.61-1 \
cuda-nvml-dev-8-0=8.0.61-1 \
devscripts \
dh-make \
fakeroot \
...
...
mk/Dockerfile.ubuntu
浏览文件 @
75e0e721
...
...
@@ -2,22 +2,11 @@ ARG IMAGESPEC=ubuntu:16.04
FROM ${IMAGESPEC}
ARG IMAGESPEC=ubuntu:16.04
SHELL ["/bin/bash", "-c"]
RUN distrib=${IMAGESPEC//[.:]} && \
arch=$(uname -m); arch=${arch/le/el} && \
apt-get update && apt-get install -y --no-install-recommends gnupg2 curl ca-certificates && \
curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/${distrib/1804/1604}/${arch}/7fa2af80.pub | apt-key add - && \
echo "deb http://developer.download.nvidia.com/compute/cuda/repos/${distrib/1804/1604}/${arch} /" > /etc/apt/sources.list.d/cuda.list && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y --no-install-recommends \
apt-utils \
bmake \
build-essential \
bzip2 \
cuda-misc-headers-8-0=8.0.61-1 \
cuda-nvml-dev-8-0=8.0.61-1 \
devscripts \
dh-make \
fakeroot \
...
...
mk/cuda.repo
已删除
100644 → 0
浏览文件 @
bcf69c6c
[cuda]
name=cuda
baseurl=http://developer.download.nvidia.com/compute/cuda/repos/$distrib/$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NVIDIA
src/cuda.h
0 → 100644
浏览文件 @
75e0e721
此差异已折叠。
点击以展开。
src/driver.c
浏览文件 @
75e0e721
...
...
@@ -17,8 +17,8 @@
#include <string.h>
#include <unistd.h>
#include
<cuda.h>
#include
<nvml.h>
#include
"cuda.h"
#include
"nvml.h"
#pragma GCC diagnostic push
#include "driver_rpc.h"
...
...
src/error.c
浏览文件 @
75e0e721
...
...
@@ -7,9 +7,10 @@
#include <dlfcn.h>
#include <errno.h>
#include <cuda.h>
#include <libelf.h>
#include <nvml.h>
#include "cuda.h"
#include "nvml.h"
#include "error.h"
...
...
src/nvml.h
0 → 100644
浏览文件 @
75e0e721
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录