Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in GPU_Programming.ipynb #7

Open
tutelarix opened this issue Sep 27, 2022 · 0 comments
Open

Issue in GPU_Programming.ipynb #7

tutelarix opened this issue Sep 27, 2022 · 0 comments

Comments

@tutelarix
Copy link

The issue is found in https://github.com/noahgift/cloud-data-analysis-at-scale/blob/master/GPU_Programming.ipynb.

The Mandelbrot calculation isn't done with CUDA in the last example of Mandelbrot. For sure, it's done with @jit, because create_fractal function is used. To launch CUDA you need to launch mandel_kernel function and of course, as you said copy data to CUDA before.

And the interesting question is why the second launch of the create_fractal function was faster. Because Numba has to compile function and this takes time. On the second time, the cached machine code will be launched much faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant