Group Abstract Group Abstract

Message Boards Message Boards

0
|
12.3K Views
|
5 Replies
|
0 Total Likes
View groups...
Share
Share this post:

More Memory, More Speed?

Posted 11 years ago

Greetings,

I'm repeatedly running a program that takes hours to complete. Will more RAM speed up the process? I've 8GB with an Intel Core i7 @ 3.6GHz under Windows 7 (64 bit).

Best,

Dean Sparrow

POSTED BY: Dean Sparrow
5 Replies

Sorry, Jay. No improvements yet. I wish I knew more about parallel computing. For example, does it work automatically or must I "kick-start" it somehow?

POSTED BY: Dean Sparrow

Hi Dean, The faster code workshop indicated that using built-in functions and using real numbers (with decimal points) produces faster running programs. This is not considered parallel processing generally. Check your Parallel Kernel Preferences -> Local Kernels to see that the number of local kernels matches the expected number of cores for your processor. Verify that they are working by looking at the Parallel Kernel Status (bottom right button under the Parallel Kernel Configuration box).

If there are other computers running Mathematica, you can try and set up a lightweight grid to share the load (Parallel Kernel Preferences -> Lightweight Grid) See http://bit.ly/1KlvxmM for more info. Next you could uses remote Kernels on the Wolfram servers if you have the license for it (Parallel Kernel Preferences -> Remote Kernels). The approach throws more kernels at the problem without having to optimize code as much.

If you want to use CUDA, then I don't think "automatically" is the right word. Mathematica programs have to include CUDA functions to take advantage of the parallel processing in your GPU. Your NVIDIA graphics card drivers need to support support CUDA. The following Mathematica functions can be used to check that CUDA is available and ready to use.

Needs["CUDALink`"]
CUDAQ[]
CUDAInformation[];
TabView[Table[ii -> Grid[Replace[#, Rule[x_, y_] -> {x, y}] & /@ CUDAInformation[ii], Frame -> All], {ii, 1, $CUDADeviceCount}]]
CUDADriverVersion[] 
CUDAResourcesInformation[]
SystemInformation[]

Then use to CUDA tutorial to learn to rewrite your code to use the graphics card GPU ( http:bit.ly/1Oka6GO ).

POSTED BY: Jay Morreale

Thanks. The task manager shows 4GB memory used, so I'll try your other suggestions.

POSTED BY: Dean Sparrow

Hi Dean, Would you let me know which suggestion provides the most improvement?

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