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

Improve user-definable max number of kernel arguments and automatic code generation. #725

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

deukhyun-cha
Copy link
Contributor

This update fixes an issue that each cmake configuration triggers automatic code generation without any changes in cmake options when a user-defined maximum number of kernel arguments is specified. Also added a cmake option that user can specify to generate codes for JIT kernel launch only if one knows that's what is going to be used, so it wouldn't suffer from longer compile time when a large value for the maximum number of kernel arguments is required.

Copy link

codecov bot commented Dec 4, 2023

Codecov Report

Merging #725 (a788bbe) into development (ff6e4ea) will increase coverage by 0.00%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##           development     #725   +/-   ##
============================================
  Coverage        75.24%   75.25%           
============================================
  Files              297      297           
  Lines            19326    19327    +1     
============================================
+ Hits             14542    14544    +2     
+ Misses            4784     4783    -1     
Files Coverage Δ
src/core/kernel.cpp 85.93% <ø> (ø)
src/occa/internal/utils/sys.cpp 79.54% <ø> (+0.05%) ⬆️

... and 1 file with indirect coverage changes

…sary. Add an option to only generate jit kernel related code for the new number of kernel arguments and leave others to the default value for compile time efficiency
@deukhyun-cha
Copy link
Contributor Author

For the build with Makefile, it copies the default *codegen files in the script directory back to proper places in source tree, so it can compile (while the cmake will copy those into build directory and include them from there).

@deukhyun-cha deukhyun-cha marked this pull request as ready for review December 4, 2023 19:41
@kris-rowe kris-rowe merged commit 3612b5d into libocca:development Dec 6, 2023
8 checks passed
@deukhyun-cha deukhyun-cha deleted the n-kernel-args-update branch January 16, 2024 19:14
kris-rowe pushed a commit that referenced this pull request Jan 24, 2024
…sary. Add an option to only generate jit kernel related code for the new number of kernel arguments and leave others to the default value for compile time efficiency (#725)
kris-rowe pushed a commit that referenced this pull request Mar 12, 2024
…sary. Add an option to only generate jit kernel related code for the new number of kernel arguments and leave others to the default value for compile time efficiency (#725)
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