フィルターのクリア

Assigning single processor core in script

2 ビュー (過去 30 日間)
kjetil87
kjetil87 2013 年 8 月 12 日
Hi, i am looking for a way to assignt a single core from within matlab.
i.e something like:
%%my script:
clc;
clear all;
%etc etc...
"restrict to one core"
tic;
% code goes here
toc;
"remove restriction again"
I know about the windows task manager way of restricting matlab to one core, but i am writing a script to surround a function with profiling and timing so it would be nice if all the user had to do was to execute this script.
thx in advance!
  2 件のコメント
Walter Roberson
Walter Roberson 2013 年 8 月 12 日
It is possible to start up MATLAB restricted to one thread: would that be satisfactory?
kjetil87
kjetil87 2013 年 8 月 12 日
Actually i just found a function that can assign number of computational threads :
Unfortunately it`s going to be removed in future releases.
Although it doesnt really matter because I ended up making an executable and starting through a .bat file to be able to run several instances at once.
Still, thx for the reply =)

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMulticore Processor Targets についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by