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
[ROCm/rocprofiler-systems commit: aadffbe2b1]
Cette révision appartient à :
révisé par
GitHub
Parent
1c6aaafe96
révision
ecc794276c
@@ -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;
|
||||
}
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur