|
1 | 1 | #parse("main/Header.vm")
|
2 | 2 | package com.nativelibs4java.opencl;
|
| 3 | + |
| 4 | +import static com.nativelibs4java.opencl.JavaCL.log; |
3 | 5 | import static com.nativelibs4java.opencl.library.OpenCLLibrary.*;
|
4 | 6 | import static com.nativelibs4java.opencl.library.IOpenCLLibrary.*;
|
| 7 | + |
5 | 8 | import com.nativelibs4java.opencl.library.OpenCLLibrary;
|
6 | 9 | import com.ochafik.util.string.StringUtils;
|
| 10 | + |
| 11 | +import org.bridj.*; |
| 12 | + |
7 | 13 | import java.lang.annotation.Retention;
|
8 | 14 | import java.lang.annotation.RetentionPolicy;
|
9 | 15 | import java.util.*;
|
10 | 16 | import java.lang.reflect.*;
|
11 |
| -import static com.nativelibs4java.opencl.JavaCL.log; |
12 | 17 | import java.util.logging.Level;
|
13 | 18 | import java.util.logging.Logger;
|
14 | 19 |
|
@@ -52,8 +57,11 @@ public String getMessage() {
|
52 | 57 | return message + logSuffix;
|
53 | 58 | }
|
54 | 59 |
|
55 |
| - void setKernelArg(CLKernel kernel, int argIndex) { |
56 |
| - message += " (kernel name = " + kernel.getFunctionName() + ", num args = " + kernel.getNumArgs() + ", arg index = " + argIndex; |
| 60 | + void setKernelArg(CLKernel kernel, int argIndex, long size, Pointer<?> ptr) { |
| 61 | + message += " (kernel name = " + kernel.getFunctionName(); |
| 62 | + message += ", num args = " + kernel.getNumArgs(); |
| 63 | + message += ", arg index = " + argIndex; |
| 64 | + message += ", arg size = " + size; |
57 | 65 | CLProgram program = kernel.getProgram();
|
58 | 66 | if (program != null)
|
59 | 67 | message += ", source = <<<\n\t" + program.getSource().replaceAll("\n", "\n\t");
|
|
0 commit comments