Skip to content

Commit

Permalink
Update performance comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasKristensen committed Apr 26, 2023
1 parent 1b0fefe commit babed7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import mandelbrot_datatypes
import mandelbrot_dask
import mandelbrot_opencl
import pyopencl


def mini_project_part_1():
Expand Down Expand Up @@ -49,7 +50,8 @@ def performance_compare(size):
mandelbrot_dask.dask_local_distribution(show_figure=False, pRE=size, pIM=size, chunk_size=2000)

print("\nOpenCL approach:")
mandelbrot_opencl.main(show_figure=False, size=size)
context, queue, device, name = mandelbrot_opencl.create_opencl_context(pyopencl.get_platforms()[0])
mandelbrot_opencl.mandelbrot_opencl(device=device, context=context, queue=queue, width=size, height=size, local_size=25, show_figure=False)


if __name__ == '__main__':
Expand Down

0 comments on commit babed7d

Please sign in to comment.