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
be1a29ed
Commit
be1a29ed
authored
May 06, 2017
by
Tianqi Chen
Committed by
GitHub
May 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CMAKE] Windows support upgrade (#125)
* [CMAKE] Windows support upgrade * Fix lint
parent
c154fcdc
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
7 deletions
+10
-7
CMakeLists.txt
+2
-0
include/tvm/runtime/c_runtime_api.h
+1
-1
include/tvm/runtime/packed_func.h
+3
-2
python/tvm/contrib/nvcc_compiler.py
+1
-1
src/codegen/codegen_c.cc
+1
-1
src/pass/split_pipeline.cc
+1
-1
src/runtime/c_runtime_api.cc
+1
-1
No files found.
CMakeLists.txt
View file @
be1a29ed
...
...
@@ -55,6 +55,7 @@ tvm_source_group("Source\\codegen" GLOB "src/codegen/*.cc")
tvm_source_group
(
"Source
\\
codegen
\\
llvm"
GLOB
"src/codegen/llvm/*.cc"
)
tvm_source_group
(
"Source
\\
codegen
\\
stack_vm"
GLOB
"src/codegen/stack_vm/*.cc"
)
tvm_source_group
(
"Source
\\
pass"
GLOB
"src/pass/*.cc"
)
tvm_source_group
(
"Source
\\
op"
GLOB
"src/op/*.cc"
)
tvm_source_group
(
"Source
\\
runtime"
GLOB
"src/runtime/*.cc"
)
tvm_source_group
(
"Source
\\
runtime
\\
cuda"
GLOB
"src/runtime/cuda/*.cc"
)
tvm_source_group
(
"Source
\\
runtime
\\
opencl"
GLOB
"src/runtime/opencl/*.cc"
)
...
...
@@ -66,6 +67,7 @@ file(GLOB COMPILER_SRCS
src/codegen/stack_vm/*.cc
src/lang/*.cc
src/pass/*.cc
src/op/*.cc
src/schedule/*.cc
)
file
(
GLOB_RECURSE HALIDEIR_SRCS HalideIR/src/*.cpp
)
...
...
include/tvm/runtime/c_runtime_api.h
View file @
be1a29ed
...
...
@@ -375,7 +375,7 @@ TVM_DLL int TVMFuncListGlobalNames(int *out_size,
* \return 0 when success, -1 when failure happens
*/
TVM_DLL
int
TVMArrayAlloc
(
const
tvm_index_t
*
shape
,
tvm_index_
t
ndim
,
in
t
ndim
,
TVMType
dtype
,
TVMContext
ctx
,
TVMArrayHandle
*
out
);
...
...
include/tvm/runtime/packed_func.h
View file @
be1a29ed
...
...
@@ -716,8 +716,9 @@ template<typename... Args>
inline
TVMRetValue
PackedFunc
::
operator
()(
Args
&&
...
args
)
const
{
auto
targs
=
std
::
make_tuple
(
std
::
forward
<
Args
>
(
args
)...);
const
int
kNumArgs
=
sizeof
...(
Args
);
TVMValue
values
[
kNumArgs
];
int
type_codes
[
kNumArgs
];
const
int
kArraySize
=
kNumArgs
>
0
?
kNumArgs
:
1
;
TVMValue
values
[
kArraySize
];
int
type_codes
[
kArraySize
];
for_each
(
targs
,
TVMArgsSetter
(
values
,
type_codes
));
TVMRetValue
rv
;
body_
(
TVMArgs
(
values
,
type_codes
,
kNumArgs
),
&
rv
);
...
...
python/tvm/contrib/nvcc_compiler.py
View file @
be1a29ed
...
...
@@ -63,7 +63,7 @@ def compile_source(code, target="ptx", arch=None,
if
proc
.
returncode
!=
0
:
sys
.
stderr
.
write
(
"Compilation error:
\n
"
)
sys
.
stderr
.
write
(
out
)
sys
.
stderr
.
write
(
str
(
out
)
)
sys
.
stderr
.
flush
()
cubin
=
None
else
:
...
...
src/codegen/codegen_c.cc
View file @
be1a29ed
...
...
@@ -95,7 +95,7 @@ std::string CodeGenC::GetBufferRef(
if
(
alloc_storage_scope_
.
count
(
buffer
))
{
scope
=
alloc_storage_scope_
.
at
(
buffer
);
}
bool
is_vol
=
volatile_buf_
.
count
(
buffer
);
bool
is_vol
=
volatile_buf_
.
count
(
buffer
)
!=
0
;
if
(
t
.
lanes
()
==
1
)
{
if
(
!
HandleTypeMatch
(
buffer
,
t
)
||
is_vol
)
{
os
<<
"(("
;
...
...
src/pass/split_pipeline.cc
View file @
be1a29ed
...
...
@@ -199,7 +199,7 @@ class StageSplitter : public IRMutator {
private
:
// Build the stage.
Stmt
BuildStage
(
Stmt
body
,
NodeRef
target
)
{
int
stage_index
=
static_cast
<
size_
t
>
(
stages_
.
size
());
int
stage_index
=
static_cast
<
in
t
>
(
stages_
.
size
());
std
::
string
stage_suffix
=
"."
+
std
::
to_string
(
stage_index
);
// The Substitute
Map
<
Var
,
Expr
>
subst
;
...
...
src/runtime/c_runtime_api.cc
View file @
be1a29ed
...
...
@@ -310,7 +310,7 @@ int TVMFuncCreateFromCFunc(TVMPackedCFunc func,
}
int
TVMArrayAlloc
(
const
tvm_index_t
*
shape
,
tvm_index_
t
ndim
,
in
t
ndim
,
TVMType
dtype
,
TVMContext
ctx
,
TVMArrayHandle
*
out
)
{
...
...
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