Skip to content

Wrong constant generation. #35

@fossil

Description

@fossil
const int mms = m-s;

in the kernel code, which is perfectly legal, lead to generation of

public static final int mms = m - s;

in the Java kernel class, which is obviously wrong, because m and s are not constants in the Java sense.

__kernel void fQeqQpQWYT(
__global double *q,
const int s,
const int m,
__global double *w,
__global double *y,
__local double *qwi) {
const int mms = m-s;
...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions