Skip to content

Python failed a+=b type check #196

@111116

Description

@111116
cu_kernel.cu(9103): error: no suitable conversion function from "lc_float3" to "lc_float" exists
    v1 = (v1 + v3);
         ^

1 error detected in the compilation of "cu_kernel.cu".

To Reproduce

import luisa

luisa.init()

@luisa.func
def f():
    a = float()
    b = luisa.float3()
    a += b

f(dispatch_size=1)

Expected behavior
Python front end detects compile error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions