Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tvm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cld
ml
tvm
Commits
dfbe82b0
Commit
dfbe82b0
authored
6 years ago
by
KeDengMS
Committed by
Tianqi Chen
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixes for tensorize in Windows build to expose TensorIntrin::make and search clang.exe (#1896)
parent
10279098
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/tvm/tensor_intrin.h
+7
-8
7 additions, 8 deletions
include/tvm/tensor_intrin.h
python/tvm/contrib/clang.py
+1
-0
1 addition, 0 deletions
python/tvm/contrib/clang.py
with
8 additions
and
8 deletions
include/tvm/tensor_intrin.h
+
7
−
8
View file @
dfbe82b0
...
...
@@ -74,13 +74,13 @@ class TensorIntrinNode : public Node {
v
->
Visit
(
"reduce_update"
,
&
reduce_update
);
}
static
TensorIntrin
make
(
std
::
string
name
,
Operation
op
,
Array
<
Tensor
>
inputs
,
Array
<
Buffer
>
buffers
,
Stmt
body
,
Stmt
reduce_init
,
Stmt
reduce_update
);
TVM_DLL
static
TensorIntrin
make
(
std
::
string
name
,
Operation
op
,
Array
<
Tensor
>
inputs
,
Array
<
Buffer
>
buffers
,
Stmt
body
,
Stmt
reduce_init
,
Stmt
reduce_update
);
static
constexpr
const
char
*
_type_key
=
"TensorIntrin"
;
TVM_DECLARE_NODE_TYPE_INFO
(
TensorIntrinNode
,
Node
);
...
...
@@ -90,7 +90,6 @@ inline const TensorIntrinNode* TensorIntrin::operator->() const {
return
static_cast
<
const
TensorIntrinNode
*>
(
node_
.
get
());
}
// Internal node container of tensor intrinsic calling.
class
TensorIntrinCallNode
;
...
...
This diff is collapsed.
Click to expand it.
python/tvm/contrib/clang.py
+
1
−
0
View file @
dfbe82b0
...
...
@@ -31,6 +31,7 @@ def find_clang(required=True):
if
hasattr
(
codegen
,
"
llvm_version_major
"
):
cc_list
+=
[
"
clang-%d.0
"
%
codegen
.
llvm_version_major
()]
cc_list
+=
[
"
clang
"
]
cc_list
+=
[
"
clang.exe
"
]
valid_list
=
[
util
.
which
(
x
)
for
x
in
cc_list
]
valid_list
=
[
x
for
x
in
valid_list
if
x
]
if
not
valid_list
and
required
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment