mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-07 16:28:06 +01:00
Warning elimination; drop to -O2 on G++ bad versions
This commit is contained in:
1 parent
1d96f662e3
commit
2439999ec8
8 files changed
+20
-10
No files matched your search
@@ -205,13 +205,12 @@ public:
|
||||
void Stop(void) {
|
||||
count=0;
|
||||
cycles=0;
|
||||
size_t ign;
|
||||
#ifdef __linux__
|
||||
if ( fd!= -1) {
|
||||
::ioctl(fd, PERF_EVENT_IOC_DISABLE, 0);
|
||||
::ioctl(cyclefd, PERF_EVENT_IOC_DISABLE, 0);
|
||||
ign=::read(fd, &count, sizeof(long long));
|
||||
ign=::read(cyclefd, &cycles, sizeof(long long));
|
||||
::read(fd, &count, sizeof(long long));
|
||||
::read(cyclefd, &cycles, sizeof(long long));
|
||||
}
|
||||
elapsed = cyclecount() - begin;
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user