Unverified Commit 4e940fc0 authored by Jeffrey Phillips Freeman's avatar Jeffrey Phillips Freeman 💥
Browse files

fix: multiple resources pointed to the wrong location.

parent 295c14b2
......@@ -35,12 +35,13 @@ import java.util.*;
public class FFTExample{
@Resource("com/aparapi/examples/extension/fft.cl") interface FFT extends OpenCL<FFT>{
@Resource("fft.cl")
interface FFT extends OpenCL<FFT>{
public FFT forward(//
Range _range,//
@GlobalReadWrite("real") float[] real,//
@GlobalReadWrite("imaginary") float[] imaginary//
public FFT forward(
Range _range,
@GlobalReadWrite("real") float[] real,
@GlobalReadWrite("imaginary") float[] imaginary
);
}
......
......@@ -34,7 +34,7 @@ import com.aparapi.opencl.OpenCL.Resource;
public class Histogram{
@Resource("com/aparapi/examples/extension/HistogramKernel.cl") interface HistogramKernel extends OpenCL<HistogramKernel>{
@Resource("HistogramKernel.cl") interface HistogramKernel extends OpenCL<HistogramKernel>{
public HistogramKernel histogram256(//
Range _range,//
......
......@@ -78,7 +78,7 @@ public class HistogramIdeal{
final OpenCLDevice openclDevice = (OpenCLDevice) device;
final HistogramKernel histogram = openclDevice.bind(HistogramKernel.class, Histogram.class.getClassLoader()
.getResourceAsStream("com/amd/aparapi/sample/extension/HistogramKernel.cl"));
.getResourceAsStream("HistogramKernel.cl"));
long start = System.nanoTime();
histogram.begin()//
.put(data)//
......
......@@ -49,7 +49,7 @@ import com.aparapi.opencl.OpenCL.Resource;
*
*/
@Resource("com/aparapi/examples/extension/mandel2.cl")
@Resource("mandel2.cl")
public interface Mandel extends OpenCL<Mandel>{
Mandel createMandleBrot(//
Range range,//
......
......@@ -42,7 +42,7 @@ import com.aparapi.opencl.OpenCL.Resource;
*
*/
@Resource("com/aparapi/examples/extension/mandel2.cl")
@Resource("mandel2.cl")
public interface MandelBrot extends OpenCL<MandelBrot>{
MandelBrot createMandleBrot(//
Range range,//
......
......@@ -34,7 +34,7 @@ import com.aparapi.opencl.OpenCL.Resource;
public class Pow4Example{
@Resource("com/aparapi/examples/extension/squarer.cl")
@Resource("squarer.cl")
interface Squarer extends OpenCL<Squarer>{
public Squarer square(//
......
......@@ -48,7 +48,7 @@ public class SquareExample{
@GlobalReadWrite("out") float[] out);
}
@Resource("com/aparapi/examples/extension/squarer.cl") interface SquarerWithResource extends OpenCL<SquarerWithResource>{
@Resource("squarer.cl") interface SquarerWithResource extends OpenCL<SquarerWithResource>{
public SquarerWithResource square(//
Range _range,//
@GlobalReadWrite("in") float[] in,//
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment