Skip to content

Segmentation fault during an illegal kernel compilation #888

@tpongo-afk

Description

@tpongo-afk

When trying to compile the kernel below, I get a "Segmentation fault (core dumped)" message if I use my IGPU as device target or

FPToSI source must be FP or FP vector

LLVM ERROR: Broken module found, compilation aborted!
Aborted (core dumped)

if I use my cpu as target.

__kernel void test() {
    int a[3] = {1, 2, 3};
    int3 b = (int3)(a);
    printf("%d\n", b);
}

The kernel is wrong, instead of (int3)(a[0], a[1], a[2]), I wrote int3(a) unassumingly. My problem is that there was no error message from the kernel compiler, which I believe is not the intended behavior and made debugging a longer kernel quite difficult.

I am not sure whether this repository is the correct one to submit this issue to but I hope you can give some guidance as of where to turn with this bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions