-
Notifications
You must be signed in to change notification settings - Fork 19
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
Semi-automatic collocation code generation on device #120
Conversation
There was a problem hiding this 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) ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$for( L in range(1, L_max) ) | |
$for( L in range(1, L_max + 1) ) |
} | ||
} else { | ||
switch(l) {\ | ||
$for( L in range(L_max) ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$for( L in range(L_max) ) | |
$for( L in range(L_max + 1) ) |
Adds an additional pyexpander script to complete collocation code generation up to arbitrary angular momentum.