Monday, May 28, 2012

Can MATLAB make use of multi-core CPU

Can MATLAB make use of multi-core CPU

I've got a core 2 duo PC with Windows XP and MATLAB R2006a installed.
I want to know if MATLAB will take advantage of the two cores of CPU
to double the computational speed (in the ideal situation) if I do
not use any parallel programming technique in my function.
In detail, most of the computing time of my script is spent on the
2-D convolution which is iterated 5000 times. The date in each
iteration is independent so that parallel computing technqiue can
help.

Well, I don't expect MATLAB to be smart enough to optimize my script.
So my second question is how to do parallel programming in MATLAB.
Thanks.

Andy.
  • "

    Matlab

    " Open Questions
  • Can MATLAB Java Builder compile user classes?
  • Hi, everyoneI am trying to use Matlab Java Builder to compile Matlab applicationinto Java codes. I know that the Java Builder works well for MatlabStruct. But my Matlab application has a lot of user classes. I amwondering whether Java Builder will work for the user classes.Thanks a lot.Yunde...
  • Can Matlab help Excel data entry?
  • Hi all,Can I enter data interactively and dynamically?To give an example:Approach 1: Currently, when I enter grades for students, I have to findhis/her name first, after finding that row, I have to scroll the row to thefar right, since there are so many columns already there. Let's supposet...
  • can matlab gui do this job
  • hi ,everyonei want to know if matlab GUI can store and display some data achievedin functionsthat is,when i execute the GUI , some data is created ,then i want some place in the GUI to display the datacan matlab GUI do this?thanks...
  • Can Matlab fully control Zemax? I bumped into some trouble in some features
  • Hi,I would like to access Zemax settings via Matlab.I am aware of usingzGetTextFile(TextFileName, AnalysisType, SettingsFileName,0);However still this dictates you the need to set thesettings in Zemax, save your own relavant CFG file, thenuse it when using zGetTextFile as your SettingsFileName.I...
  • can matlab from vb
  • i got a problem ,i want to call matlab from vb(is it need vb.net or vb6.0?),my parameters were generated by vb ,and i want to put these parameters to matlab ,so i can draw three-dimensional graph?i want to know how can i complete ?thanks everyone ....
  • Can Matlab extract variables from a MAT file t
  • I haven't, and probably never will. If i get one, it'll most likely bein chemistry. However, he wasn't asking me the question was he, he wasasking the group. The comparrison might have been exagerated slightly.As far at MATLAB experience goes, I'm near the bottom personally,...
  • Can Matlab extract variables from a MAT file t
  • Christopher, thank you, I know. My question is 'would this work?'Would Matlab be smart enough to pick out only variable1,..,variableN, or insist on loading the whole thing, and then picking outvariable1,.., variableN?...
  • Can Matlab extract variables from a MAT file
  • Suppose that we try to load into Matlab workspace a MAT file that istoo large given memory constraints. (Presumably, the file was createdon a different computer). I wonder if it would still be possible toextract selected variables from the file, using appropriate syntax ofLOAD. Does anybody know...
  • Can Matlab extract variables from a MAT
  • Dimitri Shvorob wrote:> Suppose that we try to load into Matlab workspace a MAT file that is> too large given memory constraints. (Presumably, the file was created> on a different computer). I wonder if it would still be possible to> extract selected variables from the file, using ap...
  • Can Matlab extract variables from a MAT
  • berniecr.programming.itags.org.clarkson.edu wrote:> It's like asking a nobel winning> physicist> what Newton's first law of motion is.When did you win the Nobel prize? I can't find you in the list ...Heinrich...
  • Post a Comment Now.
  • Comments
  • Tue, 29 Apr 2008 13:47:00 GMT(1)
  • Andy wrote:
    >
    > I've got a core 2 duo PC with Windows XP and MATLAB R2006a
    > installed.
    > I want to know if MATLAB will take advantage of the two cores of
    > CPU
    > to double the computational speed (in the ideal situation) if I do
    > not use any parallel programming technique in my function.
    > In detail, most of the computing time of my script is spent on the
    > 2-D convolution which is iterated 5000 times. The date in each
    > iteration is independent so that parallel computing technqiue can
    > help.
    > Well, I don't expect MATLAB to be smart enough to optimize my
    > script.
    > So my second question is how to do parallel programming in MATLAB.
    > Thanks.
    > Andy.


    Hi Andy,

    MATLAB is not a multithreaded application so it can not make use of
    dual core. But there is a toolbox, distibuted computing toolbox that
    makes use of multi-processor systems though. But Mathwork is in the
    process of supporting multicore systems as well. I hope this info may
    help you a bit.

    Cheers !!

    V
  • Tue, 29 Apr 2008 13:48:00 GMT(2)
  • I am using the processing power of multiple cores, or even of
    multiple computers, without using the distributed computing toolbox.
    What my master process does is to save the data needed for the
    computation task into simple data files. One or several slave
    processes load these files, do the computation and save the results
    into files. Then the master process can load the results.

    Saving and loading is very quick, so the organizational overhead
    should be neglectable, if your processing task needs several seconds
    or more.

    If you like more advice on how I realized this, let me know.

    Markus
  • Tue, 29 Apr 2008 13:49:00 GMT(3)
  • I'd like to know your solution.

    Markus wrote:
    >
    > I am using the processing power of multiple cores, or even of
    > multiple computers, without using the distributed computing
    > toolbox.
    > What my master process does is to save the data needed for the
    > computation task into simple data files. One or several slave
    > processes load these files, do the computation and save the results
    > into files. Then the master process can load the results.
    > Saving and loading is very quick, so the organizational overhead
    > should be neglectable, if your processing task needs several
    > seconds
    > or more.
    > If you like more advice on how I realized this, let me know.
    > Markus
  • Tue, 29 Apr 2008 13:50:00 GMT(4)
  • Andy wrote:
    >
    > I've got a core 2 duo PC with Windows XP and MATLAB R2006a
    > installed.

    [snip wants matlab to utilize core 2 duo]

    While not in the way you describe, the pre-release R2007a has some
    multi-thread, multi-processor support. On the computations I test,
    where multi-thread/proc is enabled, I did see a 3x-4x improvement in
    speed. I have a 4 processor (8 core) computer to work with.

    A Friend.
  • Tue, 29 Apr 2008 13:51:00 GMT(5)
  • Well, after a brief look at the distributed computing toolbox at
    mathworks website, it gives me the impression that this toolbox is
    designed for computing cluster, not for multi-core CPU on a single
    machine. So it may not help me.

    Vijay Singh wrote:
    >
    > Andy wrote:
    of
    > do
    > the
    can
    > MATLAB.
    > Hi Andy,
    > MATLAB is not a multithreaded application so it can not make use of
    > dual core. But there is a toolbox, distibuted computing toolbox
    > that
    > makes use of multi-processor systems though. But Mathwork is in the
    > process of supporting multicore systems as well. I hope this info
    > may
    > help you a bit.
    > Cheers !!
    > V
  • Tue, 29 Apr 2008 13:52:00 GMT(6)
  • On Wed, 24 Jan 2007 22:21:47 -0500, Andy wrote:

    > I've got a core 2 duo PC with Windows XP and MATLAB R2006a installed.
    > I want to know if MATLAB will take advantage of the two cores of CPU
    > to double the computational speed (in the ideal situation) if I do
    > not use any parallel programming technique in my function.
    > In detail, most of the computing time of my script is spent on the
    > 2-D convolution which is iterated 5000 times. The date in each
    > iteration is independent so that parallel computing technqiue can
    > help.
    > Well, I don't expect MATLAB to be smart enough to optimize my script.
    > So my second question is how to do parallel programming in MATLAB.
    > Thanks.
    > Andy.


    In addition to what others have said, there is more information available
    if you search this newsgroup. This question is quite frequently asked, so
    there are numerous previous posts to look up.

    Dan
  • Tue, 29 Apr 2008 13:53:00 GMT(7)
  • I have put my parallelization code into a small toolbox that you can
    download here:

    <[url]http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=13775[/u
    rl]>

    This is only one of similiar solutions, but maybe someone can use it
    for his work. It does not use any C-programmed stuff that has to be
    compiled before one can start to work.

    Markus
  • Post a Comment Now.
  • Maybe you're interest in these...
  • File Search!
  • [Active Server Page (ASP)] i change to "c:\" only search root filei want search all file in volume by my setall file in root,subfolder....thanks"JakeDAHS" <jskiba99.programming.itags.org.gmail.com>'?:1150168428.243545.115520.programming.itags.org.c74g2000cwc.googlegroups.com...>> Joey Chen wrote: >> Change sFolder = "C:\temp1" to directorty t......
  • Dynamic Data Exchange Exception
  • [Development Tools] Hi All I am working with 'Dynamic Data Exchange' to execute some Microsoft word Commands.first i open the microsoft word using its exe and then i use dde.execute to execute my command but get the exception ORA-016552. Please tell me what i should do ?Thanks in AdvanceZahid......
  • handling null values
  • [Coldfusion] hello cfml developers ...In my application I need to add two array values inside a loop..but the problem is whlie adding ..in some cases the legth of the arrays r not same..as a result Iam getting the following error.."The element at position 4 of dimension 1, of array variable "FTR_MAN_AR......
  • Application locking up at Call by Reference
  • [LabVIEW] I think the problem may be an interaction with TestStand, possibly a conflict with different threads. One question that I can't find the answer to is: what execution system do VIs run in when they are called by reference? For example, ifTopLevelVI.vi calls SubVI.vi by reference, if TopLevel......
  • C & ELF segment
  • [C & C++] Hi,I hope this question belongs to this group.I am studying book <<Expert C Programming>and in the chapter ofrun time data structure, it mentions that BSS segment only stores thesize of the un-initialized data, it does not have the data images, soit does not take up any actual space in......
  • regexp problem
  • [TCL] HiI am trying to parse a verilog (Hardware description language) fileusing TCL,and I have some problems with an implementation of a non-greedy regexp:Here's the string I am looking in:set a {module a..inst1 abc..endmodulemodule b..inst2 xyz..endmodule}I would like to find the name of t......
  • Watir & regexp
  • [Ruby] We want to test a value given in a text field with a regularexpression. We are trying to do it this way:.programming.itags.org.browser.text_field(:name,"vareeier").set("123456789").programming.itags.org.browser.text_field(:name,"vareeier").value.should_equal(/[0-9]{9}/)This is not working for us. We also tried using.programming.itags.org.browser.text_fiel......
  • How to display HTML Entities in Flash
  • [Flash] Hello, I am passing XML file as input to a Flash File. This XML Data contains some HTML entities, so these entities are not correctly displayed on Flash File.Here is xml code in short <?xml version="1.0" encoding="utf-8" ?> - <root> - <item id="1"> - <name> - <......
  • Can't locate object method "prepare"
  • [Perl] Hi All,I am writing a subroutine which inserts the values supplied in perlscript.abc.pm***********package abc;use DBI;use Apache::DBI;use DBD::Pg;use CGI;#use strict;#use Exporter;#our .programming.itags.org.ISA = qw(Exporter AutoLoader);#our .programming.itags.org.EXPORT_OK = qw(Login);my $databasehandle = ();sub new($){my ($self,$u......
  • brace grouping vs. numbering
  • [Tex] Hi, all,I cannot find a way to separately number the equations that have agrouping brace on the left.E.g.:\begin{equation}\left\{\begin{aligned}1=1\cdot1\\0=1 - 1\end{aligned}\right.\end{equation}what I want is to get 2 separate numbers for the 2 equations. CurrentlyI ca......

No comments:

Post a Comment