All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aparapi.examples.configuration.KernelOkayInOpenCL Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
/**
 * This product currently only contains code developed by authors
 * of specific components, as identified by the source code files.
 *
 * Since product implements StAX API, it has dependencies to StAX API
 * classes.
 *
 * For additional credits (generally to people who reported problems)
 * see CREDITS file.
 */
package com.aparapi.examples.configuration;

/**
 * Created by Barney on 24/08/2015.
 */
public class KernelOkayInOpenCL extends com.aparapi.Kernel {
   char[] inChars = "KernelOkayInOpenCL".toCharArray();
   char[] outChars = new char[inChars.length];

   @Override
   public void run() {
      int index = getGlobalId();
      oops();
      outChars[index] = inChars[index];
   }

   @NoCL
   private void oops() {
      System.out.println("Oops, running in kernel in Java");
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy