Skip to content
Snippets Groups Projects
Commit 7775ed1a authored by Administrator's avatar Administrator Committed by Sergey Gorbunov
Browse files

Fix runtime error on macosx 10.13

With macosx 10.13 (Apple clang 10.0) there is a runtime problem when
loading libL1. The problem is due to the usage of a static constexpr
in a LOG statement. The runtime error can be overcome when doing a
static cast of the variables.
parent 0629d30d
No related branches found
No related tags found
1 merge request!661Fix runtime error on macosx 10.13
Pipeline #15635 failed
...@@ -58,12 +58,12 @@ public: ...@@ -58,12 +58,12 @@ public:
LOG(INFO) << "== L1Algo parameters =============================================================="; LOG(INFO) << "== L1Algo parameters ==============================================================";
LOG(INFO) << ""; LOG(INFO) << "";
LOG(INFO) << " COMPILE TIME CONSTANTS"; LOG(INFO) << " COMPILE TIME CONSTANTS";
LOG(INFO) << " Bits to code one station: " << kStationBits; LOG(INFO) << " Bits to code one station: " << static_cast<unsigned int>(kStationBits);
LOG(INFO) << " Bits to code one thread: " << kThreadBits; LOG(INFO) << " Bits to code one thread: " << static_cast<unsigned int>(kThreadBits);
LOG(INFO) << " Bits to code one triplet: " << kTripletBits; LOG(INFO) << " Bits to code one triplet: " << static_cast<unsigned int>(kTripletBits);
LOG(INFO) << " Max number of stations: " << kMaxNstations; LOG(INFO) << " Max number of stations: " << static_cast<unsigned int>(kMaxNstations);
LOG(INFO) << " Max number of threads: " << kMaxNthreads; LOG(INFO) << " Max number of threads: " << static_cast<unsigned int>(kMaxNthreads);
LOG(INFO) << " Max number of triplets: " << kMaxNtriplets; LOG(INFO) << " Max number of triplets: " << static_cast<unsigned int>(kMaxNtriplets);
LOG(INFO) << ""; LOG(INFO) << "";
LOG(INFO) << " RUNTIME CONSTANTS (CUTS)"; LOG(INFO) << " RUNTIME CONSTANTS (CUTS)";
LOG(INFO) << " Max number of doublets per singlet: " << fMaxDoubletsPerSinglet; LOG(INFO) << " Max number of doublets per singlet: " << fMaxDoubletsPerSinglet;
......
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