Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
919bea8c
Commit
919bea8c
authored
Feb 09, 2019
by
abergeron
Committed by
Tianqi Chen
Feb 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Conda packages with cuda support (#2577)
parent
09ce162c
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
61 additions
and
8 deletions
+61
-8
conda/Dockerfile.cuda100
+16
-0
conda/Dockerfile.cuda92
+16
-0
conda/build_cuda.sh
+10
-0
conda/conda_build_config.yaml
+4
-2
conda/nnvm/meta.yaml
+1
-1
conda/topi/meta.yaml
+1
-1
conda/tvm-libs/build.sh
+8
-2
conda/tvm-libs/meta.yaml
+4
-1
conda/tvm/meta.yaml
+1
-1
No files found.
conda/Dockerfile.cuda100
0 → 100644
View file @
919bea8c
FROM nvidia/cuda:10.0-devel-centos6
RUN curl -o ~/miniconda.sh -O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
chmod +x ~/miniconda.sh && \
~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh && \
/opt/conda/bin/conda install conda-build conda-verify && \
/opt/conda/bin/conda clean -ya
ENV PATH /opt/conda/bin:$PATH
ENV LD_LIBRARY_PATH /usr/local/nvidia/lib:/usr/local/nvidia/lib64
WORKDIR /workspace
RUN chmod -R a+w /workspace
CMD conda build --output-folder /workspace/conda/pkg --variants '{cuda: True, cuda_version: 10.0}' /workspace/conda/tvm-libs
conda/Dockerfile.cuda92
0 → 100644
View file @
919bea8c
FROM nvidia/cuda:9.2-devel-centos6
RUN curl -o ~/miniconda.sh -O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
chmod +x ~/miniconda.sh && \
~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh && \
/opt/conda/bin/conda install conda-build conda-verify && \
/opt/conda/bin/conda clean -ya
ENV PATH /opt/conda/bin:$PATH
ENV LD_LIBRARY_PATH /usr/local/nvidia/lib:/usr/local/nvidia/lib64
WORKDIR /workspace
RUN chmod -R a+w /workspace
CMD conda build --output-folder /workspace/conda/pkg --variants '{cuda: True, cuda_version: 9.2}' /workspace/conda/tvm-libs
conda/build_cuda.sh
0 → 100644
View file @
919bea8c
#/bin/sh
condadir
=
`
dirname
$0
`
condadir
=
`
readlink
-f
$condadir
`
srcdir
=
`
dirname
$condadir
`
docker build
-t
tvm-cuda100-forge
$condadir
-f
$condadir
/Dockerfile.cuda100
docker run
--rm
-v
$srcdir
:/workspace tvm-cuda100-forge
docker build
-t
tvm-cuda92-forge
$condadir
-f
$condadir
/Dockerfile.cuda92
docker run
--rm
-v
$srcdir
:/workspace tvm-cuda92-forge
sudo
chown
-R
`
whoami
`
$condadir
/pkg
conda/conda_build_config.yaml
View file @
919bea8c
python
:
-
3.5
-
3.6
-
3.7
\ No newline at end of file
-
3.7
cuda
:
-
False
conda/nnvm/meta.yaml
View file @
919bea8c
...
...
@@ -8,7 +8,7 @@ source:
path
:
../..
build
:
number
:
0
number
:
1
skip
:
True
# [win]
requirements
:
...
...
conda/topi/meta.yaml
View file @
919bea8c
...
...
@@ -8,7 +8,7 @@ source:
path
:
../..
build
:
number
:
0
number
:
1
requirements
:
host
:
...
...
conda/tvm-libs/build.sh
View file @
919bea8c
...
...
@@ -6,10 +6,16 @@ if [ -z "$PREFIX" ]; then
PREFIX
=
"
$CONDA_PREFIX
"
fi
if
[
-z
"
$cuda
"
]
||
[
"
$cuda
"
==
"False"
]
;
then
CUDA_OPT
=
""
else
CUDA_OPT
=
"-DUSE_CUDA=ON"
fi
rm
-rf
build
||
true
mkdir
-p
build
cd
build
cmake
-DUSE_LLVM
=
ON
-DINSTALL_DEV
=
ON
-DCMAKE_INSTALL_PREFIX
=
"
$PREFIX
"
..
make
-j
2
VERBOSE
=
1
cmake
$CUDA_OPT
-DUSE_LLVM
=
ON
-DINSTALL_DEV
=
ON
-DCMAKE_INSTALL_PREFIX
=
"
$PREFIX
"
..
make
-j
4
VERBOSE
=
1
make install
cd
..
conda/tvm-libs/meta.yaml
View file @
919bea8c
...
...
@@ -8,7 +8,8 @@ source:
path
:
../..
build
:
number
:
0
number
:
1
string
:
cuda{{ cuda_version }}_{{ PKG_BUILDNUM }}
# [cuda]
requirements
:
build
:
...
...
@@ -23,6 +24,8 @@ requirements:
-
cmake
-
llvmdev ==6.0.0
# [linux]
-
zlib
# [linux]
run
:
-
{{
pin_compatible('cudatoolkit'
,
lower_bound=cuda_version
,
max_pin='x.x')
}}
# [cuda]
about
:
home
:
https://github.com/dmlc/tvm
...
...
conda/tvm/meta.yaml
View file @
919bea8c
...
...
@@ -8,7 +8,7 @@ source:
path
:
../..
build
:
number
:
0
number
:
1
requirements
:
build
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment