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

Semi-automatic collocation code generation on device #120

Conversation

mikovtun
Copy link
Contributor

@mikovtun mikovtun commented Apr 8, 2024

Adds an additional pyexpander script to complete collocation code generation up to arbitrary angular momentum.

Copy link
Owner

@wavefunction91 wavefunction91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the files generated by these new scripts (for LMAX = 4) to this PR - there's some spacing oddities that are artifacts of pyexpander - they're fine, but it would be nice to have an accounting of when strange things like this get introdced. Other than that. LGTM - nice QoL improvement.

You're also more than welcome to bump LMAX in a separate PR - the only thing is that if you want to do that, you'd need to add some tests to make sure we get coverage. Not a huge deal for right now

if( pure ) {
switch(l) {
case 0: return util::cuda_kernel_max_threads_per_block( collocation_device_shell_to_task_kernel_cartesian_hessian_0 );\
$for( L in range(1, L_max) )
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$for( L in range(1, L_max) )
$for( L in range(1, L_max + 1) )

}
} else {
switch(l) {\
$for( L in range(L_max) )
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$for( L in range(L_max) )
$for( L in range(L_max + 1) )

@wavefunction91 wavefunction91 merged commit b253ce5 into wavefunction91:master Apr 10, 2024
12 checks passed
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

Successfully merging this pull request may close these issues.

2 participants