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
4d9976cf
Unverified
Commit
4d9976cf
authored
Jun 28, 2019
by
Tianqi Chen
Committed by
GitHub
Jun 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CI] Fix windows build, add azure pipeline (#3458)
parent
3818b2a2
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
98 additions
and
10 deletions
+98
-10
3rdparty/HalideIR
+1
-1
3rdparty/compiler-rt/builtin_fp16.h
+12
-4
README.md
+3
-4
src/common/socket.h
+1
-1
tests/azure-pipelines/main.yml
+81
-0
No files found.
HalideIR
@
c4e5bc77
Subproject commit
32057b53eee870d73c6c21dc820d6546b4d9a13f
Subproject commit
c4e5bc77bd7bca05e45664b35c6ce88246c43b1b
3rdparty/compiler-rt/builtin_fp16.h
View file @
4d9976cf
...
...
@@ -73,7 +73,9 @@ static inline DST_T __truncXfYf2__(SRC_T a) {
const
DST_REP_T
dstNaNCode
=
dstQNaN
-
1
;
// Break a into a sign and representation of the absolute value
const
union
{
SRC_T
f
;
SRC_REP_T
i
;
}
src_rep
=
{.
f
=
a
};
union
SrcExchangeType
{
SRC_T
f
;
SRC_REP_T
i
;
};
SrcExchangeType
src_rep
;
src_rep
.
f
=
a
;
const
SRC_REP_T
aRep
=
src_rep
.
i
;
const
SRC_REP_T
aAbs
=
aRep
&
srcAbsMask
;
const
SRC_REP_T
sign
=
aRep
&
srcSignMask
;
...
...
@@ -134,7 +136,9 @@ static inline DST_T __truncXfYf2__(SRC_T a) {
// Apply the signbit to (DST_T)abs(a).
const
DST_REP_T
result
=
absResult
|
sign
>>
(
srcBits
-
dstBits
);
const
union
{
DST_T
f
;
DST_REP_T
i
;
}
dst_rep
=
{.
i
=
result
};
union
DstExchangeType
{
DST_T
f
;
DST_REP_T
i
;
};
DstExchangeType
dst_rep
;
dst_rep
.
i
=
result
;
return
dst_rep
.
f
;
}
...
...
@@ -163,7 +167,9 @@ static inline DST_T __extendXfYf2__(SRC_T a) {
const
DST_REP_T
dstMinNormal
=
DST_REP_T
(
1
)
<<
DST_SIG_BITS
;
// Break a into a sign and representation of the absolute value
const
union
{
SRC_T
f
;
SRC_REP_T
i
;
}
src_rep
=
{.
f
=
a
};
union
SrcExchangeType
{
SRC_T
f
;
SRC_REP_T
i
;
};
SrcExchangeType
src_rep
;
src_rep
.
f
=
a
;
const
SRC_REP_T
aRep
=
src_rep
.
i
;
const
SRC_REP_T
aAbs
=
aRep
&
srcAbsMask
;
const
SRC_REP_T
sign
=
aRep
&
srcSignMask
;
...
...
@@ -205,6 +211,8 @@ static inline DST_T __extendXfYf2__(SRC_T a) {
// Apply the signbit to (DST_T)abs(a).
const
DST_REP_T
result
=
absResult
|
(
DST_REP_T
)
sign
<<
(
dstBits
-
srcBits
);
const
union
{
DST_T
f
;
DST_REP_T
i
;
}
dst_rep
=
{.
i
=
result
};
union
DstExchangeType
{
DST_T
f
;
DST_REP_T
i
;
};
DstExchangeType
dst_rep
;
dst_rep
.
i
=
result
;
return
dst_rep
.
f
;
}
README.md
View file @
4d9976cf
...
...
@@ -17,15 +17,14 @@
<img src=https://raw.githubusercontent.com/tqchen/tvm.ai/master/images/logo/tvm-logo-small.png width=128/> Open Deep Learning Compiler Stack
==============================================
[
![GitHub license
](
https://dmlc.github.io/img/apache2.svg
)
](./LICENSE)
[
![Build Status
](
http://ci.tvm.ai:8080/buildStatus/icon?job=tvm/master
)
](http://ci.tvm.ai:8080/job/tvm/job/master/)
[
Documentation
](
https://docs.tvm.ai
)
|
[
Contributors
](
CONTRIBUTORS.md
)
|
[
Community
](
https://tvm.ai/community.html
)
|
[
Release Notes
](
NEWS.md
)
[
![Build Status
](
http://ci.tvm.ai:8080/buildStatus/icon?job=tvm/master
)
](http://ci.tvm.ai:8080/job/tvm/job/master/)
[
![Azure Pipline Status
](
https://dev.azure.com/tvmai/tvm/_apis/build/status/tqchen.tvm?branchName=master
)
](https://dev.azure.com/tvmai/tvm/_build/latest?definitionId=1&branchName=master)
TVM is a compiler stack for deep learning systems. It is designed to close the gap between the
productivity-focused deep learning frameworks, and the performance- and efficiency-focused hardware backends.
TVM works with deep learning frameworks to provide end to end compilation to different backends.
...
...
src/common/socket.h
View file @
4d9976cf
...
...
@@ -135,7 +135,7 @@ struct SockAddr {
}
#ifdef _WIN32
const
char
*
s
=
inet_ntop
(
addr
.
ss_family
,
sinx_addr
,
const
char
*
s
=
inet_ntop
(
addr
.
ss_family
,
(
PVOID
)
sinx_addr
,
// NOLINT(*)
&
buf
[
0
],
buf
.
length
());
#else
const
char
*
s
=
inet_ntop
(
addr
.
ss_family
,
sinx_addr
,
...
...
tests/azure-pipelines/main.yml
0 → 100644
View file @
4d9976cf
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# Azure pipeline
# We use it to cover windows and mac build
# Jenkins is still the primary CI
name
:
$(Date:yyyyMMdd)$(Rev:.r)
jobs
:
-
job
:
Windows_VS2017_x86
pool
:
vmImage
:
'
vs2017-win2016'
steps
:
-
script
:
git submodule update --recursive --init
displayName
:
Initialize submodules
-
script
:
mkdir build.common
displayName
:
Make Build Directory
-
task
:
CMake@1
inputs
:
workingDirectory
:
'
build.common'
cmakeArgs
:
>
-DUSE_SORT=ON
-DUSE_RPC=ON
-DUSE_GRAPH_RUNTIME=ON
..
-
task
:
MSBuild@1
inputs
:
solution
:
'
build.common/ALL_BUILD.vcxproj'
maximumCpuCount
:
true
configuration
:
'
Debug'
-
job
:
Windows_VS2017_x64
pool
:
vmImage
:
'
vs2017-win2016'
steps
:
-
script
:
git submodule update --recursive --init
displayName
:
Initialize submodules
-
script
:
mkdir build.common
displayName
:
Make Build Directory
-
task
:
CMake@1
inputs
:
workingDirectory
:
'
build.common'
cmakeArgs
:
>
-DUSE_SORT=ON
-DUSE_RPC=ON
-DUSE_GRAPH_RUNTIME=ON
..
-
task
:
MSBuild@1
inputs
:
solution
:
'
build.common/ALL_BUILD.vcxproj'
-
job
:
MacOS_XCode9
pool
:
vmImage
:
'
xcode9-macos10.13'
steps
:
-
script
:
git submodule update --recursive --init
displayName
:
Initialize submodules
-
script
:
mkdir build.common
displayName
:
Make Build Directory
-
task
:
CMake@1
inputs
:
workingDirectory
:
'
build.common'
cmakeArgs
:
>
-DUSE_SORT=ON
-DUSE_RPC=ON
-DUSE_GRAPH_RUNTIME=ON
..
-
script
:
cd build.common && make -j`sysctl -n hw.ncpu`
displayName
:
Build the project
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