This repository has been archived by the owner on Jan 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes: #17
- Loading branch information
Showing
4 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. | ||
|
||
NV_DOCKER ?= docker | ||
|
||
# Building Docker images in parallel will duplicate identical layers. | ||
.NOTPARALLEL: | ||
.PHONY: all latest devel runtime | ||
|
||
all: latest devel runtime | ||
|
||
#################### OpenCL #################### | ||
|
||
latest: devel | ||
$(NV_DOCKER) tag opencl:$< opencl | ||
|
||
devel: $(CURDIR)/devel/Dockerfile | ||
$(NV_DOCKER) build -t opencl:$@ $(CURDIR)/devel | ||
|
||
runtime: $(CURDIR)/runtime/Dockerfile | ||
$(NV_DOCKER) build -t opencl:$@ $(CURDIR)/runtime |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. | ||
|
||
include ../../mk/opencl.mk |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM opencl:runtime | ||
MAINTAINER NVIDIA CORPORATION <[email protected]> | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends --force-yes \ | ||
clinfo \ | ||
ocl-icd-opencl-dev && \ | ||
rm -rf /var/lib/apt/lists/* |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM ubuntu:14.04 | ||
MAINTAINER NVIDIA CORPORATION <[email protected]> | ||
|
||
LABEL com.nvidia.volumes.needed="nvidia_driver" | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends --force-yes \ | ||
ocl-icd-libopencl1 \ | ||
clinfo && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir -p /etc/OpenCL/vendors && \ | ||
echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd | ||
|
||
RUN echo "/usr/local/nvidia/lib" >> /etc/ld.so.conf.d/nvidia.conf && \ | ||
echo "/usr/local/nvidia/lib64" >> /etc/ld.so.conf.d/nvidia.conf | ||
|
||
ENV PATH /usr/local/nvidia/bin:${PATH} | ||
ENV LD_LIBRARY_PATH /usr/local/nvidia/lib:/usr/local/nvidia/lib64:${LD_LIBRARY_PATH} |