pyopencl
pyopencl copied to clipboard
Mandelbrot example: double precision
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
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?
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
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