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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mandelbrot_viewer-0.1.11.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.11.tar.gz
Algorithm Hash digest
SHA256 30f39092acb214e4f6193caa7f520acc66c8ab9563a63ad0561025c443937bca
MD5 b259a547d7260fcb97cd4f5f288cb448
BLAKE2b-256 20f2ad8f9c092fb0a02f6b4e2db33f75386f722bd3ff76b6a353248d710a3258

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mandelbrot_viewer-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 1d906639b8fedf0a326fd9e5f20936fad69d3b3127be1142f3cb75c4603390d5
MD5 918e063852c7ebe238345ffece102c64
BLAKE2b-256 d464f286d23235e85bec78c137663fafe067ee7c82356b132f12ee41fee73639

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