Skip to content
Snippets Groups Projects
Commit 9f2e52ae authored by kotsifa2's avatar kotsifa2
Browse files

Some additional debug messages

parent 61367bf1
No related branches found
No related tags found
No related merge requests found
...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment