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
e94e2450
Commit
e94e2450
authored
Mar 01, 2018
by
Yida Wang
Committed by
Tianqi Chen
Mar 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove the pragma primitives for better performance when the threads are binded (#949)
parent
413e2b7a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
18 deletions
+0
-18
topi/python/topi/x86/conv2d_avx_1x1.py
+0
-9
topi/python/topi/x86/conv2d_avx_common.py
+0
-9
No files found.
topi/python/topi/x86/conv2d_avx_1x1.py
View file @
e94e2450
...
@@ -77,9 +77,6 @@ def _schedule_conv(s, data, data_pad, data_vec, kernel, kernel_vec, conv_out, ou
...
@@ -77,9 +77,6 @@ def _schedule_conv(s, data, data_pad, data_vec, kernel, kernel_vec, conv_out, ou
batch
,
ic_chunk
,
ih
,
ic_block
,
iw
=
s
[
A1
]
.
op
.
axis
batch
,
ic_chunk
,
ih
,
ic_block
,
iw
=
s
[
A1
]
.
op
.
axis
parallel_axis
=
s
[
A1
]
.
fuse
(
ic_chunk
,
ih
)
parallel_axis
=
s
[
A1
]
.
fuse
(
ic_chunk
,
ih
)
s
[
A1
]
.
parallel
(
parallel_axis
)
s
[
A1
]
.
parallel
(
parallel_axis
)
s
[
A1
]
.
pragma
(
batch
,
"parallel_launch_point"
)
s
[
A1
]
.
pragma
(
parallel_axis
,
"parallel_stride_pattern"
)
s
[
A1
]
.
pragma
(
batch
,
"parallel_barrier_when_finish"
)
# schedule kernel pack
# schedule kernel pack
oc_chunk
,
ic_chunk
,
oh
,
ow
,
ic_block
,
oc_block
=
s
[
W
]
.
op
.
axis
oc_chunk
,
ic_chunk
,
oh
,
ow
,
ic_block
,
oc_block
=
s
[
W
]
.
op
.
axis
...
@@ -88,9 +85,6 @@ def _schedule_conv(s, data, data_pad, data_vec, kernel, kernel_vec, conv_out, ou
...
@@ -88,9 +85,6 @@ def _schedule_conv(s, data, data_pad, data_vec, kernel, kernel_vec, conv_out, ou
s
[
W
]
.
vectorize
(
oc_block
)
s
[
W
]
.
vectorize
(
oc_block
)
parallel_axis
=
s
[
W
]
.
fuse
(
oc_chunk
,
oh
)
parallel_axis
=
s
[
W
]
.
fuse
(
oc_chunk
,
oh
)
s
[
W
]
.
parallel
(
parallel_axis
)
s
[
W
]
.
parallel
(
parallel_axis
)
s
[
W
]
.
pragma
(
parallel_axis
,
"parallel_launch_point"
)
s
[
W
]
.
pragma
(
parallel_axis
,
"parallel_stride_pattern"
)
s
[
W
]
.
pragma
(
parallel_axis
,
"parallel_barrier_when_finish"
)
C
,
O0
,
O
=
conv_out
,
output
,
last
C
,
O0
,
O
=
conv_out
,
output
,
last
CC
=
s
.
cache_write
(
C
,
'global'
)
CC
=
s
.
cache_write
(
C
,
'global'
)
...
@@ -128,8 +122,5 @@ def _schedule_conv(s, data, data_pad, data_vec, kernel, kernel_vec, conv_out, ou
...
@@ -128,8 +122,5 @@ def _schedule_conv(s, data, data_pad, data_vec, kernel, kernel_vec, conv_out, ou
s
[
O
]
.
vectorize
(
oc_block
)
s
[
O
]
.
vectorize
(
oc_block
)
s
[
O
]
.
parallel
(
parallel_axis
)
s
[
O
]
.
parallel
(
parallel_axis
)
s
[
O
]
.
pragma
(
batch
,
"parallel_launch_point"
)
s
[
O
]
.
pragma
(
parallel_axis
,
"parallel_stride_pattern"
)
s
[
O
]
.
pragma
(
batch
,
"parallel_barrier_when_finish"
)
return
s
return
s
topi/python/topi/x86/conv2d_avx_common.py
View file @
e94e2450
...
@@ -90,9 +90,6 @@ def _schedule_conv(s, data, data_pad, data_vec, kernel, kernel_vec, conv_out, ou
...
@@ -90,9 +90,6 @@ def _schedule_conv(s, data, data_pad, data_vec, kernel, kernel_vec, conv_out, ou
batch
,
ic_chunk
,
ih
,
ic_block
,
iw
=
s
[
A1
]
.
op
.
axis
batch
,
ic_chunk
,
ih
,
ic_block
,
iw
=
s
[
A1
]
.
op
.
axis
parallel_axis
=
s
[
A1
]
.
fuse
(
ic_chunk
,
ih
)
parallel_axis
=
s
[
A1
]
.
fuse
(
ic_chunk
,
ih
)
s
[
A1
]
.
parallel
(
parallel_axis
)
s
[
A1
]
.
parallel
(
parallel_axis
)
s
[
A1
]
.
pragma
(
batch
,
"parallel_launch_point"
)
s
[
A1
]
.
pragma
(
parallel_axis
,
"parallel_stride_pattern"
)
s
[
A1
]
.
pragma
(
batch
,
"parallel_barrier_when_finish"
)
# schedule kernel pack
# schedule kernel pack
oc_chunk
,
ic_chunk
,
oh
,
ow
,
ic_block
,
oc_block
=
s
[
W
]
.
op
.
axis
oc_chunk
,
ic_chunk
,
oh
,
ow
,
ic_block
,
oc_block
=
s
[
W
]
.
op
.
axis
...
@@ -101,9 +98,6 @@ def _schedule_conv(s, data, data_pad, data_vec, kernel, kernel_vec, conv_out, ou
...
@@ -101,9 +98,6 @@ def _schedule_conv(s, data, data_pad, data_vec, kernel, kernel_vec, conv_out, ou
s
[
W
]
.
vectorize
(
oc_block
)
s
[
W
]
.
vectorize
(
oc_block
)
parallel_axis
=
s
[
W
]
.
fuse
(
oc_chunk
,
oh
)
parallel_axis
=
s
[
W
]
.
fuse
(
oc_chunk
,
oh
)
s
[
W
]
.
parallel
(
parallel_axis
)
s
[
W
]
.
parallel
(
parallel_axis
)
s
[
W
]
.
pragma
(
parallel_axis
,
"parallel_launch_point"
)
s
[
W
]
.
pragma
(
parallel_axis
,
"parallel_stride_pattern"
)
s
[
W
]
.
pragma
(
parallel_axis
,
"parallel_barrier_when_finish"
)
# schedule conv
# schedule conv
C
,
O0
,
O
=
conv_out
,
output
,
last
C
,
O0
,
O
=
conv_out
,
output
,
last
...
@@ -144,8 +138,5 @@ def _schedule_conv(s, data, data_pad, data_vec, kernel, kernel_vec, conv_out, ou
...
@@ -144,8 +138,5 @@ def _schedule_conv(s, data, data_pad, data_vec, kernel, kernel_vec, conv_out, ou
s
[
O
]
.
vectorize
(
oc_block
)
s
[
O
]
.
vectorize
(
oc_block
)
s
[
O
]
.
parallel
(
parallel_axis
)
s
[
O
]
.
parallel
(
parallel_axis
)
s
[
O
]
.
pragma
(
batch
,
"parallel_launch_point"
)
s
[
O
]
.
pragma
(
parallel_axis
,
"parallel_stride_pattern"
)
s
[
O
]
.
pragma
(
batch
,
"parallel_barrier_when_finish"
)
return
s
return
s
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