Unleashing the Power of Mathematica and GPU: Speed Up 3D Graph Visualization

  • Context: Mathematica 
  • Thread starter Thread starter faitswulff
  • Start date Start date
  • Tags Tags
    Gpu Mathematica
Click For Summary

Discussion Overview

The discussion revolves around the use of Mathematica for 3D graph visualization and the potential for utilizing GPU rendering to enhance performance. Participants explore technical aspects of rendering, including the use of CUDA and hardware settings within Mathematica.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant expresses excitement about generating 3D graphs in Mathematica and seeks advice on using the GPU for rendering instead of the CPU.
  • Another participant suggests that NVIDIA's CUDA could be beneficial for GPU acceleration, noting its application in various fields beyond gaming.
  • A suggestion is made to change the rendering engine settings in Mathematica to "hardware" for potentially better performance.
  • A participant reports that changing to "hardware" did not improve speed, indicating possible misunderstandings about the machine's capabilities or Mathematica's rendering process.
  • One participant mentions the difficulty of accurately plotting a transcendental equation and suggests using a high-order polynomial for faster results.
  • Another participant speculates that the GPU may not be able to calculate the solutions, implying limitations in the current setup.
  • A request for guidance on how to implement GPU rendering in Mathematica is made, along with a mention of the need for CUDA support.

Areas of Agreement / Disagreement

Participants express differing views on the effectiveness of hardware rendering in Mathematica, with some suggesting it is not functioning as expected. There is no consensus on the best approach to improve rendering speed or the capabilities of the GPU.

Contextual Notes

Participants acknowledge potential limitations in their understanding of Mathematica's rendering processes and the capabilities of their hardware, but these aspects remain unresolved.

faitswulff
Messages
22
Reaction score
0
I was playing around with Mathematica and I discovered this via the help:

http://img529.imageshack.us/img529/6534/cosxsinypcosysinzpcoszsvc7.jpg

...which is basically the most bad-ass 3D graph I've ever seen, much less had generated on my computer! Yes, I'm only in Calc II for now, but now I can't WAIT to get to Calc III and learn how to visualize pretty 3D graphs!

Anyway, my question is this - right now, I believe my CPU is rendering these graphs, but I want my GPU to render it. I think it might be a lot faster, and allow me to tinker more. Does anyone have any idea on how to do that?

Many thanks
 
Last edited by a moderator:
Physics news on Phys.org
Sounds like you'd be interested in Nvidias CUDA...

The 8-Series (G8X) GeForce-based GPU from Nvidia is the first series of GPU to support the CUDA SDK. The 8-Series (G8X) GPUs features hardware support for 32-bit (single precision) floating point vector processors, using the CUDA SDK as API. (CUDA supports the C "double" data type, however on G8X series GPUs these types will get demoted to 32-bit floats.). Due to the highly parallel nature of vector processors, GPU assisted hardware stream processing can have a huge impact in specific data processing applications. It is anticipated in the computer gaming industry that graphics cards may be used in future game physics calculations (physical effects like debris, smoke, fire, fluids). CUDA has also been used to accelerate non-graphical applications in computational biology and other fields by an order of magnitude or more
http://en.wikipedia.org/wiki/CUDA

http://www.nvidia.com/object/cuda_home.html
http://www.nvidia.com/object/cuda_get.html
 
I think wants:

EDIT >> Preferences
Advanced Tab
Open Option Inspector Button
Click the "+" sign next to graphics options
"Rendering Options"

and change the graphics 3d rendering engine to "hardware"
 
Thanks for the tip! Unfortunately it didn't make it any faster, although "software" makes it extremely slow. Maybe I'm making a few vital assumptions about either my machine or how Mathematica renders that are wrong.
 
It's hard to do an accurate implicit plot of that transcendental equation!

Try changing it to a polynomial equation of high order and you'll find it to be much faster.
 
Also, I think it IS hardware rendered, but your GPU can't calculate the solutions.
 
Crosson, how do I do that? Or where could I go to find out how to? Can Mathematica do it for me?

Mr. Healey, I believe this is the case as well. However, I think I would probably need something like nVidia's CUDA in order to get it to work, like Elliot said. I don't think Mathematica supports DirectX or OpenGL...
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 17 ·
Replies
17
Views
19K