pyopencl icon indicating copy to clipboard operation
pyopencl copied to clipboard

Mandelbrot example: double precision

Open t0b3 opened this issue 2 years ago • 3 comments

add double precision for

  • maxiter: ushort(16) -> uint(32)
  • output: ushort(16) -> uint(32)
  • z, q: complex64 -> complex128
  • real, nreal, imag: float -> double

works fine here

t0b3 avatar Jun 02 '22 19:06 t0b3

Could you explain what the presumed benefit is? An immediate downside is that devices without high-performance double support (Nvidia...) will suffer a decrease in performance. As a result, maybe this should be an option?

inducer avatar Jun 02 '22 21:06 inducer

intend is to

  • extend the demo and explain how high precision can be implemented
  • enable this very example to dive into much lower zoom levels code works fine here on budget radeon

t0b3 avatar Jun 02 '22 21:06 t0b3

performance doesn't decrease compared to 32bit fyi this 64bit code performs fluent on 64bit cpus like

  • 5$ entry level cloud vm cpu
  • raspi4 cpu

t0b3 avatar Jun 03 '22 05:06 t0b3