/proc/cpuinfo
colinux で OpenCV を使う Ruby 拡張ライブラリを動かそうとしてるんだけど、assertion が出てうまく動かない:
ruby1.8: cxswitcher.cpp:236: void icvInitProcessorInfo(CvProcessorInfo*): Assertion `cpu_info->frequency > 1' failed.
ふむ、該当行:
233 if( CV_GET_PROC_ARCH(cpu_info->model) != CV_PROC_IA32_GENERIC ) 234 cpu_info->frequency = 1; 235 else 236 assert( cpu_info->frequency > 1 );
周波数が 1 未満だから止まったらしい。
どうれ、
[babie@colinux:0]$ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 14 model name : Genuine Intel(R) CPU T2300 @ 1.66GHz stepping : 8 cpu MHz : 0.000 cache size : 2048 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx pni monitor est tm2 xtpr bogomips : 228.55
cpu MHz 0.000 !!! こいつかー!! どうすっぺかなぁ。う〜ん、Core Duo マシンだからなかなぁ?
Hi delvelopers,
Do you plan to add multiprocess/multicore support to colinux ? and when ?
Nobody is working on it, and have not planed.
だってさ。May 08, 2007 の話。
/proc/cpuinfo を無理やり変える方法があればいいのになー、と思いつつ、コメントアウトして debuild したッ!!!!