Timeline for How to force an evaluation to use only one core?
Current License: CC BY-SA 3.0
18 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 4, 2017 at 10:08 | history | edited | Szabolcs | CC BY-SA 3.0 |
edited body
|
Nov 25, 2013 at 10:07 | vote | accept | matheorem | ||
Sep 11, 2013 at 5:01 | comment | added | Kuba | @matheorem Interesting :) I will check that later. | |
Sep 11, 2013 at 0:33 | comment | added | matheorem |
@Kuba Oh, sorry. I have been away from here a couple of days. I tried your code. Yeah, it works. But if you change 1->1.0, that is try Eigenvalues[ SparseArray[{{x_, y_} /; Abs[x - y] < 3 -> 1.0}, {100, 100}]] // Timing // First you will see it multithread again. I don't know why. That is odd.
|
|
Sep 10, 2013 at 10:29 | comment | added | Kuba | @matheorem well, have you checked that? | |
Sep 2, 2013 at 15:18 | comment | added | Kuba |
@matheorem Try Eigenvalues[ SparseArray[{{x_, y_} /; Abs[x - y] < 3 -> 1}, {100, 100}]] // Timing // First with 1 and 2 ParallelThreadNumber. It works for me.
|
|
Sep 2, 2013 at 14:10 | comment | added | matheorem |
@Kuba after examing the answer for the second time. I found that set "ParallelThreadNumber" didn't work for Eigenvalues , set "MKL" works for it. You can check it. The "ParallelThreadNumber" setting works for image processing functions, see mathematica.stackexchange.com/questions/3674/…
|
|
Sep 2, 2013 at 13:31 | vote | accept | matheorem | ||
Sep 2, 2013 at 13:54 | |||||
Sep 1, 2013 at 11:32 | comment | added | Kuba | @matheorem I couldn;t find the second source but I will post it when I will. I saw your other question but I'm not competent enough to answer them :) | |
Sep 1, 2013 at 11:31 | history | edited | Kuba | CC BY-SA 3.0 |
added 592 characters in body
|
Aug 31, 2013 at 0:41 | comment | added | Mr.Wizard |
@matheorem I believe the standard way to set options like this as the default is using the Kernel/init.m file. See (8221) and (1874)
|
|
Aug 30, 2013 at 13:57 | comment | added | matheorem |
@Kuba Oh, SetSystemOptions["MKLThreads" -> 1] actually works for the NIntegrate . My fault. Thank you for your help! But I still wish you could look at the post I mentioned, there are peculiarities which I can't understand.
|
|
Aug 30, 2013 at 13:47 | comment | added | matheorem | @Kuba I think you must familiar with multithread, can you take a look at this post (mathematica.stackexchange.com/questions/31202/…) for me? Unfortunately, somebody down voted it | |
Aug 30, 2013 at 13:45 | comment | added | matheorem | @Kuba It seems that it is undocumented? If I set it to one, After I restart the mathematica, can the value be back to one? | |
Aug 30, 2013 at 13:44 | comment | added | PlatoManiac | Its kind of an all in one math antibiotic for your Intel processor kernel ;) | |
Aug 30, 2013 at 13:43 | comment | added | Kuba |
Math kernel library is used by for example Solve .
|
|
Aug 30, 2013 at 13:40 | comment | added | matheorem | MKL libraries? I don't have an idea about "MKL libraries". What is this? | |
Aug 30, 2013 at 13:30 | history | answered | Kuba | CC BY-SA 3.0 |