G4 doesn't have an RDTSC register. Thus at make -j8 65% I get
Building CXX object src/cxcore/CMakeFiles/cxcore.dir/cxtables.o
/Users/user/trunk/opencv/src/cxcore/cxsystem.cpp:171:2: error: #error
"RDTSC not defined"
make[2]: *** [src/cxcore/CMakeFiles/cxcore.dir/cxsystem.o] Error 1
make[1]: *** [src/cxcore/CMakeFiles/cxcore.dir/all] Error 2
make: *** [all] Error 2
____________________________________________
found this snippet of code somewhere, hope it helps, Thanks for your time
~Ben
typedef struct _OGLULCPUTime {
OGLUInt32 high;
OGLUInt32 low;
} OGLULCPUTime;
static inline OGLULCPUTime OGLGetCPUTime(void)
{
OGLULCPUTime cpuTime;
unsigned long high1, high2, low;
asm volatile (
"mftbu %0\n"
"mftb %1\n"
"mftbu %2\n"
"cmpw %3,%4\n"
"bne- $-16\n"
: "=r" (high1), "=r" (low), "=r" (high2)
: "0" (high1), "2" (high2));
cpuTime.high = high1;
cpuTime.low = low;
return cpuTime;
}
Nobody/Anonymous ( nobody ) - 2009-11-09 22:34
5
Closed
Fixed
Nobody/Anonymous
Build system
None
Public
|
Date: 2009-11-25 02:20 This Tracker item was closed automatically by the system. It was |
|
Date: 2009-11-10 16:18 Thanks! Fixed in SVN 2276 |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Pending | 2009-11-25 02:20 | sf-robot |
| allow_comments | 1 | 2009-11-25 02:20 | sf-robot |
| close_date | 2009-11-10 16:18 | 2009-11-25 02:20 | sf-robot |
| status_id | Open | 2009-11-10 16:18 | vp153 |
| resolution_id | None | 2009-11-10 16:18 | vp153 |
| close_date | - | 2009-11-10 16:18 | vp153 |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use