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.14.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.14-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mandelbrot_viewer-0.1.14.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.14.tar.gz
Algorithm Hash digest
SHA256 8965e63cd2cc793f81df59ed1b1d098867f3b47763c85ec5ec3cddd4d7446881
MD5 834338373c8a41c2c92fdafb81d24806
BLAKE2b-256 00379432f8dd57ada9d90d1403ff3907d8706267147e7c42bd45ee2c703f791f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mandelbrot_viewer-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 c7801b9a13132c9dfbef7e0c1440a88fc481211221c9f43a8f62ea9bab7b880a
MD5 70650c87eb49309226a1fac26fcca155
BLAKE2b-256 1cb22bef4ffc5e66746b244cb803ac7ff081ad162ab9977324d1eefa2d7c3fe9

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