Skip to content

Compile OpenCL entry-point #11

@Laszlo32

Description

@Laszlo32

Hi,

there is a strange behaviour when trying to execute a kernel with an entry point other than "run":

On the java-side the entry-point is checked fine, and the OpenCL source is generated for the custom entry-point.
But when trying to compile it in com.aparapi.internal.kernel.KernelRunner.java:1543 the custom entry-point is not given to the native call.
And in aparapi-native/src/cpp/runKernel/Aparapi.cpp : 1338 the kernel seams to be compiled with the "run" entry-point which fails for obvious reasons as there is no "run" method in the OpenCL source.

Afterwards this whole generating + compilation is tried for the next candidate (the CPU) which also fails.

I would have tried to change in Aparapi.cpp : 1338 "run" to the custom entry-point but was not able to compile to verify if this would be enough.

kind regards

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