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
828d0266
Commit
828d0266
authored
Jan 23, 2018
by
Tianqi Chen
Committed by
GitHub
Jan 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[OPENCL] Fix 32bit pointer size in OpenCL runtime (#809)
parent
f0f696ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/runtime/opencl/opencl_module.cc
+8
-3
No files found.
src/runtime/opencl/opencl_module.cc
View file @
828d0266
...
@@ -254,9 +254,14 @@ PackedFunc OpenCLModuleNode::GetFunction(
...
@@ -254,9 +254,14 @@ PackedFunc OpenCLModuleNode::GetFunction(
for
(
size_t
i
=
0
;
i
<
info
.
arg_types
.
size
();
++
i
)
{
for
(
size_t
i
=
0
;
i
<
info
.
arg_types
.
size
();
++
i
)
{
TVMType
t
=
info
.
arg_types
[
i
];
TVMType
t
=
info
.
arg_types
[
i
];
CHECK_EQ
(
t
.
lanes
,
1U
);
CHECK_EQ
(
t
.
lanes
,
1U
);
uint32_t
bits
=
t
.
bits
;
if
(
t
.
code
==
kHandle
)
{
CHECK_EQ
(
bits
%
8
,
0U
);
// specially store pointer type size in OpenCL driver
arg_size
[
i
]
=
bits
/
8
;
arg_size
[
i
]
=
sizeof
(
void
*
);
}
else
{
uint32_t
bits
=
t
.
bits
;
CHECK_EQ
(
bits
%
8
,
0U
);
arg_size
[
i
]
=
bits
/
8
;
}
}
}
// initialize the wrapped func.
// initialize the wrapped func.
f
.
Init
(
this
,
sptr_to_self
,
kid_map_
.
at
(
name
),
f
.
Init
(
this
,
sptr_to_self
,
kid_map_
.
at
(
name
),
...
...
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