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

Tuning sw_source_adding_kernel #12

Open
bartvstratum opened this issue Jun 14, 2021 · 1 comment
Open

Tuning sw_source_adding_kernel #12

bartvstratum opened this issue Jun 14, 2021 · 1 comment
Assignees

Comments

@bartvstratum
Copy link
Member

I'm starting with this kernel..

@bartvstratum bartvstratum self-assigned this Jun 14, 2021
@bartvstratum
Copy link
Member Author

bartvstratum commented Jun 14, 2021

I created a simple kernel tuner script (sw_source_adding_kernel.py). The advantage of this kernel is that it does not require realistic input, so np.zeros() or np.random.random() as input is fine. The only disadvantage is that you can't do correctness checking with the kernel tuner.

I also tested/tuned the kernel for a varying number of nlay (which is something which will frequently vary in e.g. our LES runs), in this case nlay={64, 128, 192, 256}, the fastest configurations are always with block_size_x=32, and is not sensitive to the choice of block_size_y.

The old configuration was already quite optimal, the best configuration from the kernel tuner is only 8% faster.

@benvanwerkhoven benvanwerkhoven self-assigned this Jun 30, 2021
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

2 participants