精華區beta MATLAB 關於我們 聯絡資訊
下面是跑MATLAB benchmark的結果 Version:R2007a CPU:Q6600-266*9@333*9 RAM:DDR2-1G*4-800@830 CORE LU FFT ODE SPARSE 2-D 3-D 1 0.1267 0.1671 0.1288 0.2614 0.2481 0.5756 2 0.0892 0.1682 0.1297 0.2893 0.2448 0.5635 3 0.0773 0.1690 0.1293 0.3221 0.2441 0.5870 4 0.0724 0.1798 0.1305 0.3684 0.2452 0.5778 ※ 引述《catherinejoy (whatcanisay)》之銘言: : 我剛剛一直在弄MKL 結果matlab7.4 都一直跟我說找不到 MKL的模組 : (有設環境變數了 因為我有打 getevn BLAS_VERSION確認過) : 結果 後來help multithread 就找到solution了 : File> Preferences > General 的Multithread : 把 Enable...勾起來 用Automatic (因為我是用Quad 所以有4) : 然後測試的結果相當驚人喔 : +++++++++++++++++++++++++++++++++++++++++++ : tic; inv(rand(5000,5000)); toc : a = rand(2000);b=rand(2000); tic; a*b;toc : a=rand(3000);b=rand(3000); tic;a./b;toc : A = rand(2500); : tic; inv(A);toc : tic; A*A;toc : ++++++++++++++++++++++++++++++++++++++++++++ : 單核心的結果 : Elapsed time is 48.653181 seconds. : Elapsed time is 2.729897 seconds. : Elapsed time is 0.174289 seconds. : Elapsed time is 6.366006 seconds. : Elapsed time is 5.306654 seconds. : ++++++++++++++++++++++++++++++++++++++++++++++++++ : 四核心的結果 : Elapsed time is 16.867344 seconds. : Elapsed time is 0.732153 seconds. : Elapsed time is 0.173935 seconds. : Elapsed time is 2.361484 seconds. : Elapsed time is 1.404670 seconds. : ++++++++++++++++++++++++++++++++++++++++++++++++++++++ : 因為明天還要交另一個功課 所以呢 等我有空再來把二核心個三核心的結果 貼上來吧 : ※ 引述《ktblast (開心認真過日子)》之銘言: : : 上篇的S大說有可能不需要去下載intel 的 library : : 我於是第二台電腦就只有去改變環境參數而保留原來Matlab的 Library : : 1. PC1 (P-D 930).....時間減少 20 % : : 原來執行時間:150秒 : : 安裝Intel Library & 改變環境參數後的執行時間:120 秒 : : 2. 筆電 (T7200).....時間減少 50 % : : 原來執行時間:200秒 : : 改變環境參數後的執行時間 : 100 秒 : : 兩台電腦都是執行同一個程式...好個驚人的結果啊(  ̄ c ̄)y▂ξ : : p.s: 第三台電腦是 P-630 (HT)...改變前後沒有差異 : : intel 對於 OMP_NUM_THREADS 的討論 : : http://softwareforums.intel.com/ISN/Community/en-US/forums/thread/30222519.aspx -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.123.122.23
DuoMax:你有多做幾次取平均或是跑需要跑久一點的程式碼嗎? 08/23 03:06
DuoMax:這樣測試會不會更有意義一些? 08/23 03:07