Misc fixes before v1.8.0 release (#239)
* Update timemory submodule for OMPT - Updated OMPT support for OpenMP 5.2 * omnitrace exe cleanup - fixed "omnitrace --" segfault - added nullptr checks * CMake updates - moved omnitrace-interface-library definition up a directory - general cleanup - fixed branch/tag/ref for git submodule checkouts * Improve shutdown of causal profiling after duration limit * Fix dyninst minimum version number * Removed debug print from binary::get_link_map * Remove use of thread-pool in causal * Relax causal testing when variance is high * causal_gotcha utilities for blocking signals * Tweak to causal example * Install validate-causal-json as omnitrace-causal-print * simplify address_multirange * improve causal line saving
This commit is contained in:
zatwierdzone przez
GitHub
rodzic
32b15fe7b7
commit
aadffbe2b1
@@ -20,6 +20,8 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
// SOFTWARE.
|
||||
|
||||
#include "causal.hpp"
|
||||
|
||||
#include <chrono>
|
||||
#include <cmath>
|
||||
#include <cstdio>
|
||||
@@ -90,7 +92,11 @@ cpu_func_impl(int64_t n, int nloop)
|
||||
auto _cpu_now = get_clock_cpu_now();
|
||||
auto _cpu_end = _cpu_now + n;
|
||||
// clang-format off
|
||||
while(get_clock_cpu_now() < _cpu_end) { for(volatile int i = 0; i < nloop; ++i) {} }
|
||||
while(get_clock_cpu_now() < _cpu_end)
|
||||
{
|
||||
for(volatile int i = 0; i < nloop; ++i) {}
|
||||
CAUSAL_PROGRESS_NAMED("cpu_impl");
|
||||
}
|
||||
// clang-format on
|
||||
return V;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user