build problem with phoSim v5.0.0: std::atomic
Issue #47
resolved
A phoSim build issue turned up at NERSC when building for KNL using the Intel Compiler:
distortion.cpp(288): error: qualified name is not allowed
std::atomic<double> firstDisp, secondDisp;
^
distortion.cpp(288): error #77: this declaration has no storage class or type specifier
std::atomic<double> firstDisp, secondDisp;
^
[...]
I got the code to build after taking the following two steps:
1. Add "-std=c++14" compile options
2. #include <atomic> to instrument/distortion.cpp
Please consider these changes for future releases.
Note: Intel compiler version = icpc (ICC) 18.0.1 20171018
Comments (2)
-
-
- changed status to resolved
- Log in to comment
Thanks. Resolved in v5.0.2.