Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hpvm-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
llvm
hpvm-release
Commits
9f2e52ae
Commit
9f2e52ae
authored
5 years ago
by
kotsifa2
Browse files
Options
Downloads
Patches
Plain Diff
Some additional debug messages
parent
61367bf1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/projects/hpvm-tensor-rt/tensor_runtime/src/tensor_runtime.cu
+6
-0
6 additions, 0 deletions
...jects/hpvm-tensor-rt/tensor_runtime/src/tensor_runtime.cu
with
6 additions
and
0 deletions
llvm/projects/hpvm-tensor-rt/tensor_runtime/src/tensor_runtime.cu
+
6
−
0
View file @
9f2e52ae
...
@@ -1654,6 +1654,7 @@ void* wrapper_ConvLayer(const char* hpvm_node_id,
...
@@ -1654,6 +1654,7 @@ void* wrapper_ConvLayer(const char* hpvm_node_id,
NodeConfiguration
*
NodeConf
=
RC
->
getNodeConfiguration
(
hpvm_node_id
);
NodeConfiguration
*
NodeConf
=
RC
->
getNodeConfiguration
(
hpvm_node_id
);
if
(
NodeConf
->
isPROMISENodeConfiguration
())
{
if
(
NodeConf
->
isPROMISENodeConfiguration
())
{
DEBUG
(
"PROMISE Configuration for ConvLayer
\n
"
);
// Mapped to PROMISE - get a PROMISE node configuration
// Mapped to PROMISE - get a PROMISE node configuration
PROMISENodeConfiguration
*
PROMISEConf
=
(
PROMISENodeConfiguration
*
)
NodeConf
;
PROMISENodeConfiguration
*
PROMISEConf
=
(
PROMISENodeConfiguration
*
)
NodeConf
;
std
::
vector
<
float
>
&
QRanges
=
RC
->
getQuantizationRanges
(
hpvm_node_id
);
std
::
vector
<
float
>
&
QRanges
=
RC
->
getQuantizationRanges
(
hpvm_node_id
);
...
@@ -1665,6 +1666,7 @@ void* wrapper_ConvLayer(const char* hpvm_node_id,
...
@@ -1665,6 +1666,7 @@ void* wrapper_ConvLayer(const char* hpvm_node_id,
enum
PROMISENodeConfiguration
::
APPROX
approx
=
approxTuples
[
0
].
first
;
enum
PROMISENodeConfiguration
::
APPROX
approx
=
approxTuples
[
0
].
first
;
int
param
=
approxTuples
[
0
].
second
;
int
param
=
approxTuples
[
0
].
second
;
if
(
approx
==
PROMISENodeConfiguration
::
APPROX
::
SWING_LEVEL
)
{
if
(
approx
==
PROMISENodeConfiguration
::
APPROX
::
SWING_LEVEL
)
{
DEBUG
(
"Approximation choice for ConvLayer: swing level %d
\n
"
,
param
);
return
ConvLayer_PROMISE
(
input
,
QRanges
[
0
],
QRanges
[
1
],
return
ConvLayer_PROMISE
(
input
,
QRanges
[
0
],
QRanges
[
1
],
filter
,
QRanges
[
2
],
QRanges
[
3
],
filter
,
QRanges
[
2
],
QRanges
[
3
],
bias
,
QRanges
[
4
],
QRanges
[
5
],
bias
,
QRanges
[
4
],
QRanges
[
5
],
...
@@ -1690,6 +1692,7 @@ void* wrapper_ConvLayer(const char* hpvm_node_id,
...
@@ -1690,6 +1692,7 @@ void* wrapper_ConvLayer(const char* hpvm_node_id,
}
}
else
else
if
(
NodeConf
->
isGPUNodeConfiguration
())
{
if
(
NodeConf
->
isGPUNodeConfiguration
())
{
DEBUG
(
"GPU Configuration for ConvLayer
\n
"
);
// Mapped to GPU - get a GPU node configuration
// Mapped to GPU - get a GPU node configuration
GPUNodeConfiguration
*
GPUConf
=
(
GPUNodeConfiguration
*
)
NodeConf
;
GPUNodeConfiguration
*
GPUConf
=
(
GPUNodeConfiguration
*
)
NodeConf
;
...
@@ -1858,6 +1861,7 @@ void* wrapper_FCLayer(const char* hpvm_node_id,
...
@@ -1858,6 +1861,7 @@ void* wrapper_FCLayer(const char* hpvm_node_id,
NodeConfiguration
*
NodeConf
=
RC
->
getNodeConfiguration
(
hpvm_node_id
);
NodeConfiguration
*
NodeConf
=
RC
->
getNodeConfiguration
(
hpvm_node_id
);
if
(
NodeConf
->
isPROMISENodeConfiguration
())
{
if
(
NodeConf
->
isPROMISENodeConfiguration
())
{
DEBUG
(
"PROMISE Configuration for FCLayer
\n
"
);
// Mapped to PROMISE - get a PROMISE node configuration
// Mapped to PROMISE - get a PROMISE node configuration
PROMISENodeConfiguration
*
PROMISEConf
=
(
PROMISENodeConfiguration
*
)
NodeConf
;
PROMISENodeConfiguration
*
PROMISEConf
=
(
PROMISENodeConfiguration
*
)
NodeConf
;
std
::
vector
<
float
>
&
QRanges
=
RC
->
getQuantizationRanges
(
hpvm_node_id
);
std
::
vector
<
float
>
&
QRanges
=
RC
->
getQuantizationRanges
(
hpvm_node_id
);
...
@@ -1869,6 +1873,7 @@ void* wrapper_FCLayer(const char* hpvm_node_id,
...
@@ -1869,6 +1873,7 @@ void* wrapper_FCLayer(const char* hpvm_node_id,
enum
PROMISENodeConfiguration
::
APPROX
approx
=
approxTuples
[
0
].
first
;
enum
PROMISENodeConfiguration
::
APPROX
approx
=
approxTuples
[
0
].
first
;
int
param
=
approxTuples
[
0
].
second
;
int
param
=
approxTuples
[
0
].
second
;
if
(
approx
==
PROMISENodeConfiguration
::
APPROX
::
SWING_LEVEL
)
{
if
(
approx
==
PROMISENodeConfiguration
::
APPROX
::
SWING_LEVEL
)
{
DEBUG
(
"Approximation choice for FCLayer: swing level %d
\n
"
,
param
);
return
FCLayer_PROMISE
(
input
,
QRanges
[
0
],
QRanges
[
1
],
return
FCLayer_PROMISE
(
input
,
QRanges
[
0
],
QRanges
[
1
],
weights
,
QRanges
[
2
],
QRanges
[
3
],
weights
,
QRanges
[
2
],
QRanges
[
3
],
bias
,
QRanges
[
4
],
QRanges
[
5
],
bias
,
QRanges
[
4
],
QRanges
[
5
],
...
@@ -1891,6 +1896,7 @@ void* wrapper_FCLayer(const char* hpvm_node_id,
...
@@ -1891,6 +1896,7 @@ void* wrapper_FCLayer(const char* hpvm_node_id,
}
}
else
else
if
(
NodeConf
->
isGPUNodeConfiguration
())
{
if
(
NodeConf
->
isGPUNodeConfiguration
())
{
DEBUG
(
"GPU Configuration for FCLayer
\n
"
);
// Mapped to GPU - get a GPU node configuration
// Mapped to GPU - get a GPU node configuration
GPUNodeConfiguration
*
GPUConf
=
(
GPUNodeConfiguration
*
)
NodeConf
;
GPUNodeConfiguration
*
GPUConf
=
(
GPUNodeConfiguration
*
)
NodeConf
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment