diff --git a/CHANGELOG.md b/CHANGELOG.md index 95ee2cfe261c7f60a326b31d8d2b385d652b35a5..dc529431e9a51a86d61b0cbb217063104c97bdb8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ * Removed explicit version on nexus-staging-maven-plugin plugin, relies on parent now. * createProgram had the wrong signature producing a unsatisfied link exception that is now fixed. * Fixed several bad references to resource locations. +* Fixed all of the broken examples that werent running. ## 1.4.0 diff --git a/src/main/java/com/aparapi/examples/convolution/ConvolutionOpenCL.java b/src/main/java/com/aparapi/examples/convolution/ConvolutionOpenCL.java index 95d511b7d5fd89b5fe13dd9dfc9a05d5b3aa3123..6f59b364023b4cf849cb5689ee15fbe0db663e13 100644 --- a/src/main/java/com/aparapi/examples/convolution/ConvolutionOpenCL.java +++ b/src/main/java/com/aparapi/examples/convolution/ConvolutionOpenCL.java @@ -74,7 +74,7 @@ import java.net.URISyntaxException; public class ConvolutionOpenCL{ - @Resource("com/aparapi/examples/convolution/convolution.cl") interface Convolution extends OpenCL<Convolution>{ + @Resource("convolution.cl") interface Convolution extends OpenCL<Convolution>{ Convolution applyConvolution(// Range range, // @GlobalReadOnly("_convMatrix3x3") float[] _convMatrix3x3,//// only read from kernel @@ -87,7 +87,7 @@ public class ConvolutionOpenCL{ public static void main(final String[] _args) { final File file; try{ - file = (_args.length >= 1 ? new File(_args[0]) : new File(ConvolutionOpenCL.class.getResource("/testcard.jpg").toURI())); + file = new File(ConvolutionOpenCL.class.getResource("/testcard.jpg").toURI()); } catch (URISyntaxException e) { throw new IllegalStateException("could not get testcard", e); } diff --git a/src/main/java/com/aparapi/examples/convolution/convolution.cl b/src/main/resources/convolution.cl similarity index 100% rename from src/main/java/com/aparapi/examples/convolution/convolution.cl rename to src/main/resources/convolution.cl