Questions tagged [aparapi]

Aparapi is a Java API that allows developers to leverage a GPU by dynamically converting Java bytecode to OpenCL at runtime.

Aparapi allows developers to write native Java code capable of being executed directly on a graphics card GPU by converting Java byte code to an OpenCL kernel dynamically at runtime. It is Open-source under the Apache License, version 2. Because it is backed by OpenCL Aparapi is compatible with all OpenCL compatible Graphics Cards.

Originally a project conceived and developed by AMD corporation. It was later abandoned by AMD and sat mostly idle for several years. Despite this there were some failed efforts by the community to keep the project alive, but without a clear community leader no new releases ever came. Eventually the project was resurrected and has been active since 2016. Since then the project has had several releases a year.

More information:

40 questions
35
votes
2 answers

jMonkey optimization similar to Java3D's

Edit: For having real-time drawing, started using lwjgl which is base of jmonkeyengine and jocl in an "interoperability" between opengl and opencl, now can calculate and draw 100k particles real-time. Maybe mantle version of jmonkey engine can cure…
huseyin tugrul buyukisik
  • 11,469
  • 4
  • 45
  • 97
7
votes
2 answers

Aparapi data types

I have following code for studying. My calculate function produces unexpected results when runs on aparapi. Is there any problem with my code, or aparapi? Results are; Result Num Expected 2026982348 406816880 40681688012 2026982516 …
Hyperion
  • 382
  • 8
  • 16
5
votes
2 answers

How to install aparapi

I have been looking to a way to develop openCL in Java. I found aparapi interesting as it focusses on parallelization but creates openCL code as well. As I understand it the code will run with or without a GPU but still run parallized. My trouble…
Arnold
  • 4,578
  • 6
  • 52
  • 91
5
votes
2 answers

Aparapi GPU execution slower than CPU

I am trying to test the performance of Aparapi. I have seen some blogs where the results show that Aparapi does improve the performance while doing data parallel operations. But I am not able to see that in my tests. Here is what I did, I wrote two…
vishnu viswanath
  • 3,794
  • 2
  • 36
  • 47
3
votes
1 answer

Compute Levenshtein distance with aparapi

I'm looking at the possibility of implementing a Levenshtein distance algorithm using APARAPI, but I'm running into some problems with the limitations posed - specifically that I need to create an array in the kernel which is prohibited. Is there a…
Michael Berry
  • 70,193
  • 21
  • 157
  • 216
3
votes
2 answers

Aparapi, java.lang.UnsatisfiedLinkError: libaparapi_x86_... can't find dependent libraries

I try run my aparapi java program on 4 computer. 2 computer can run perfectly, but other 2 computer throw java.lang.UnsatisfiedLinkError: ` Exception in thread "GPU" java.lang.UnsatisfiedLinkError:…
3
votes
0 answers

Returning from Aparapi Thread

I'm working with Aparapi and I cant return a piece of data that I want. I have discovered that the Aparapi works similar to that of a thread. private int calculateBlockLightLevel(final int x,final int y,final int z) { int blockType =…
Haydn Trigg
  • 105
  • 1
  • 6
2
votes
0 answers

Prime calculation not consistent result

I've ran the "Finding prime numbers by executing code on GPU" from the following link https://www.logicbig.com/tutorials/misc/gpu-programming/aparapi/intro-with-example.html, but I fixed it, so it would work + changed to run for 500,000. When I run…
Mark Amabile
  • 152
  • 6
2
votes
1 answer

How does aparapi getGlobalId works?

I am beginner with aparapi. I have a problem with getGlobalId. My code is very simple. I only want to add two arrays but the result is wrong. I debugged the program and i saw that getGlobalId is not taking the corrected values. My code is: int…
2
votes
1 answer

counting different values in a vector with Aparapi

i want to implement an Entropy function in parallel with APARAPI. in that function i need to count different keys in a vector but it cant execute correctly. assume that we have just 3 different values. here is my codes: final int[] V = new…
Ali Farahani
  • 412
  • 5
  • 12
2
votes
1 answer

aparapi OpenCLDevice.best() returned null

i am trying to play with aparapi but i haven't even started. Tried to go from https://vasanthexperiments.wordpress.com/2011/11/20/aparapi-java-matrix-multiplication-example/#comments this code, but right after execution i get:" feb 02, 2016 8:12:30…
user3338991
2
votes
1 answer

Java parallelism: OpenCL/GPUs vs. actors/threads

The APARAPI project describes itself as: Aparapi allows Java developers to take advantage of the compute power of GPU and APU devices by executing data parallel code fragments on the GPU rather than being confined to the local CPU. It does this by…
smeeb
  • 27,777
  • 57
  • 250
  • 447
2
votes
1 answer

Aparapi add sample

I'm studing Aparapi (https://code.google.com/p/aparapi/) and have a strange behaviour of one of the sample included. The sample is the first, "add". Building and executing it, is ok. I also put the following code for testing if the GPU is really…
besil
  • 1,308
  • 1
  • 18
  • 29
1
vote
0 answers

How to increase Kernel overall local size in Aparapi

I'm running a simple code on the same AMD Radeon R7 450 graphics card but on different PCs. On an older PC, the Kernel overall local size can be greater than 2000, and on a newer PC it cannot be greater than 256. How can I increase the Kernel…
forreg16
  • 21
  • 2
1
vote
0 answers

Getting "WARNING: Found unexpected Attribute (name = NestHost)" when running calculations on the gpu using the aparapi api in java

I am creating a program that needs to run many calculations simultaneously so i looked for a gpu solution to make it run faster. I implemented the code found here:…
Daniel
  • 29
  • 5
1
2 3