Skip to content

[BUG] Error when assigning to boolean vector field in Warp #1302

Closed

Description

@thomasbbrunner

Bug Description

Currently, attempting to write to a boolean vector field within a kernel in Python will lead to the error:

warp._src.codegen.WarpCodegenError: Error while parsing function "assign_bool_vector"

Reproduction

import warp as wp

@wp.kernel
def assign_int_vector():
    v = wp.vector(length=2, dtype=wp.int32)
    v[0] = 1

@wp.kernel
def assign_bool_vector():
    v = wp.vector(length=2, dtype=wp.bool)
    v[0] = True

wp.launch(assign_int_vector, dim=1)
wp.synchronize()

# Raises:
# warp._src.codegen.WarpCodegenError: Error while parsing function "assign_bool_vector"
wp.launch(assign_bool_vector, dim=1)
wp.synchronize()

The compilation of the kernel with the int vector (assign_int_vector) works, but the one with the boolean vector (assign_bool_vector) fails.

System Information

No response

Activity

  1. thomasbbrunner commented on Mar 18, 2026

    @thomasbbrunner
    ContributorAuthor

    I've opened a PR with a proposed fix for this: #1299

  2. added theissue type on Mar 18, 2026
  3. added this to the 1.12.1 milestone on Mar 18, 2026
  4. shi-eric commented on Mar 18, 2026

    @shi-eric
    Contributor

    This was merged in ef09577

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions