Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11925 > unrolled thread

Multi Thread in Mathematica (not multi core)

Started byMurta <rodrigomurtax@gmail.com>
First post2012-10-01 06:22 +0000
Last post2012-10-05 06:41 +0000
Articles 3 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Multi Thread in Mathematica (not multi core) Murta <rodrigomurtax@gmail.com> - 2012-10-01 06:22 +0000
    Re: Multi Thread in Mathematica (not multi core) Murta <rodrigomurtax@gmail.com> - 2012-10-04 03:38 +0000
      Re: Multi Thread in Mathematica (not multi core) awnl <awnl@gmx-topmail.de> - 2012-10-05 06:41 +0000

#11925 — Multi Thread in Mathematica (not multi core)

FromMurta <rodrigomurtax@gmail.com>
Date2012-10-01 06:22 +0000
SubjectMulti Thread in Mathematica (not multi core)
Message-ID<k4bcrs$ljf$1@smc.vnet.net>
Hi All
I'm working in some web scraping using Mathematica, and today, to get velocity, I have to call bash commands inside Mathematica (xargs with parallel options with curl and wget).
I would like to do All inside Mathematica, but I miss multi thread capability. I could use more cores, but it's not the answer because the leg is due to time lag, not lack of processor capacity.
Some clue? Something new to Mathematica 9?
I thought that would be natural to be multi thread if it's multi core.
tks in advance
Murta

[toc] | [next] | [standalone]


#11935

FromMurta <rodrigomurtax@gmail.com>
Date2012-10-04 03:38 +0000
Message-ID<k4j0c4$7ls$1@smc.vnet.net>
In reply to#11925
There is the code that I was looking for.

CloseKernels[]; LaunchKernels[16];
ParallelMap[Import,urlList]

My mistake was to think that the number of kernels was limited by the number of cores.
Credits to @belisarius from stackexchange


On Monday, October 1, 2012 3:24:20 AM UTC-3, Murta wrote:
> Hi All
> 
> I'm working in some web scraping using Mathematica, and today, to get velocity, I have to call bash commands inside Mathematica (xargs with parallel options with curl and wget).
> 
> I would like to do All inside Mathematica, but I miss multi thread capability. I could use more cores, but it's not the answer because the leg is due to time lag, not lack of processor capacity.
> 
> Some clue? Something new to Mathematica 9?
> 
> I thought that would be natural to be multi thread if it's multi core.
> 
> tks in advance
> 
> Murta

[toc] | [prev] | [next] | [standalone]


#11954

Fromawnl <awnl@gmx-topmail.de>
Date2012-10-05 06:41 +0000
Message-ID<k4lver$d37$1@smc.vnet.net>
In reply to#11935
Hi,

 > CloseKernels[]; LaunchKernels[16];
 > ParallelMap[Import,urlList]
 >
 > My mistake was to think that the number of kernels was limited by the 
number of cores.

AFAIK it is limit by your license. That might be more or less than the 
number of cores, depending on license and machine, of course. However, 
to occupy a kernel license per file seems to be a quite expensive way to 
download files :-).

albert

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web