Message Boards Message Boards

0
|
9433 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Calculation speed, Cup&memory&Kernel

Posted 9 years ago

Hello; I had run a program. It takes a long time...... And during, I check my cup occupancy rate at 20%, memory usage rate at 75% and kernels status is idle. My program:

SunPosition[GeoPosition[{0, 0}], 
 DateRange[DateObject[{2014, 1, 1, 0, 0}, TimeZone -> 0], 
  DateObject[{2014, 12, 31, 24, 59}, TimeZone -> 0], {1, "Minute"}], 
 CelestialSystem -> "Equatorial"]

How to speed it up? Thank you!

POSTED BY: c deng
2 Replies
Posted 9 years ago

so many thank??

I thought about Parallelize. However, I use ------

Partition[time, UpTo[Round[Length[time]/$KernelCount]]];

to separate the "time" table(Sorry, I can't find all script). What's the simpler but more efficient way is to use ParalleTable.

I already set use 7-8 kernels. I used ---

Needs["Benchmarking`"];

to test speed. The CUP workload reached 100%. It did have some improvement. But form what I observed, efficiency may not only decide by the number of cup-core. I also found form Internet that we can use compile into C to gain a faster script. But I current use Manipulate, maybe I can can only rely on Exorp gif or avi. Thank you patient writing and reading. Also it really cheering to see someone have the small thought but do it in a more efficient way.

POSTED BY: c deng
Attachments:
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract