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

Codegen integration #3415

Open
wants to merge 76 commits into
base: develop
Choose a base branch
from
Open

Codegen integration #3415

wants to merge 76 commits into from

Conversation

arai713
Copy link

@arai713 arai713 commented Dec 1, 2024

No description provided.

Copy link
Contributor

@CAHEK7 CAHEK7 left a comment

Choose a reason for hiding this comment

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

It's just a quick review with some simple things and common pitfalls.
A haven't looked deep into the code yet.

test/gtest/codegen_group_conv.hpp Outdated Show resolved Hide resolved
test/gtest/codegen_group_conv.hpp Outdated Show resolved Hide resolved
test/gtest/codegen_group_conv.hpp Outdated Show resolved Hide resolved
Comment on lines 280 to 289
auto kernel = handle_.AddKernel("tmp",
"tmp",
"cg_main.cpp",
kernel_info.kernel_name,
kernel_info.l_wk,
kernel_info.g_wk,
kernel_info.comp_options,
0,
src);

Copy link
Contributor

Choose a reason for hiding this comment

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

Usually you should add the kernels outside of this lambda and later just use added kernels.
Like here:

result.construction_params.push_back(kernel);

The list of added kernels passed through const std::vector<Kernel>& kernels into that lambda.

src/solver.cpp Outdated Show resolved Hide resolved
test/gtest/codegen_group_conv.hpp Outdated Show resolved Hide resolved
test/gtest/codegen_group_conv.hpp Outdated Show resolved Hide resolved
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