Skip to content

How to set global variables not included in kernel? #21

Description

@eocron
int someGlobal1;
int[] someGlobal2;

kernel void SomeKernel()
{
    //some code
}

How can I set values of two global variables defined like this in C#? Is there a way to get variable index by variable name?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions