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
47eb85de
Commit
47eb85de
authored
Aug 09, 2017
by
Tianqi Chen
Committed by
GitHub
Aug 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TEST] Upgrade gpu docker to cudnn7 (#306)
* [TEST] Upgrade gpu docker to cudnn7 * fx
parent
29338ea4
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
29 additions
and
19 deletions
+29
-19
python/tvm/build_module.py
+9
-2
src/codegen/codegen.cc
+1
-6
src/pass/storage_flatten.cc
+7
-0
tests/ci_build/Dockerfile.cpu
+1
-1
tests/ci_build/Dockerfile.emscripten
+1
-1
tests/ci_build/Dockerfile.gpu
+1
-1
tests/ci_build/Dockerfile.i386
+1
-1
tests/ci_build/Dockerfile.lint
+2
-2
tests/ci_build/install/ubuntu_install_core.sh
+1
-1
tests/ci_build/install/ubuntu_install_java.sh
+1
-1
tests/ci_build/install/ubuntu_install_llvm.sh
+2
-2
tests/python/unittest/test_lang_container.py
+2
-1
No files found.
python/tvm/build_module.py
View file @
47eb85de
...
...
@@ -330,11 +330,18 @@ def build(sch,
device_type
=
ndarray
.
context
(
device
,
0
)
.
device_type
fhost
=
[
ir_pass
.
BindDeviceType
(
x
,
device_type
)
for
x
in
fhost
]
fhost
=
[
ir_pass
.
LowerTVMBuiltin
(
x
)
for
x
in
fhost
]
if
not
target_host
and
fdevice
:
target_host
=
"llvm"
if
module
.
enabled
(
"llvm"
)
else
"stackvm"
if
fdevice
:
fdevice
=
[
ir_pass
.
LowerIntrin
(
x
,
target
)
for
x
in
fdevice
]
fhost
=
[
ir_pass
.
LowerIntrin
(
x
,
target_host
)
for
x
in
fhost
]
else
:
fhost
=
[
ir_pass
.
LowerIntrin
(
x
,
target
)
for
x
in
fhost
]
fhost
=
[
ir_pass
.
CombineContextCall
(
x
)
for
x
in
fhost
]
if
fdevice
:
if
not
target_host
:
target_host
=
"llvm"
if
module
.
enabled
(
"llvm"
)
else
"stackvm"
mhost
=
codegen
.
build_module
(
fhost
,
target_host
)
if
target
:
mdev
=
codegen
.
build_module
(
fdevice
,
target
)
...
...
src/codegen/codegen.cc
View file @
47eb85de
...
...
@@ -22,16 +22,11 @@ runtime::Module Build(const Array<LoweredFunc>& funcs,
mode
=
mode
.
substr
(
0
,
pos
);
}
std
::
string
build_f_name
=
"codegen.build_"
+
mode
;
// Lower intrinsic functions
Array
<
LoweredFunc
>
func_list
;
for
(
LoweredFunc
f
:
funcs
)
{
func_list
.
push_back
(
ir
::
LowerIntrin
(
f
,
target
));
}
// the build function.
const
PackedFunc
*
bf
=
runtime
::
Registry
::
Get
(
build_f_name
);
CHECK
(
bf
!=
nullptr
)
<<
"Target "
<<
target
<<
" is not enabled"
;
runtime
::
Module
m
=
(
*
bf
)(
func
_list
,
target
);
runtime
::
Module
m
=
(
*
bf
)(
func
s
,
target
);
return
m
;
}
...
...
src/pass/storage_flatten.cc
View file @
47eb85de
...
...
@@ -8,6 +8,7 @@
#include <tvm/ir_operator.h>
#include <tvm/ir_pass.h>
#include <tvm/buffer.h>
#include <tvm/target_info.h>
#include <tvm/runtime/device_api.h>
#include <unordered_map>
#include "./ir_util.h"
...
...
@@ -110,6 +111,12 @@ class StorageFlattener : public IRMutator {
// use small alignment for small arrays
int32_t
const_size
=
Allocate
::
constant_allocation_size
(
shape
,
key
.
GetName
());
int
align
=
GetTempAllocaAlignment
(
op
->
type
,
const_size
);
if
(
skey
.
tag
.
length
()
!=
0
)
{
MemoryInfo
info
=
GetMemoryInfo
(
skey
.
to_string
());
if
(
info
.
defined
())
{
align
=
(
info
->
max_simd_bits
+
op
->
type
.
bits
()
-
1
)
/
op
->
type
.
bits
();
}
}
e
.
buffer
=
BufferNode
::
make
(
Var
(
key
.
GetName
(),
Handle
()),
...
...
tests/ci_build/Dockerfile.cpu
View file @
47eb85de
# For CPU
FROM ubuntu:1
4
.04
FROM ubuntu:1
6
.04
RUN apt-get update --fix-missing
...
...
tests/ci_build/Dockerfile.emscripten
View file @
47eb85de
# For CPU
FROM ubuntu:1
4
.04
FROM ubuntu:1
6
.04
RUN apt-get update --fix-missing
...
...
tests/ci_build/Dockerfile.gpu
View file @
47eb85de
FROM nvidia/cuda:
7.5-cudnn5
-devel
FROM nvidia/cuda:
8.0-cudnn7
-devel
# Base scripts
RUN apt-get update --fix-missing
...
...
tests/ci_build/Dockerfile.i386
View file @
47eb85de
FROM ioft/i386-ubuntu:1
4
.04
FROM ioft/i386-ubuntu:1
6
.04
RUN apt-get update --fix-missing
...
...
tests/ci_build/Dockerfile.lint
View file @
47eb85de
# For lint test
FROM ubuntu:1
4
.04
FROM ubuntu:1
6
.04
RUN apt-get update && apt-get install -y python-pip
RUN apt-get update && apt-get install -y python-pip
sudo
RUN apt-get install -y doxygen graphviz
RUN pip install cpplint pylint
tests/ci_build/install/ubuntu_install_core.sh
View file @
47eb85de
# install libraries for building c++ core on ubuntu
apt-get install
-y
--no-install-recommends
--force-yes
\
git make libgtest-dev cmake wget unzip libtinfo-dev libz-dev
\
libcurl4-openssl-dev libopenblas-dev g++
libcurl4-openssl-dev libopenblas-dev g++
sudo
cd
/usr/src/gtest
&&
cmake CMakeLists.txt
&&
make
&&
cp
*
.a /usr/lib
tests/ci_build/install/ubuntu_install_java.sh
View file @
47eb85de
apt-get update
&&
apt-get install
-y
openjdk-
7
-jdk maven
apt-get update
&&
apt-get install
-y
openjdk-
8
-jdk maven
tests/ci_build/install/ubuntu_install_llvm.sh
View file @
47eb85de
echo
deb http://apt.llvm.org/
trusty/ llvm-toolchain-trusty
-4.0 main
\
echo
deb http://apt.llvm.org/
xenial/ llvm-toolchain-xenial
-4.0 main
\
>>
/etc/apt/sources.list.d/llvm.list
echo
deb-src http://apt.llvm.org/
trusty/ llvm-toolchain-trusty
-4.0 main
\
echo
deb-src http://apt.llvm.org/
xenial/ llvm-toolchain-xenial
-4.0 main
\
>>
/etc/apt/sources.list.d/llvm.list
wget
-O
- http://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
apt-get update
&&
apt-get install
-y
--force-yes
llvm-4.0
tests/python/unittest/test_lang_container.py
View file @
47eb85de
...
...
@@ -18,7 +18,8 @@ def test_map():
assert
a
in
amap
assert
len
(
amap
)
==
2
dd
=
dict
(
amap
.
items
())
assert
str
(
dd
)
==
str
(
amap
)
assert
a
in
dd
assert
b
in
dd
assert
a
+
1
not
in
amap
def
test_map_save_load_json
():
...
...
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