Skip to content

Fix primitive boolean field lookup#16

Open
ericyewang wants to merge 1 commit into
Syncleus:masterfrom
ericyewang:fix-primitive-boolean-field
Open

Fix primitive boolean field lookup#16
ericyewang wants to merge 1 commit into
Syncleus:masterfrom
ericyewang:fix-primitive-boolean-field

Conversation

@ericyewang
Copy link
Copy Markdown

Summary

  • Fix JNI lookup for non-static primitive boolean kernel fields by using the Z field signature instead of B.
  • Read the value with GetBooleanField, matching the existing static boolean path.

This addresses the root cause of Syncleus/aparapi#91, where kernels using singular boolean fields fail in GPU mode while boolean arrays and other primitive fields work.

Verification

  • git diff --check
  • Inspected the JNI primitive argument path in KernelArg.cpp; native build was not run in this environment.

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.

1 participant