Skip to main content

An arbitrary precision GPU accelerated mandelbrot set viewer buit with kivy and taichi.

Project description

mandelbrot-set-viewer

An interactive arbitrary precision Mandelbrot set viewer using my taichi_big_float package.

Usage

You just have to install it using pip:

pip install mandelbrot-viewer

And you can run it from the commandline using:

mandelbrot-viewer

This will execute the main function from mandelbrot_viewer.mandelbrot_viewer.py. There are a few arguments you can give, they have strict ordering. The first you can set 'server' or anything else. If set to 'server', this setting expexts to be able to connect to an already running server, launched by the remote_ssh_server.py which can be launched as

mandelbrot-remote-server

This solution was implemented in order to be able to run the heavy part of the computation on any SSH HPC which allows port forwarding from the compute node. To use this you first need to set up portforwarding through SSH on the port 6010 on the HPC server compute node you are using and then launch the mandelbrot-remote-server on it. Then you should be able to connect to this server with setting the first argument of the mandelbrot viewer to 'server' as

mandelbrot-viewer server

You can also provide a second parameter (necessarily in this order), which is either 'cuda' or anything else. If it is set to 'cuda' it tries to launch the computations on the cuda platform, otherwise it starts it on cpu. This is not recommended since the default is to try to use cuda and if it fails it will automatically fall back to cpu. But it can be used as

mandelbrot-viewer local cpu

This starts the viewer locally only using the cpu.

Notes

The arbitrary precision calculations are solved in a way that the functions and the Taichi kernels are dynamically created and compiled for higher and higher precisions, this compilation might takes some time, this does not block the GUI, but if the kernel isn't yet compiled for the necessary precision, you can see the result being pixelated, in this case you have to be a bit patient and wait for the kernels to compile (there is not yet a signal implemented for this, so it does not trigger a recompute, you have to poke the GUI to see if it is still pixelated or not).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mandelbrot_viewer-0.1.13.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mandelbrot_viewer-0.1.13-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file mandelbrot_viewer-0.1.13.tar.gz.

File metadata

  • Download URL: mandelbrot_viewer-0.1.13.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for mandelbrot_viewer-0.1.13.tar.gz
Algorithm Hash digest
SHA256 c44067e64185aa870c896085208d3c422b44ddb2399cb493960fe44335437a0e
MD5 ecc28e4ba614e34b469dfbabd739a3af
BLAKE2b-256 09b82981203af6e767d4dccd81ec3fbc6319daaece8308c28c90f728ac121e50

See more details on using hashes here.

File details

Details for the file mandelbrot_viewer-0.1.13-py3-none-any.whl.

File metadata

File hashes

Hashes for mandelbrot_viewer-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 7284ef8849704f43fd185699b85b528ff2d1dc339e82205f5d4c71bf3e8a364e
MD5 9dfdc453166722654c88ac3a2a838e6f
BLAKE2b-256 4be33e24cda852fb2604cd8edcecac02f31dd141c268cf5eae3c5abdd3ead021

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page