package com.amd.aparapi.annotation; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; /** * We can use this Annotation to 'tag' intended local buffers. * * So we can either annotate the buffer * <pre><code> * @Local int[] buffer = new int[1024]; * </code></pre> * Or use a special suffix * <pre><code> * int[] buffer_$local$ = new int[1024]; * </code></pre> * * @see LOCAL_SUFFIX * * */ @Retention(RetentionPolicy.RUNTIME) public @interface Local { /** * We can use this suffix to 'tag' intended local buffers. * * * So either name the buffer * <pre><code> * int[] buffer_$local$ = new int[1024]; * </code></pre> * Or use the Annotation form * <pre><code> * @Local int[] buffer = new int[1024]; * </code></pre> */ String LOCAL_SUFFIX = "_$local$"; }