Questions tagged [jocl]

JOCL provides an easy to use Java binding for the OpenCL API.

JOCL exposes the OpenCL API in two levels: A automatically generated low level JNI based binding and a hand written high level binding on top of the generated interfaces. The high level bindings provide a convenient interface and reduce verbosity to a minimum.

project home:

community:

friends:

  • Java binding to OpenGL (JOGL)
  • Java binding to OpenAL (JOAL)
72 questions
1
vote
2 answers

determine global memory available on GPU with JOCL?

I'm writing a JOCl.org (which is different then jogamps jocl) running on GPU. Were working with sufficient data that I need to be careful to stay under the GPU's global memory limit. To do this I need a way of programmatically determining how much…
drew
  • 577
  • 2
  • 8
  • 20
1
vote
1 answer

how to create CL GL interop context?

For openGL i use lwjgl and for openCL i use jocl. my video card rx550. os win10pro. This my GL Init method, i run it first. static long window; static void initGL(){ if(glfwInit()!=true){ System.err.println("INIT_GLFW_FAILED"); …
NINZA
  • 11
  • 1
1
vote
2 answers

Help with JOCL on Mac

I am trying to run this tutorial on my mac. The tutorial is for windows, and packs jocl version 1.3 (JOCL-0.1.3a-beta.jar) and the native jocl dll for windows (JOCL-windows-x86_64.dll). After getting the code, I basically got rid of the jocl 1.3 jar…
JohnIdol
  • 48,899
  • 61
  • 158
  • 242
1
vote
0 answers

JOCL Program build error when given char array in kernel

I have this code (modified from the JOCL samples) where the CL kernel takes a float and char[] pointers: import static org.jocl.CL.*; import org.jocl.*; public class JOCLEncode { private static String kernelSource = "__kernel void…
Alex Jone
  • 292
  • 2
  • 14
1
vote
1 answer

OpenCL finding index of minimum in array

I'm using OpenCL (via JOCL) to find minima in a bunch of distance calculations for ray marching. The pseudocode would look something like this: Start with a point in 3d space. There are a number of functions to calculate distances to that point…
Ben Hardy
  • 1,739
  • 14
  • 16
1
vote
2 answers

CL_INVALID_KERNEL_ARGS in JOCL (a Java Binding to OpenCL).

Anybody encounter this kind of error on doing Matrix Multiplication in JOCL? Exception in thread "main" org.jocl.CLException: CL_INVALID_KERNEL_ARGS at org.jocl.CL.checkResult(CL.java:787) at org.jocl.CL.clEnqueueNDRangeKernel(CL.java:20802) at…
Renée
  • 31
  • 5
1
vote
0 answers

Cannot load native libOpenCL.so library from Maven resource

I'm getting unsatisfied link errors when trying to use JOCL. The error is a typical unsatisfied link error: Stack trace from the attempt to load the library as a resource: java.lang.UnsatisfiedLinkError: Could not initialize native library.…
Dr.Knowitall
  • 10,080
  • 23
  • 82
  • 133
1
vote
0 answers

Opencl kernel launch overhead and divide&conquer algorithms for 2M-20M elements

Clarification: I was hardcoding parameters of opencl computing functions (such as ranges of kernels, devices and explicit copies) into each project of mine but this got tiring and I decided to write a fully dynamic class that does divide and…
1
vote
2 answers

JOCL local memory access syntax

This is my OpenCl kernel function private static String programSource = "__kernel void "+ "sampleKernel(__local float *a,"+ " __local float *b,"+ " __global float *c,"+ " …
1
vote
0 answers

opencl kernel float4 issues

I am working on an OpenCL implementation of the Fruchtermon and Reingold layout algorithm, I have it pretty much working when compared to the CPU version I already have implemented. However I noticed that for large graphs there is a bottleneck on…
Zack Newsham
  • 2,810
  • 1
  • 23
  • 43
1
vote
2 answers

OpenCL Shared Memory Among Tasks

I've been working to create a GPU based conway's game of life program. If you're not familiar with it, here is the Wikipedia Page. I created one version that works by keeping an array of values where 0 represents a dead cell, and 1 a live one. The…
Hunter Larco
  • 785
  • 5
  • 17
1
vote
2 answers

Array Sum Benchmark on GPU - Odd Results?

I am currently doing some benchmark tests using OpenCL on an AMD Radeon HD 7870. The code that I have written in JOCL (the Java bindings for OpenCL) simply adds two 2D arrays (z= x + y) but it does so many times (z=x+y+y+y+y+y+y...). The size of the…
jojennin
  • 25
  • 1
  • 1
  • 5
1
vote
0 answers

OpenCL multiple Kernel execution on NVIDIA Tesla

I have this Problem and I don't know how to solved it. I work with 2 Cluster one with 6 Tesla C1060 and another one with 2 Tesla K20M. I have 2 OpenCL-Program using JOCL as Java Bindings. The First one have this structure : 1 OpenCL…
aelias
  • 37
  • 1
  • 6
1
vote
1 answer

Jocl and Device Fission

Edit: Problem solved! rzymek's answer was helpful. Question: For JOCL, how can I exclude some cores of CPU from the opencl calculations with device fission?(Java port of cl_device_partition_property seems to be corrupt for 0.1.9 version) Edit: I…
huseyin tugrul buyukisik
  • 11,469
  • 4
  • 45
  • 97
1
vote
1 answer

Call to pow is ambiguous

While working with JOCl (java version opencl), I came across this error. Exception in thread "main" org.jocl.CLException: CL_BUILD_PROGRAM_FAILURE Build log for device 0: :3:255: error: **call to '__cl_pow' is ambiguous** __kernel…
Olivier_s_j
  • 5,490
  • 24
  • 80
  • 126