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
57381b60
Commit
57381b60
authored
5 years ago
by
abergeron
Committed by
Tianqi Chen
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvements to the conda build (#2742)
parent
3929424b
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
51 additions
and
15 deletions
+51
-15
conda/cross-linux.cmake
+20
-0
conda/nnvm/meta.yaml
+1
-1
conda/topi/meta.yaml
+1
-1
conda/tvm-libs/build.sh
+23
-3
conda/tvm-libs/meta.yaml
+5
-9
conda/tvm/meta.yaml
+1
-1
No files found.
conda/cross-linux.cmake
0 → 100644
View file @
57381b60
# this one is important
set
(
CMAKE_SYSTEM_NAME Linux
)
set
(
CMAKE_PLATFORM Linux
)
#this one not so much
set
(
CMAKE_SYSTEM_VERSION 1
)
# specify the cross compiler
set
(
CMAKE_C_COMPILER $ENV{CC}
)
# where is the target environment
set
(
CMAKE_FIND_ROOT_PATH $ENV{PREFIX} $ENV{BUILD_PREFIX}/$ENV{HOST}/sysroot
)
# search for programs in the build host directories
set
(
CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER
)
# for libraries and headers in the target directories
set
(
CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY
)
set
(
CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY
)
# god-awful hack because it seems to not run correct tests to determine this:
set
(
__CHAR_UNSIGNED___EXITCODE 1
)
This diff is collapsed.
Click to expand it.
conda/nnvm/meta.yaml
View file @
57381b60
...
...
@@ -8,7 +8,7 @@ source:
path
:
../..
build
:
number
:
1
number
:
0
skip
:
True
# [win]
requirements
:
...
...
This diff is collapsed.
Click to expand it.
conda/topi/meta.yaml
View file @
57381b60
...
...
@@ -8,7 +8,7 @@ source:
path
:
../..
build
:
number
:
1
number
:
0
requirements
:
host
:
...
...
This diff is collapsed.
Click to expand it.
conda/tvm-libs/build.sh
View file @
57381b60
#!/bin/bash
# Fix for OSX build to hide the clang LLVM
rm
-f
${
BUILD_PREFIX
}
/bin/llvm-config
rm
-rf
${
BUILD_PREFIX
}
/lib/cmake
set
-e
if
[
-z
"
$PREFIX
"
]
;
then
...
...
@@ -9,13 +13,29 @@ fi
if
[
-z
"
$cuda
"
]
||
[
"
$cuda
"
==
"False"
]
;
then
CUDA_OPT
=
""
else
CUDA_OPT
=
"-DUSE_CUDA=ON"
CUDA_OPT
=
"-DUSE_CUDA=ON -DUSE_CUBLAS=ON"
fi
if
[
"
$target_platform
"
==
"osx-64"
]
;
then
# macOS 64 bits
METAL_OPT
=
""
# Conda can only target 10.9 for now
TOOLCHAIN_OPT
=
""
else
METAL_OPT
=
""
if
[
"
$target_platform
"
==
"linux-64"
]
;
then
# Linux 64 bits
TOOLCHAIN_OPT
=
"-DCMAKE_TOOLCHAIN_FILE=
${
RECIPE_DIR
}
/../cross-linux.cmake"
else
# Windows (or 32 bits, which we don't support)
METAL_OPT
=
""
TOOLCHAIN_OPT
=
""
fi
fi
rm
-rf
build
||
true
mkdir
-p
build
cd
build
cmake
$
CUDA_OPT
-DUSE_LLVM
=
ON
-DINSTALL_DEV
=
ON
-DCMAKE_INSTALL_PREFIX
=
"
$PREFIX
"
..
make
-j
4
VERBOSE
=
1
cmake
$
METAL_OPT
$CUDA_OPT
-DUSE_LLVM
=
ON
-DINSTALL_DEV
=
ON
-DCMAKE_INSTALL_PREFIX
=
"
$PREFIX
"
$TOOLCHAIN_OPT
..
make
-j
${
CPU_COUNT
}
VERBOSE
=
1
make install
cd
..
This diff is collapsed.
Click to expand it.
conda/tvm-libs/meta.yaml
View file @
57381b60
...
...
@@ -8,21 +8,17 @@ source:
path
:
../..
build
:
number
:
1
number
:
0
string
:
cuda{{ cuda_version }}_{{ PKG_BUILDNUM }}
# [cuda]
requirements
:
build
:
-
{{
compiler('cxx')
}}
# [linux]
-
llvmdev ==6.0.0
# [osx]
host
:
# The OS X build will require some manual setup or it will break
# See https://conda.io/docs/user-guide/tasks/build-packages/compiler-tools.html#macos-sdk
# It is also ass-backward because of llvm brokeness when mixed with the
# conda OS X compiler
-
{{
compiler('cxx')
}}
# [osx]
# See https://docs.conda.io/projects/conda-build/en/latest/source/resources/compiler-tools.html#macos-sdk
-
{{
compiler('cxx')
}}
host
:
-
cmake
-
llvmdev ==6.0.0
# [linux]
-
llvmdev ==6.0.0
-
zlib
# [linux]
run
:
-
{{
pin_compatible('cudatoolkit'
,
lower_bound=cuda_version
,
max_pin='x.x')
}}
# [cuda]
...
...
This diff is collapsed.
Click to expand it.
conda/tvm/meta.yaml
View file @
57381b60
...
...
@@ -8,7 +8,7 @@ source:
path
:
../..
build
:
number
:
1
number
:
0
requirements
:
build
:
...
...
This diff is collapsed.
Click to expand it.
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