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.12.tar.gz (15.3 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.12-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mandelbrot_viewer-0.1.12.tar.gz
  • Upload date:
  • Size: 15.3 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.12.tar.gz
Algorithm Hash digest
SHA256 0d2350d7422f84edb1272ab6fac87dcf5bbeaa5e3b97c8d576a601d119e4d431
MD5 213e89fed2244d1422624bad2546a434
BLAKE2b-256 3a2a00bb3aab832268c01a601a196f25a539e2e003c3df9311fbe926e164d2e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mandelbrot_viewer-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 6115c0e58c1823ac6fb4508981fa7a7a363f1bb6377c4376175ce2e6ad280750
MD5 0df8d33ce1ac841b1cb6648ef621894d
BLAKE2b-256 fc6b0fad057948736877b88fbbc8a7e82389c587678568e514146923b63f5787

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