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

Fix passing lists of boolean values to kernels in python. #2349

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

annagrin
Copy link
Collaborator

@annagrin annagrin commented Nov 1, 2024

Description

Fix passing lists of boolean values to kernels in python.

Closes: #2262
Closes: #2330

@@ -393,11 +393,11 @@ inline void packArgs(OpaqueArguments &argData, py::args args,
.Case([&](IntegerType type) {
// Handle vec<bool> and vec<int>
if (type.getIntOrFloatBitWidth() == 1) {
genericVecAllocator.template operator()<bool>(
genericVecAllocator.template operator()<char>(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this required if we merge #2338 ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

The changes to this file can be dropped AFAICT.

It would be great to add the extended tests though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants