Commit 125dfffc authored by PedramAlizadeh's avatar PedramAlizadeh
Browse files

Added Hex value printed off for better debugging

parent 3282bbb5
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
### Added ### Added
- Added documentation - Added documentation
- Added pthread linking in src/Makefile and CMakeLists.txt - Added pthread linking in src/Makefile and CMakeLists.txt
- Added printing off the hex value of the floats for output and reference
## v1.13 ## v1.13
### Added ### Added
......
...@@ -1452,8 +1452,7 @@ void Transfer::ValidateDst(EnvVars const& ev) ...@@ -1452,8 +1452,7 @@ void Transfer::ValidateDst(EnvVars const& ev)
{ {
if (reference[i] != output[i]) if (reference[i] != output[i])
{ {
printf("\n[ERROR] Destination array %d value at index %lu (%.3f) does not match expected value (%.3f)\n", printf("\n[ERROR] Destination array %d value at index %lu (%.3f) [%X] does not match expected value (%.3f) [%X]\n", dstIdx, i, output[i], *(unsigned int*)&output[i], reference[i], *(unsigned int*)&reference[i]);
dstIdx, i, output[i], reference[i]);
printf("[ERROR] Failed Transfer details: #%d: %s -> [%c%d:%d] -> %s\n", printf("[ERROR] Failed Transfer details: #%d: %s -> [%c%d:%d] -> %s\n",
this->transferIndex, this->transferIndex,
this->SrcToStr().c_str(), this->SrcToStr().c_str(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment