精華區beta MATLAB 關於我們 聯絡資訊
我剛剛一直在弄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.109.23.128 catherinejoy:轉錄至看板 NCTU-STAT94G 08/21 20:47
Y0SHIKI:學姊好 @@> 08/21 21:23
catherinejoy:你也有看這版啊 哈哈 ^^ 08/23 10:16