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
1ea72d6f
Commit
1ea72d6f
authored
May 21, 2017
by
Tianqi Chen
Committed by
GitHub
May 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DLPACK] Upgrade to the latest version (#150)
parent
050bc91b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
dlpack
+1
-1
python/tvm/_ffi/_cython/base.pxi
+1
-1
python/tvm/_ffi/runtime_ctypes.py
+3
-3
src/codegen/llvm/codegen_llvm.cc
+2
-2
No files found.
dlpack
@
a6e09b58
Subproject commit
9f433c5ecfdd47184339cdd2b99706d24fae3aa1
Subproject commit
a6e09b58dc00ee0065f5b7879800e646fbb01d1e
python/tvm/_ffi/_cython/base.pxi
View file @
1ea72d6f
...
...
@@ -26,8 +26,8 @@ cdef extern from "tvm/runtime/c_runtime_api.h":
uint16_t lanes
ctypedef struct DLContext:
int device_id
int device_type
int device_id
ctypedef struct DLTensor:
void* data
...
...
python/tvm/_ffi/runtime_ctypes.py
View file @
1ea72d6f
...
...
@@ -68,8 +68,8 @@ RPC_SESS_MASK = 128
class
TVMContext
(
ctypes
.
Structure
):
"""TVM context strucure."""
_fields_
=
[(
"device_
id
"
,
ctypes
.
c_int
),
(
"device_
type
"
,
ctypes
.
c_int
)]
_fields_
=
[(
"device_
type
"
,
ctypes
.
c_int
),
(
"device_
id
"
,
ctypes
.
c_int
)]
MASK2STR
=
{
1
:
'cpu'
,
2
:
'gpu'
,
...
...
@@ -88,8 +88,8 @@ class TVMContext(ctypes.Structure):
}
def
__init__
(
self
,
device_type
,
device_id
):
super
(
TVMContext
,
self
)
.
__init__
()
self
.
device_id
=
device_id
self
.
device_type
=
device_type
self
.
device_id
=
device_id
@property
def
exist
(
self
):
...
...
src/codegen/llvm/codegen_llvm.cc
View file @
1ea72d6f
...
...
@@ -361,11 +361,11 @@ llvm::Value* CodeGenLLVM::CreateStructRefPtr(
}
case
intrinsic
:
:
kArrDeviceId
:
{
return
builder_
->
CreateInBoundsGEP
(
buf
,
{
index
,
ConstInt32
(
1
),
ConstInt32
(
0
)});
buf
,
{
index
,
ConstInt32
(
1
),
ConstInt32
(
1
)});
}
case
intrinsic
:
:
kArrDeviceType
:
{
return
builder_
->
CreateInBoundsGEP
(
buf
,
{
index
,
ConstInt32
(
1
),
ConstInt32
(
1
)});
buf
,
{
index
,
ConstInt32
(
1
),
ConstInt32
(
0
)});
}
case
intrinsic
:
:
kTVMValueContent
:
{
CHECK_EQ
(
t
.
lanes
(),
1
);
...
...
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