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
22a21995
Commit
22a21995
authored
Jul 10, 2018
by
alex-weaver
Committed by
Tianqi Chen
Jul 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TVM] Fixed SPIR-V codegen for OpControlBarrier (#1409)
parent
81db22c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/codegen/spirv/codegen_spirv.cc
+6
-4
No files found.
src/codegen/spirv/codegen_spirv.cc
View file @
22a21995
...
...
@@ -93,12 +93,14 @@ spirv::Value CodeGenSPIRV::CreateStorageSync(const Call* op) {
if
(
sync
==
"warp"
)
{
return
value
;
}
else
if
(
sync
==
"shared"
)
{
auto
type_int
=
builder_
->
GetSType
(
Int
(
32
));
builder_
->
MakeInst
(
spv
::
OpControlBarrier
,
spv
::
ScopeWorkgroup
,
spv
::
ScopeWorkgroup
,
spv
::
OpControlBarrier
,
builder_
->
IntImm
(
type_int
,
static_cast
<
int64_t
>
(
spv
::
ScopeWorkgroup
)),
builder_
->
IntImm
(
type_int
,
static_cast
<
int64_t
>
(
spv
::
ScopeWorkgroup
)),
builder_
->
IntImm
(
type_int
,
static_cast
<
int64_t
>
(
spv
::
MemorySemanticsSequentiallyConsistentMask
|
spv
::
MemorySemanticsWorkgroupMemoryMask
);
spv
::
MemorySemanticsWorkgroupMemoryMask
)
))
;
}
else
{
LOG
(
FATAL
)
<<
"Do not support sync "
<<
sync
;
}
...
...
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