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
37988ad3
Commit
37988ad3
authored
Aug 25, 2018
by
MORITA Kazutaka
Committed by
Tianqi Chen
Aug 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[RUNTIME][OPENCL] delay device check (#1657)
parent
cfc848a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
docs/deploy/aws_fpga.md
+2
-2
src/runtime/opencl/opencl_module.cc
+1
-1
No files found.
docs/deploy/aws_fpga.md
View file @
37988ad3
...
...
@@ -108,10 +108,10 @@ python run.py
Synthesis
---------
-
Run synthesis with the following script.
`XCL_EMULATION_MODE`
must be set to 1 at this stage.
-
Run synthesis with the following script.
```
bash
export
XCL_EMULATION_MODE
=
1
unset
XCL_EMULATION_MODE
export
XCL_TARGET
=
hw
python build.py
...
...
src/runtime/opencl/opencl_module.cc
View file @
37988ad3
...
...
@@ -34,6 +34,7 @@ class OpenCLWrappedFunc {
void
operator
()(
TVMArgs
args
,
TVMRetValue
*
rv
,
void
**
void_args
)
const
{
CHECK
(
w_
->
context
!=
nullptr
)
<<
"No OpenCL device"
;
cl
::
OpenCLThreadEntry
*
t
=
w_
->
GetThreadEntry
();
// get the kernel from thread local kernel table.
if
(
entry_
.
kernel_id
>=
t
->
kernel_table
.
size
())
{
...
...
@@ -157,7 +158,6 @@ std::string OpenCLModuleNode::GetSource(const std::string& format) {
void
OpenCLModuleNode
::
Init
()
{
workspace_
=
GetGlobalWorkspace
();
workspace_
->
Init
();
CHECK
(
workspace_
->
context
!=
nullptr
)
<<
"No OpenCL device"
;
device_built_flag_
.
resize
(
workspace_
->
devices
.
size
(),
false
);
// initialize the kernel id, need to lock global table.
std
::
lock_guard
<
std
::
mutex
>
lock
(
workspace_
->
mu
);
...
...
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