Skip to content

Commit 129d734

Browse files
committed
JavaCL: list devices in program errors
1 parent 02c73cb commit 129d734

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Core/src/main/velocity/com/nativelibs4java/opencl/CLProgram.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ public synchronized CLProgram build() throws CLBuildException {
772772
Set<String> errors = getProgramBuildInfo(getEntity(), deviceIds);
773773

774774
if (err != CL_SUCCESS) {
775-
throw new CLBuildException(this, "Compilation failure : " + errorString(err) + " (" + nDevices + " devices)", errors);
775+
throw new CLBuildException(this, "Compilation failure : " + errorString(err) + " (devices: " + Arrays.asList(getDevices()) + ")", errors);
776776
} else {
777777
if (!errors.isEmpty())
778778
JavaCL.log(Level.INFO, "Build info :\n\t" + StringUtils.implode(errors, "\n\t"));

0 commit comments

Comments
 (0)