1,365 reputation
622
bio website
location
age
visits member for 2 years
seen 6 hours ago

Nov
14
comment How to change front end setting “Parallel Kernel Configuration” in the code?
yeah,my fault, I didn't read the doc carefully:)
Nov
13
comment How to change front end setting “Parallel Kernel Configuration” in the code?
Yeah! string works! Thank you very Much! To notice before Launch, Needs["SubKernelsRemoteKernels"] is essential. But why I can't find "SubKernelsRemoteKernels" in mathematica doc?
Nov
13
comment Mathematica Parellelization on HPC
Now, I am sure that the first step Start remote master kernel is unnecessary. Just Add host in the remote Kernels tab, and then first CloseKernels[], second LauchKernels[], all the Kernels will be launched. This works on my HPC.
Nov
12
comment How to change front end setting “Parallel Kernel Configuration” in the code?
If I have qsub two nodes and got node name fu01 and fu02 each has 24 cores. The shell is on fu01. Then as I understand, I can just type LaunchKernels[RemoteMachine[fu02, "ssh -x -f -l 3 1 math -mathlink -linkmode Connect 4 -linkname '2' -subkernel -noinit", 16]], right? But it didn't work. It just gives ` $Failed`
Nov
12
comment Mathematica Parellelization on HPC
Thank you for the information! I am reading it. I have a question. I can't understand the step Start remote master kernel. In the Mathematica doc "ParallelTools/tutorial/ConnectionMethods", it didn't say that we have to start remote master kernel. And I can understand why your method can launch a master kernel on remote node. Can explain it a little?
Nov
11
comment Mathematica Parellelization on HPC
Hi,xslittlegrass! Do you know how to do it without front end? The network of the HPC which I use is not fast enough to use a front end. And I didn't understand Szabolcs's method. Does he achieve the same effect as yours(to parallel computation across different nodes)?
Nov
10
comment How to partition a list according to a nested table structure?
Oh, I understand
Nov
10
comment How to partition a list according to a nested table structure?
Thank you! But I can't understand. Can you explain a little? What is t,it,if?
Nov
10
comment Why is FileNameJoin not working?
@belisarius @cormullion I have tested many times and found that in the front end mode once the small space is preserved correctly, then aaa >> FileNameJoin[{Directory[],"input"}] or aaa >> (FileNameJoin[{Directory[], "input"}]) both works. But when I run it in command line mode, aaa >> FileNameJoin[{Directory[],"input"}] will give a file named "FileNameJoin[...]". But aaa >> (FileNameJoin[{Directory[], "input"}])just give an error saying "Syntax::sntxf: "aaa" cannot be followed by ">>(FileNameJoin[{Directory[],lll}])""
Nov
10
comment Why is FileNameJoin not working?
@Nasser not that space. I mean the space here, see closely imgur.com/VHaiFDt. Can you notice that one of the "input" is grey and the other is black? If you type your code successively, the space is automatically preserved by mathematica syntax system. But I found if you use copy and paste the "Directory[]", the space strangely gone and that makes it wrong. So that is why I call it bug.
Nov
10
comment Why is FileNameJoin not working?
@Nasser the small space is the key. between "," and "input". (,"input") will be wrong, (, "input") will be right
Nov
10
comment Why is FileNameJoin not working?
WOW! That is the point! I just noticed the important small space before I came back and look at your answer. This is absolutely a "bug" I think
Nov
10
comment Why is FileNameJoin not working?
@Nasser That is strange! It's not only happened in my local mathematica, it also happens why I use mathematica on HPC, sometimes it did't create a file, sometimes it creates a file named "FileNameJoin[.....]"? That makes crazy
Nov
10
comment Why is FileNameJoin not working?
@Nasser and it shouldn't be a matter if there is already a file with the name "input" exit? Put always write, I think
Nov
10
comment Why is FileNameJoin not working?
@Nasser I've edited my question. aaa can be anything just for convenience. If I didn't define aaa, the aaa>>file will put 3 "a" characters into file .
Nov
10
revised Why is FileNameJoin not working?
deleted 1 characters in body
Nov
10
asked Why is FileNameJoin not working?
Nov
10
asked How to partition a list according to a nested table structure?
Oct
30
awarded  Critic
Oct
10
accepted HornerForm of polynomials in terms of E^(i x)